:root {
    --primary: #1f3c88;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light-bg: #f5f7fb;
    --text: #1f2937;
    --muted: #6b7280;
}
body {
    background:
        radial-gradient(circle at 95% 5%, rgba(31, 60, 136, 0.10), transparent 28%),
        radial-gradient(circle at 5% 45%, rgba(245, 158, 11, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc, #eef2f7);

    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
}

a {
    text-decoration: none;
}

.store-header {
    background: #fff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.store-logo {
    min-width: 180px;
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

.store-logo img {
    height: 55px;
    max-width: 180px;
    object-fit: contain;
}

.store-search {
    flex: 1;
    display: flex;
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.store-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    background: transparent;
}

.store-search button {
    border: 0;
    background: var(--primary);
    color: white;
    padding: 0 30px;
    font-weight: bold;
}

.cart-button {
    background: var(--secondary);
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: bold;
}

.cart-button:hover {
    color: white;
    background: var(--primary);
}

.cart-button span {
    background: var(--accent);
    color: #111;
    padding: 3px 8px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Slider */
.home-slider-img {
    height: 520px;
    object-fit: cover;
    border-radius: 28px;
}

.slider-caption {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 20px;
    padding: 25px;
}

/* Sections */
.section-box {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: bold;
    color: var(--secondary);
}

.section-title p {
    color: var(--muted);
    font-size: 16px;
}

/* Categories */
.category-box {
    background: #fff;
    border-radius: 22px;
    padding: 25px 15px;
    text-align: center;
    height: 190px;
    transition: 0.3s;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.category-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.category-image-box {
    width: 95px;
    height: 95px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image-box img {
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.category-box h5 {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary);
}

/* Products */
.product-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    background: white;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.14);
}

.product-image-wrapper {
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-bottom: 1px solid #f1f1f1;
}

.product-img {
    max-width: 100%;
    max-height: 175px;
    object-fit: contain;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    min-height: 48px;
    color: var(--secondary);
}

.product-category {
    font-size: 13px;
    color: var(--muted);
}

.price {
    color: var(--primary);
    font-size: 21px;
    font-weight: bold;
}

.old-price {
    color: #999;
    margin-left: 8px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
}

.btn-primary:hover {
    background: #152b63;
    border-color: #152b63;
}

.btn-outline-success,
.btn-success {
    border-radius: 12px;
}

/* Articles */
.article-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.article-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.13);
}

.article-img {
    height: 230px;
    object-fit: cover;
}

/* Engineers */
.engineer-card {
    border: 0;
    border-radius: 22px;
    transition: 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.engineer-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.13);
}

.engineer-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f1f5f9;
}

/* Category Page */
.category-hero {
    position: relative;
    height: 340px;
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
}

.category-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.category-hero-content {
    position: absolute;
    right: 45px;
    bottom: 45px;
    color: white;
    max-width: 650px;
}

.category-hero-content h1 {
    font-size: 44px;
    font-weight: bold;
}

.category-hero-content p {
    font-size: 18px;
    line-height: 1.8;
}

/* Product Details */
.product-details-box {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.main-product-image {
    width: 100%;
    height: 470px;
    object-fit: contain;
    border-radius: 22px;
    background: #f8fafc;
    padding: 25px;
}

.thumb-image {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid #eee;
    cursor: pointer;
    padding: 8px;
    background: white;
}

.thumb-image:hover {
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 55px 0;
    margin-top: 80px;
}

.footer p {
    color: #cbd5e1;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    left: 25px;
    bottom: 25px;
    background: #25d366;
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.whatsapp-float:hover {
    color: white;
    background: #1ebe5d;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .store-logo {
        text-align: center;
    }

    .home-slider-img {
        height: 280px;
    }

    .category-hero {
        height: 260px;
    }

    .category-hero-content {
        right: 20px;
        bottom: 25px;
    }

    .category-hero-content h1 {
        font-size: 30px;
    }

    .main-product-image {
        height: 320px;
    }
}


.store-nav-link {
    color: #0f172a;
    font-weight: bold;
    margin: 0 8px;
}

.store-nav-link:hover {
    color: var(--primary);
}

.page-box {
    margin-top: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: white;
    border-radius: 22px;
    padding: 35px 25px;
    text-align: center;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    transition: 0.3s;
}



.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.feature-card h4 {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0;
}
.contact-page {
    margin-top: 30px;
    margin-bottom: 80px;
}

.contact-page h1 {
    font-weight: bold;
    color: var(--secondary);
}

.contact-info-card,
.contact-form-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

.contact-info-card h4,
.contact-form-card h4 {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 20px;
}

.contact-info-card p {
    color: var(--muted);
    line-height: 1.8;
}

.contact-form-card label {
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form-card .form-control {
    border-radius: 14px;
    padding: 13px;
    border: 1px solid #e5e7eb;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.map-box {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}


.map-box iframe {
    width: 100%;
    height: 400px;
    border: 0;
}


/* Hero */
.home-hero {
    margin-top: 20px;
}

.hero-slide {
    position: relative;
    height: 560px;
    border-radius: 32px;
    overflow: hidden;
    background: #111827;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.35)
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 25px;
    color: #e5e7eb;
}

/* Sections */
.section-box {
    margin-bottom: 90px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    display: inline-block;
    background: #e8eefc;
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary);
}

.section-title p {
    color: var(--muted);
    font-size: 17px;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 26px;
    padding: 35px 25px;
    min-height: 230px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.13);
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-weight: bold;
    margin-bottom: 14px;
    color: var(--secondary);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

/* Better Category Cards */
.category-box {
    background: white;
    border-radius: 24px;
    padding: 24px 14px;
    text-align: center;
    height: 200px;
    transition: 0.3s;
    border: 1px solid #edf2f7;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.category-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.category-image-box {
    width: 105px;
    height: 105px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-image-box img {
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
}

.category-box h5 {
    color: var(--secondary);
    font-weight: bold;
    font-size: 16px;
}

/* Articles */
.article-card {
    background: white;
    border-radius: 26px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.13);
}

.article-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.article-body {
    padding: 25px;
}

.article-body h5 {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 12px;
}

.article-body p {
    color: var(--muted);
    line-height: 1.8;
}

/* Engineers */
.engineer-card {
    background: white;
    border-radius: 26px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.engineer-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.13);
}

.engineer-img {
    width: 135px;
    height: 135px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 6px solid #f1f5f9;
}

.engineer-card h5 {
    font-weight: bold;
    color: var(--secondary);
}

.engineer-card .job-title {
    color: var(--primary);
    font-weight: bold;
}

.engineer-card .bio {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slide {
        height: 360px;
    }

    .hero-content {
        right: 25px;
        left: 25px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .feature-card {
        min-height: 190px;
    }
}


/* Trusted Strip */
.trusted-strip {
    background: white;
    border-radius: 28px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.trusted-item {
    padding: 15px;
    border-left: 1px solid #edf2f7;
}

.trusted-item h3 {
    color: var(--primary);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.trusted-item p {
    color: var(--muted);
    margin: 0;
}

/* CTA */
.network-cta {
    background: linear-gradient(135deg, #1f3c88, #0f172a);
    color: white;
    border-radius: 32px;
    padding: 45px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.network-cta h2 {
    font-weight: bold;
    font-size: 34px;
    margin-bottom: 15px;
}

.network-cta p {
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.9;
    margin: 0;
}

/* Better Products */
.product-card .btn {
    font-weight: bold;
}

.product-card {
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    border: 2px solid transparent;
    transition: 0.3s;
    pointer-events: none;
}

.product-card:hover::before {
    border-color: rgba(31, 60, 136, 0.25);
}

/* Better Section Spacing */
.section-box {
    padding-top: 10px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile fix */
@media (max-width: 768px) {
    .trusted-item {
        border-left: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .network-cta {
        padding: 30px 22px;
        text-align: center;
    }

    .network-cta h2 {
        font-size: 26px;
    }
}


.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 14px;
    font-weight: bold;
    padding: 12px 26px;
}

/* ===== Final Professional Polish ===== */

body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(31, 60, 136, 0.10), transparent 35%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.10), transparent 35%),
        #f5f7fb;
}

/* Header */
.store-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.store-logo {
    color: var(--primary);
    font-weight: 800;
}

.store-nav-link {
    position: relative;
    padding: 8px 4px;
}

.store-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

.store-nav-link:hover::after {
    width: 100%;
}

/* Search */
.store-search {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.store-search input {
    font-size: 15px;
}

.store-search button {
    background: linear-gradient(135deg, var(--primary), #0f172a);
}

/* Hero */
.hero-slide {
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.92),
            rgba(15, 23, 42, 0.40),
            rgba(15, 23, 42, 0.10)
        );
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    max-width: 520px;
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: -40px;
    left: -40px;
    background: rgba(31, 60, 136, 0.08);
    border-radius: 50%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e8eefc, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section Titles */
.section-title span {
    background: rgba(31, 60, 136, 0.09);
    color: var(--primary);
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: var(--accent);
    border-radius: 10px;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    bottom: -14px;
}

/* Category */
.category-box {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.category-box:hover h5 {
    color: var(--primary);
}

.category-image-box {
    box-shadow: inset 0 0 0 1px #edf2f7;
}

/* Product Cards */
.product-card {
    border: 1px solid #edf2f7;
}

.product-image-wrapper {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.product-name {
    line-height: 1.7;
}

.price::after {
    content: " ر.س";
    font-size: 13px;
    color: var(--muted);
    font-weight: normal;
}

/* Buttons */
.btn {
    transition: 0.25s;
}

.btn-primary {
    box-shadow: 0 8px 18px rgba(31, 60, 136, 0.20);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Article */
.article-card {
    border: 1px solid #edf2f7;
}

.article-body h5 {
    line-height: 1.7;
}

/* Engineers */
.engineer-card {
    border: 1px solid #edf2f7;
}

.engineer-img {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* CTA */
.network-cta {
    position: relative;
    overflow: hidden;
}

.network-cta::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -80px;
    top: -80px;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 50%;
}

/* Footer */
.footer {
    background:
        linear-gradient(135deg, #0f172a, #111827);
}

/* Small animations */
.product-card,
.category-box,
.feature-card,
.article-card,
.engineer-card {
    will-change: transform;
}

/* Better mobile */
@media (max-width: 768px) {
    .section-box {
        margin-bottom: 60px;
    }

    .hero-content {
        text-align: right;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .category-box {
        height: 180px;
    }

    .product-image-wrapper {
        height: 170px;
    }

    .product-img {
        max-height: 135px;
    }
}
.cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-button span {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar {
    background: linear-gradient(135deg, #0f172a, #1f3c88);
    color: white;
    font-size: 14px;
    padding: 9px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-bar span {
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        font-size: 13px;
    }
}


.brands-strip {
    background: white;
    border-radius: 32px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.brands-wrapper {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 5px;
}

.brand-item {
    min-width: 150px;
    height: 90px;
    background: #f8fafc;
    border-radius: 22px;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: 0.3s;
}

.brand-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.brand-item img {
    max-width: 110px;
    max-height: 55px;
    object-fit: contain;
}

.brand-item strong {
    color: var(--secondary);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 50px;
}

.product-badge.sale {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.product-badge.out {
    background: linear-gradient(135deg, #6b7280, #374151);
}

.home-hero {
    position: relative;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    left: 8%;
    bottom: -18px;
    height: 40px;
    background: rgba(15, 23, 42, 0.20);
    filter: blur(25px);
    border-radius: 50%;
    z-index: -1;
}


/* ===== Premium Footer ===== */

.premium-footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #111827, #1f3c88);
    color: white;
    padding: 80px 0 25px;
    margin-top: 100px;
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    left: -120px;
    top: -120px;
}

.footer-brand img {
    height: 65px;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 14px;
}

.footer-brand h3 {
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #cbd5e1;
    line-height: 2;
    max-width: 360px;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-right: 8px;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-whatsapp {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.footer-whatsapp:hover {
    color: white;
    background: #1ebe5d;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 45px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .premium-footer {
        padding-top: 55px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ===== Inner Pages Premium Style ===== */

.inner-page-header {
    background: linear-gradient(135deg, #1f3c88, #0f172a);
    color: white;
    border-radius: 30px;
    padding: 55px 35px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.inner-page-header::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(245, 158, 11, 0.16);
    border-radius: 50%;
    left: -70px;
    top: -70px;
}

.inner-page-header h1 {
    font-weight: 800;
    font-size: 42px;
    position: relative;
}

.inner-page-header p {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
    max-width: 700px;
    position: relative;
}

.page-card {
    background: white;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

.page-content {
    line-height: 2.1;
    font-size: 18px;
    color: #374151;
}

@media (max-width: 768px) {
    .inner-page-header {
        padding: 35px 25px;
    }

    .inner-page-header h1 {
        font-size: 30px;
    }
}

.article-details-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
}

.category-label {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-details-box {
    position: relative;
}

.product-details-box::before {
    content: "تفاصيل المنتج";
    position: absolute;
    top: -18px;
    right: 35px;
    background: var(--accent);
    color: #111827;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ===== Services Section ===== */

.services-section {
    position: relative;
}

.service-card {
    background: white;
    border-radius: 26px;
    padding: 35px 25px;
    min-height: 270px;
    text-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(31, 60, 136, 0.07);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

.service-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e8eefc, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    position: relative;
}

.service-card h4 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
}

.service-card p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
    position: relative;
}


/* ===== Premium CTA ===== */

.premium-cta {
    background:
        linear-gradient(135deg, rgba(31, 60, 136, 0.96), rgba(15, 23, 42, 0.98)),
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.35), transparent 35%);
    color: white;
    border-radius: 34px;
    padding: 55px 45px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-cta::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -80px;
    top: -80px;
    background: rgba(245, 158, 11, 0.18);
    border-radius: 50%;
}

.premium-cta span {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
}

.premium-cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.premium-cta p {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
    max-width: 750px;
    margin: 0;
    position: relative;
}

.premium-cta .btn {
    border-radius: 16px;
    font-weight: bold;
    padding: 14px 28px;
    position: relative;
}

/* ===== Hero Extra Polish ===== */

.hero-content {
    animation: heroFade 0.8s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.hero-content h1 {
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-content p {
    text-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.carousel-control-prev,
.carousel-control-next {
    width: 55px;
    height: 55px;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

/* ===== Premium Product Page ===== */

.product-premium-page {
    margin-top: 35px;
}

.product-gallery-card,
.product-info-card {
    background: white;
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
    border: 1px solid #edf2f7;
    height: 100%;
}

.product-main-img {
    width: 100%;
    height: 470px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 24px;
    padding: 25px;
}

.product-main-placeholder {
    height: 470px;
    background: #f8fafc;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-thumbs img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid #edf2f7;
    background: #fff;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.product-thumbs img:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.product-category-link {
    display: inline-block;
    background: rgba(31, 60, 136, 0.09);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 18px;
}

.product-info-card h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.new-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.new-price::after {
    content: " ر.س";
    font-size: 16px;
    color: var(--muted);
    font-weight: normal;
}

.old-price-large {
    color: #999;
    font-size: 20px;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 7px 14px;
    border-radius: 50px;
    font-weight: bold;
}

.stock-box {
    margin-bottom: 25px;
}

.stock-available {
    background: #dcfce7;
    color: #166534;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
}

.stock-out {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
}

.product-description {
    color: var(--muted);
    line-height: 2;
    font-size: 17px;
    margin-bottom: 25px;
}

.quantity-input {
    border-radius: 14px;
    padding: 13px;
}

@media (max-width: 768px) {
    .product-gallery-card,
    .product-info-card {
        padding: 22px;
    }

    .product-main-img,
    .product-main-placeholder {
        height: 320px;
    }

    .product-info-card h1 {
        font-size: 28px;
    }

    .new-price {
        font-size: 28px;
    }
}
/* ===== Premium Category Page ===== */

.category-premium-header {
    position: relative;
    height: 380px;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    margin: 35px 0 35px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.category-premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.90),
        rgba(15, 23, 42, 0.45),
        rgba(15, 23, 42, 0.10)
    );
}

.category-premium-content {
    position: absolute;
    right: 55px;
    bottom: 55px;
    color: white;
    max-width: 650px;
}

.category-premium-content span {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-premium-content h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 15px;
}

.category-premium-content p {
    font-size: 18px;
    color: #e5e7eb;
    line-height: 1.9;
}

.category-filter-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

.category-filter-card .form-control {
    border-radius: 14px;
    padding: 13px;
    border: 1px solid #e5e7eb;
}

.empty-products-box {
    background: white;
    border-radius: 28px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.empty-products-box h4 {
    font-weight: 800;
    color: var(--secondary);
}

.empty-products-box p {
    color: var(--muted);
}

@media (max-width: 768px) {
    .category-premium-header {
        height: 280px;
    }

    .category-premium-content {
        right: 25px;
        bottom: 30px;
        left: 25px;
    }

    .category-premium-content h1 {
        font-size: 32px;
    }

    .category-premium-content p {
        font-size: 15px;
    }
}


/* ===== Premium Cart Page ===== */

.cart-page {
    margin-top: 30px;
}

.cart-items-card,
.cart-summary-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
    border: 1px solid #edf2f7;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #edf2f7;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #777;
    font-size: 13px;
    flex-shrink: 0;
}

.cart-item-img img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h5 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.cart-item-info p {
    color: var(--muted);
    margin-bottom: 6px;
}

.cart-item-total {
    min-width: 130px;
    text-align: center;
}

.cart-item-total span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.cart-item-total strong {
    color: var(--primary);
    font-size: 22px;
}

.cart-item-total strong::after,
.summary-row strong::after {
    content: " حبة";
    font-size: 13px;
    color: var(--muted);
    font-weight: normal;
}

.cart-summary-card {
    position: sticky;
    top: 120px;
}

.cart-summary-card h4 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 17px;
}

.summary-row span {
    color: var(--muted);
}

.summary-row strong {
    color: var(--primary);
    font-size: 22px;
}

.empty-cart-box {
    background: white;
    border-radius: 30px;
    padding: 70px 30px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
}

.empty-cart-box h3 {
    font-weight: 800;
    color: var(--secondary);
}

.empty-cart-box p {
    color: var(--muted);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-total {
        min-width: auto;
    }

    .cart-summary-card {
        position: static;
    }
}


/* ===== Premium Checkout Page ===== */

.checkout-page {
    margin-top: 30px;
}

.checkout-form-card,
.checkout-summary-card {
    background: white;
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.07);
    border: 1px solid #edf2f7;
}

.checkout-form-card h4,
.checkout-summary-card h4 {
    font-weight: 800;
    color: var(--secondary);
}

.checkout-form-card label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--secondary);
}

.checkout-form-card .form-control {
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.checkout-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.checkout-summary-card {
    position: sticky;
    top: 120px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #edf2f7;
}

.checkout-item h6 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.checkout-item p {
    color: var(--muted);
    margin: 0;
}

.checkout-item strong {
    color: var(--primary);
    font-size: 18px;
}

.checkout-item strong::after,
.checkout-total strong::after {
    content: " ر.س";
    font-size: 13px;
    color: var(--muted);
    font-weight: normal;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
}

.checkout-total span {
    font-weight: bold;
    color: var(--secondary);
}

.checkout-total strong {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .checkout-summary-card {
        position: static;
    }

    .checkout-form-card,
    .checkout-summary-card {
        padding: 24px;
    }
}

.order-success-alert {
    border: 0;
    border-radius: 18px;
    padding: 18px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 25px;
    margin-bottom: 25px;
}

/* ===== Solutions Section ===== */

.solutions-section {
    position: relative;
}

.solution-card {
    background: white;
    border-radius: 30px;
    padding: 35px;
    height: 100%;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    left: -60px;
    top: -60px;
    background: rgba(31, 60, 136, 0.08);
    border-radius: 50%;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.14);
}

.solution-number {
    font-size: 42px;
    font-weight: 800;
    color: rgba(31, 60, 136, 0.18);
    margin-bottom: 15px;
    position: relative;
}

.solution-card h4 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
}

.solution-card p {
    color: var(--muted);
    line-height: 2;
    position: relative;
}

.solution-card a {
    color: var(--primary);
    font-weight: bold;
    position: relative;
}

/* ===== Store Intro Box ===== */

.store-intro-box {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 60, 136, 0.95)),
        radial-gradient(circle at left top, rgba(245, 158, 11, 0.35), transparent 35%);
    color: white;
    border-radius: 36px;
    padding: 55px 45px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    position: relative;
}

.store-intro-box::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -90px;
    bottom: -90px;
    background: rgba(245, 158, 11, 0.16);
    border-radius: 50%;
}

.store-intro-box span {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
}

.store-intro-box h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.store-intro-box p {
    color: #dbeafe;
    font-size: 18px;
    line-height: 2;
    position: relative;
    margin: 0;
}

.store-intro-box .btn {
    border-radius: 16px;
    font-weight: bold;
    padding: 13px 26px;
    margin: 5px;
    position: relative;
}

/* ===== More Smoothness ===== */

.section-box {
    position: relative;
}

.product-card,
.category-box,
.service-card,
.solution-card,
.article-card,
.engineer-card,
.feature-card {
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Cart Actions ===== */

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-form input {
    width: 85px;
    border-radius: 10px;
    text-align: center;
}

.cart-actions .btn {
    border-radius: 10px;
    font-weight: bold;
}

/* ===== Home Search Under Slider ===== */

.home-search-section {
    margin-top: -25px;
    margin-bottom: 45px;
    position: relative;
    z-index: 10;
}

.home-search-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    border: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    align-items: center;
}

.home-search-text span {
    display: inline-block;
    background: rgba(31, 60, 136, 0.10);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 10px;
}

.home-search-text h3 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.home-search-text p {
    color: var(--muted);
    margin: 0;
}

.home-search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-search-form input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 15px 18px;
    font-size: 16px;
    outline: none;
}

.home-search-form input:focus {
    border-color: var(--primary);
}

.home-search-form button {
    border: 0;
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 18px;
    font-weight: bold;
}

.clear-search-btn {
    background: #f3f4f6;
    color: var(--secondary);
    padding: 15px 22px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: bold;
}

.clear-search-btn:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .home-search-card {
        grid-template-columns: 1fr;
    }

    .home-search-form {
        flex-direction: column;
    }

    .home-search-form input,
    .home-search-form button,
    .clear-search-btn {
        width: 100%;
    }
}


/* ===== Mobile Category Dropdown Click ===== */

.category-main-row {
    display: flex;
    align-items: center;
}

.category-main-row > a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mobile-category-toggle {
    display: none;
    border: 0;
    background: rgba(255,255,255,0.14);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-weight: bold;
    margin-right: 4px;
}

html[dir="ltr"] .mobile-category-toggle {
    margin-right: 0;
    margin-left: 4px;
}

@media (max-width: 768px) {

    .categories-top-nav {
        overflow-x: visible;
    }

    .categories-menu {
        display: block;
        overflow-x: visible;
        white-space: normal;
        padding: 8px 0;
    }

    .category-menu-item {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .category-main-row {
        justify-content: space-between;
        background: rgba(255,255,255,0.08);
        border-radius: 12px;
    }

    .category-main-row > a {
        flex: 1;
        padding: 13px 15px;
    }

    .mobile-category-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .category-menu-item .category-dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 6px;
        background: white;
    }

    .category-menu-item.mobile-open .category-dropdown {
        display: block;
    }

    .category-menu-item.mobile-open .mobile-category-toggle {
        transform: rotate(180deg);
    }

    .category-main-row .dropdown-arrow {
        display: none;
    }
}

/* ===== Categories Inside Navbar ===== */

.navbar-category-item {
    position: relative;
    display: inline-block;
}

.navbar-category-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-arrow {
    font-size: 12px;
    transition: 0.25s;
}

.navbar-category-item:hover .navbar-arrow {
    transform: rotate(180deg);
}

.navbar-category-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: white;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s;
    z-index: 9999;
}

.navbar-category-item:hover .navbar-category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-category-dropdown a {
    display: block;
    padding: 12px 14px;
    color: #0f172a;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.navbar-category-dropdown a:hover,
.navbar-category-dropdown a.active-child {
    background: #f1f5f9;
    color: var(--primary);
}

.navbar-category-item.active > .nav-link {
    color: var(--primary);
    position: relative;
}

.navbar-category-item.active > .nav-link::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: -6px;
    height: 3px;
    background: var(--primary);
    border-radius: 50px;
}

html[dir="ltr"] .navbar-category-dropdown {
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .navbar-category-item {
        display: block;
        width: 100%;
    }

    .navbar-category-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 6px;
        display: none;
    }

    .navbar-category-item:hover .navbar-category-dropdown {
        display: block;
    }
}

.navbar-category-item > .nav-link {
    color: #222;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.25s;
}

.navbar-category-item > .nav-link:hover {
    color: var(--primary);
    background: rgba(31, 60, 136, 0.08);
}

.navbar-arrow {
    color: var(--primary);
    font-size: 11px;
}

.navbar-category-dropdown {
    border-top: 3px solid var(--primary);
}

.navbar-category-dropdown a:hover,
.navbar-category-dropdown a.active-child {
    background: rgba(31, 60, 136, 0.08);
    color: var(--primary);
}



/* ===== Brands Section Under Slider ===== */

.brands-section {
    background: white;
    border-radius: 28px;
    padding: 30px;
    margin: 35px 0 45px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.07);
    border: 1px solid #edf2f7;
}

.brands-title {
    text-align: center;
    margin-bottom: 25px;
}

.brands-title span {
    display: inline-block;
    background: rgba(31, 60, 136, 0.10);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 10px;
}

.brands-title h3 {
    font-weight: 800;
    color: var(--secondary);
}

.brands-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.brand-logo-card {
    min-width: 150px;
    height: 130px;
    background: #f8fafc;
    border-radius: 22px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.brand-logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.10);
}

.brand-logo-card img {
    max-width: 90px;
    max-height: 55px;
    object-fit: contain;
    margin-bottom: 12px;
}

.brand-logo-card p {
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
    font-size: 14px;
}


/* ===== Home Premium Tools ===== */

.home-tools-section {
    margin-top: -25px;
    margin-bottom: 45px;
    position: relative;
    z-index: 20;
}

.home-brands-card,
.home-search-premium {
    background: rgba(255,255,255,0.96);
    border-radius: 30px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
    border: 1px solid #edf2f7;
}

.home-tools-title {
    margin-bottom: 20px;
}

.home-tools-title span {
    display: inline-block;
    background: rgba(31, 60, 136, 0.10);
    color: var(--primary);
    padding: 6px 17px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 10px;
}

.home-tools-title h3 {
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.home-brands-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.home-brand-item {
    min-width: 135px;
    height: 115px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.home-brand-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.home-brand-item img {
    max-width: 85px;
    max-height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
}

.home-brand-item p {
    margin: 0;
    font-weight: 800;
    font-size: 14px;
    color: var(--secondary);
}

.home-search-premium input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 15px 18px;
    margin-bottom: 12px;
    outline: none;
}

.home-search-premium input:focus {
    border-color: var(--primary);
}

.home-search-premium button {
    width: 100%;
    border: 0;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 18px;
    font-weight: 800;
}

.clear-search-premium {
    display: block;
    text-align: center;
    margin-top: 12px;
    background: #f3f4f6;
    color: var(--secondary);
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
}

/* ===== Why Us Section ===== */

.why-us-section {
    margin-top: 25px;
}

.why-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    height: 100%;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.why-icon {
    width: 56px;
    height: 56px;
    background: rgba(31, 60, 136, 0.10);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 18px;
}

.why-card h4 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.why-card p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 768px) {
    .home-tools-section {
        margin-top: 20px;
    }

    .home-brands-card,
    .home-search-premium {
        padding: 22px;
    }

    .home-brand-item {
        min-width: 120px;
    }
}


/* ===== Mobile Menu Fix ===== */

.mobile-menu-btn {
    display: none;
}

@media (min-width: 769px) {
    .store-nav {
        display: flex !important;
        align-items: center;
        gap: 14px;
    }
}

@media (max-width: 768px) {

    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: white;
        border: 0;
        padding: 10px 16px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 15px;
        cursor: pointer;
    }

    .store-header {
        position: relative !important;
        z-index: 9999 !important;
    }

    .store-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 10px;
        left: 10px;
        background: white;
        border-radius: 20px;
        padding: 14px;
        box-shadow: 0 18px 45px rgba(0,0,0,0.18);
        z-index: 99999;
    }

    .store-nav.mobile-open {
        display: block !important;
    }

    .store-nav .nav-link {
        display: block !important;
        color: #0f172a !important;
        padding: 12px 14px !important;
        border-radius: 12px;
        font-weight: 800;
        text-align: right;
    }

    .store-nav .nav-link:hover {
        background: #f1f5f9;
        color: var(--primary) !important;
    }

    .navbar-category-item {
        display: block !important;
        width: 100%;
    }

    .navbar-category-dropdown {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 14px !important;
        margin: 5px 0 10px !important;
        padding: 8px !important;
    }

    .navbar-category-dropdown a {
        display: block;
        padding: 10px 14px;
        color: #0f172a;
        text-decoration: none;
        border-radius: 10px;
        font-weight: 700;
    }

    .navbar-category-dropdown a:hover {
        background: white;
        color: var(--primary);
    }
}

.home-brand-item {
    text-decoration: none;
    color: inherit;
}

.home-brand-item:hover {
    text-decoration: none;
    color: inherit;
}


.product-brand-name {
    display: inline-block;
    background: rgba(31, 60, 136, 0.08);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ===== Premium Home Slider ===== */

.premium-slider-section {
    margin-top: 25px;
    margin-bottom: 35px;
}

.premium-slide {
    position: relative;
    height: 560px;
    border-radius: 36px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #0f172a, #1f3c88);
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.22);
}

.premium-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.95),
            rgba(15, 23, 42, 0.62),
            rgba(15, 23, 42, 0.15)
        );
    z-index: 1;
}

.premium-slide-content {
    position: absolute;
    z-index: 2;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 650px;
    color: white;
}

.premium-slide-content span {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.premium-slide-content h1 {
    font-size: 52px;
    line-height: 1.35;
    font-weight: 900;
    margin-bottom: 18px;
}

.premium-slide-content p {
    font-size: 19px;
    line-height: 2;
    color: #e5e7eb;
    margin-bottom: 28px;
}

.premium-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-slide-actions .btn {
    border-radius: 18px;
    padding: 13px 28px;
    font-weight: 900;
}

.default-slide {
    margin-top: 25px;
    margin-bottom: 35px;
}

/* Slider Controls */

#homePremiumSlider .carousel-control-prev,
#homePremiumSlider .carousel-control-next {
    width: 55px;
    height: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.16);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    opacity: 1;
}

#homePremiumSlider .carousel-control-prev {
    left: 25px;
}

#homePremiumSlider .carousel-control-next {
    right: 25px;
}

#homePremiumSlider .carousel-indicators {
    bottom: 25px;
    margin-bottom: 0;
}

#homePremiumSlider .carousel-indicators button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.55);
}

#homePremiumSlider .carousel-indicators button.active {
    width: 34px;
    border-radius: 50px;
    background: var(--accent);
}

/* English Direction */

html[dir="ltr"] .premium-slide-content {
    right: auto;
    left: 70px;
}

html[dir="ltr"] .premium-slide-overlay {
    background:
        linear-gradient(
            270deg,
            rgba(15, 23, 42, 0.95),
            rgba(15, 23, 42, 0.62),
            rgba(15, 23, 42, 0.15)
        );
}

/* Mobile Slider */

@media (max-width: 768px) {

    .premium-slider-section {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .premium-slide {
        height: 430px;
        border-radius: 24px;
    }

    .premium-slide-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(15, 23, 42, 0.30),
                rgba(15, 23, 42, 0.92)
            );
    }

    .premium-slide-content {
        right: 22px;
        left: 22px;
        top: auto;
        bottom: 35px;
        transform: none;
        max-width: none;
        text-align: right;
    }

    html[dir="ltr"] .premium-slide-content {
        right: 22px;
        left: 22px;
        text-align: left;
    }

    .premium-slide-content span {
        font-size: 13px;
        padding: 6px 15px;
        margin-bottom: 12px;
    }

    .premium-slide-content h1 {
        font-size: 28px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .premium-slide-content p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 18px;
    }

    .premium-slide-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    #homePremiumSlider .carousel-control-prev,
    #homePremiumSlider .carousel-control-next {
        width: 42px;
        height: 42px;
    }

    #homePremiumSlider .carousel-control-prev {
        left: 12px;
    }

    #homePremiumSlider .carousel-control-next {
        right: 12px;
    }

    #homePremiumSlider .carousel-indicators {
        bottom: 12px;
    }
}


/* ===== FINAL MOBILE STORE FIX ===== */

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .top-bar {
        font-size: 12px !important;
        text-align: center !important;
        padding: 8px 0 !important;
    }

    .store-header {
        position: relative !important;
        width: 100% !important;
        padding: 10px 0 !important;
        z-index: 999 !important;
    }

    .store-header .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .store-logo,
    .logo,
    .navbar-brand {
        max-width: 145px !important;
        overflow: hidden !important;
    }

    .store-logo img,
    .logo img,
    .navbar-brand img {
        max-width: 130px !important;
        max-height: 45px !important;
        object-fit: contain !important;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--primary) !important;
        color: white !important;
        border: 0 !important;
        padding: 9px 14px !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
        font-size: 14px !important;
    }

    .store-nav {
        display: none !important;
        width: 100% !important;
        flex-basis: 100% !important;
        background: white !important;
        border-radius: 18px !important;
        padding: 12px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
        margin-top: 8px !important;
        position: relative !important;
        z-index: 9999 !important;
    }

    .store-nav.mobile-open {
        display: block !important;
    }

    .store-nav .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 11px 12px !important;
        color: #0f172a !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        text-align: right !important;
    }

    .store-nav .nav-link:hover {
        background: #f1f5f9 !important;
        color: var(--primary) !important;
    }

    .navbar-category-item {
        width: 100% !important;
        display: block !important;
    }

    .navbar-category-main {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .mobile-submenu-btn {
        display: inline-flex !important;
    }

    .navbar-category-dropdown {
        position: static !important;
        display: none !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
        margin-top: 5px !important;
        padding: 8px !important;
    }

    .navbar-category-item.sub-open .navbar-category-dropdown {
        display: block !important;
    }

    .premium-slider-section {
        margin-top: 12px !important;
    }

    .premium-slide {
        height: 360px !important;
        border-radius: 20px !important;
    }

    .premium-slide-content {
        right: 18px !important;
        left: 18px !important;
        bottom: 28px !important;
        top: auto !important;
        transform: none !important;
        max-width: none !important;
    }

    .premium-slide-content h1 {
        font-size: 24px !important;
        line-height: 1.5 !important;
    }

    .premium-slide-content p {
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    .premium-slide-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .premium-slide-actions .btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 14px !important;
    }

    .home-tools-section,
    .brands-section,
    .home-search-section {
        margin-top: 20px !important;
        margin-bottom: 25px !important;
    }

    .home-brands-card,
    .home-search-premium,
    .brands-section {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .section-title h2 {
        font-size: 24px !important;
    }

    .product-image-wrapper {
        height: 145px !important;
    }

    .product-name {
        font-size: 13px !important;
    }

    .product-card .btn {
        font-size: 12px !important;
        padding: 8px !important;
    }

    .premium-footer {
        text-align: center !important;
        padding: 40px 0 20px !important;
    }
}
/* ===== Smaller Professional Product Cards ===== */

.product-card {
    border-radius: 20px !important;
    padding: 12px !important;
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    height: 145px !important;
    border-radius: 16px !important;
    padding: 10px !important;
}

.product-img {
    max-height: 115px !important;
    object-fit: contain;
}

.product-name {
    font-size: 14px !important;
    line-height: 1.6 !important;
    min-height: 44px !important;
    margin-bottom: 8px !important;
}

.product-category,
.product-brand-name {
    font-size: 11px !important;
    padding: 4px 10px !important;
    margin-bottom: 6px !important;
}

.price,
.new-price {
    font-size: 16px !important;
    font-weight: 900 !important;
}

.old-price {
    font-size: 12px !important;
}

.product-card .btn {
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
}

.product-card .badge,
.sale-badge,
.out-badge {
    font-size: 11px !important;
    padding: 5px 9px !important;
}

/* Mobile product cards */
@media (max-width: 768px) {
    .product-card {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .product-image-wrapper {
        height: 130px !important;
    }

    .product-img {
        max-height: 105px !important;
    }

    .product-name {
        font-size: 13px !important;
        min-height: 40px !important;
    }

    .price,
    .new-price {
        font-size: 15px !important;
    }

    .product-card .btn {
        font-size: 11px !important;
        padding: 7px !important;
    }
}

م/* ===== Square Product Cards ===== */

.product-card {
    height: 360px !important;
    border-radius: 22px !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

.product-image-wrapper {
    height: 145px !important;
    width: 100% !important;
    border-radius: 18px !important;
    padding: 10px !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-img {
    max-width: 100% !important;
    max-height: 120px !important;
    object-fit: contain !important;
}

.product-name {
    font-size: 13px !important;
    line-height: 1.5 !important;
    height: 58px !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.product-category,
.product-brand-name {
    font-size: 11px !important;
    padding: 4px 10px !important;
    margin-bottom: 5px !important;
}

.price,
.new-price {
    font-size: 16px !important;
    font-weight: 900 !important;
}

.old-price {
    font-size: 12px !important;
}

.product-card .btn {
    font-size: 12px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    width: 100%;
}

.sale-badge,
.out-badge {
    font-size: 11px !important;
    padding: 5px 10px !important;
}