/* Benzakour Oud V9 — responsive desktop layer
   Mobile design remains the source of truth below 900px. */

.desktop-nav-v9,
.desktop-wa-v9,
.hero-kicker-v9 {
    display: none;
}

/* Small mobile finishing touches */
@media (max-width: 759px) {
    body {
        overflow-x: hidden;
    }

    .mobile-shell {
        width: 100%;
        max-width: 520px;
    }

    .main-content {
        overflow: hidden;
    }

    .product-card,
    .wide-product,
    .detail-image,
    .cart-item {
        min-width: 0;
    }

    .product-body h3,
    .wide-info h3 {
        overflow-wrap: anywhere;
    }

    .app-footer-v7 {
        padding-bottom: 18px;
    }

    .about-brand-v9 {
        display: grid;
        gap: 16px;
        margin: 28px 0;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: linear-gradient(145deg, rgba(215,164,65,.08), rgba(255,255,255,.02));
    }

    .about-copy-v9 h2 {
        margin: 5px 0 8px;
        color: var(--gold2);
        font-family: Amiri, serif;
        font-size: 28px;
    }

    .about-copy-v9 p {
        color: var(--muted);
        line-height: 1.8;
        font-size: 13px;
    }

    .about-media-v9 {
        position: relative;
        height: 220px;
        overflow: hidden;
        border-radius: 18px;
    }

    .about-media-v9 > img:first-child {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-mark-v9 {
        position: absolute;
        left: 14px;
        bottom: 12px;
        width: 58px;
        filter: drop-shadow(0 0 12px #000);
    }

    .why-us-v9 {
        margin: 22px 0;
    }

    .why-grid-v9 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .why-grid-v9 article {
        min-width: 0;
        padding: 14px 9px;
        text-align: center;
        border: 1px solid rgba(215,164,65,.22);
        border-radius: 18px;
        background: #0b0a09;
    }

    .why-grid-v9 .bo-icon {
        width: 28px;
        height: 28px;
        color: var(--gold2);
    }

    .why-grid-v9 h3 {
        margin: 7px 0 3px;
        color: var(--gold2);
        font-size: 13px;
    }

    .why-grid-v9 p {
        margin: 0;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.5;
    }

    .breadcrumb-v9 {
        display: none;
    }

    .cart-layout-v9,
    .checkout-layout-v9 {
        display: block;
    }

    .checkout-fields-v9 h2 {
        display: none;
    }

    .checkout-side-v9 small {
        display: block;
        margin-top: 10px;
        color: var(--muted);
        text-align: center;
        font-size: 11px;
        line-height: 1.6;
    }
}

/* Real desktop version */
@media (min-width: 900px) {
    html {
        background: #030303;
    }

    body {
        min-width: 900px;
        background:
            radial-gradient(circle at 85% 15%, rgba(130,83,18,.12), transparent 28%),
            radial-gradient(circle at 10% 65%, rgba(120,72,18,.10), transparent 27%),
            #030303;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        opacity: .28;
        background-image:
            linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.009) 1px, transparent 1px);
        background-size: 44px 44px;
    }

    .page-glow {
        opacity: .65;
    }

    .mobile-shell {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        margin: 0;
        padding-bottom: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .topbar-v7 {
        height: 84px;
        display: grid;
        grid-template-columns: 255px minmax(0, 1fr) auto;
        gap: 24px;
        padding: 0 max(34px, calc((100vw - 1220px) / 2));
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        background: rgba(3,3,3,.94);
        backdrop-filter: blur(18px);
        box-shadow: 0 16px 45px rgba(0,0,0,.28);
    }

    .topbar-v7 .menu-toggle {
        display: none;
    }

    .brand-v7 {
        min-width: 0;
        flex: none;
        justify-content: flex-start;
        gap: 10px;
    }

    .brand-v7 img {
        width: 55px;
        height: 55px;
    }

    .brand-v7 b {
        font-size: 20px;
    }

    .brand-v7 small {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .desktop-nav-v9 {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: clamp(18px, 2vw, 34px);
        height: 100%;
    }

    .desktop-nav-v9 a {
        position: relative;
        display: flex;
        align-items: center;
        color: #eadfc8;
        font-size: 14px;
        white-space: nowrap;
        transition: color .2s ease;
    }

    .desktop-nav-v9 a::after {
        content: "";
        position: absolute;
        right: 0;
        left: 0;
        bottom: 17px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold2), transparent);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .desktop-nav-v9 a:hover,
    .desktop-nav-v9 a.active {
        color: var(--gold2);
    }

    .desktop-nav-v9 a:hover::after,
    .desktop-nav-v9 a.active::after {
        transform: scaleX(1);
    }

    .top-actions {
        justify-content: flex-end;
        gap: 6px;
        direction: ltr;
    }

    .plain-icon {
        width: 39px;
        height: 44px;
    }

    .desktop-wa-v9 {
        min-height: 43px;
        margin-left: 7px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        direction: rtl;
        border: 1px solid var(--gold);
        border-radius: 8px;
        color: var(--gold2);
        background: rgba(215,164,65,.035);
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .desktop-wa-v9 .bo-icon {
        width: 18px;
        height: 18px;
    }

    .desktop-wa-v9:hover {
        color: #171006;
        background: linear-gradient(135deg, var(--gold2), var(--gold));
    }

    .side-menu {
        display: none;
    }

    .main-content {
        width: 100%;
        padding: 0 0 74px;
        overflow: visible;
    }

    /* Home hero */
    .hero-sale-v8 {
        min-height: 585px;
        margin: 0 0 48px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        align-items: stretch;
        background:
            linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.83) 39%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.08) 100%),
            url('../images/products/product_bakhour_burner_smoke.png') 76% 45% / cover no-repeat;
        box-shadow:
            inset 0 -120px 100px rgba(0,0,0,.74),
            0 28px 65px rgba(0,0,0,.35);
    }

    .hero-sale-v8::before {
        background:
            radial-gradient(circle at 67% 35%, rgba(215,164,65,.22), transparent 30%),
            linear-gradient(0deg, rgba(0,0,0,.28), transparent 48%);
    }

    .sale-content-v8 {
        width: min(1180px, calc(100% - 70px));
        min-width: 0;
        margin: auto;
        padding: 82px 56% 70px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: right;
    }

    .hero-kicker-v9 {
        display: block;
        margin-bottom: 4px;
        color: var(--gold);
        font-family: Amiri, serif;
        font-size: 14px;
        letter-spacing: 4px;
    }

    .sale-badge-v8 {
        margin-bottom: 12px;
    }

    .hero-sale-v8 h1 {
        max-width: 520px;
        margin: 7px 0 16px;
        font-size: clamp(52px, 5.3vw, 80px);
        line-height: 1.05;
    }

    .hero-sale-v8 p {
        max-width: 540px;
        margin-bottom: 24px;
        color: #e3d6ba;
        font-size: 16px;
        line-height: 2;
    }

    .hero-sale-v8 .hero-actions {
        gap: 12px;
    }

    .hero-sale-v8 .btn-gold,
    .hero-sale-v8 .btn-outline {
        min-width: 160px;
        min-height: 48px;
        border-radius: 8px;
        font-size: 14px;
    }

    .hero-dots-v8 {
        margin-top: 25px;
    }

    /* Shared width */
    .scent-card,
    .quiz-box,
    .section-head,
    .category-scroll,
    .experience-strip,
    .product-grid,
    .about-brand-v9,
    .why-us-v9,
    .page-title,
    .search-box,
    .filter-chips,
    .smart-filters,
    .product-list,
    .breadcrumb-v9,
    .product-detail,
    .mini-products,
    .cart-layout-v9,
    .checkout-steps,
    .checkout-layout-v9,
    .track-form,
    #trackResult,
    #favoritesContainer,
    .success-box {
        width: min(1180px, calc(100% - 64px));
        margin-left: auto;
        margin-right: auto;
    }

    .section-head {
        margin-top: 48px;
        margin-bottom: 19px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    /* Quiz & scent */
    .scent-card-v2 {
        min-height: 225px;
        padding: 32px 42px;
        gap: 35px;
        border-radius: 18px;
        background:
            linear-gradient(90deg, rgba(215,164,65,.13), rgba(255,255,255,.018)),
            #090806;
    }

    .scent-card-v2 > div {
        max-width: 700px;
    }

    .scent-card h2 {
        font-size: 30px;
    }

    .scent-card p {
        font-size: 15px;
    }

    .scent-card img {
        width: 180px;
        height: 180px;
    }

    .quiz-box {
        padding: 28px;
        border-radius: 18px;
    }

    .quiz-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .quiz-options .quiz-back {
        grid-column: 1 / -1;
    }

    .recommendation-list,
    .quiz-recommendation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .quiz-recommendation-grid .recommendation-card,
    .recommendation-card {
        grid-template-columns: 1fr;
    }

    .quiz-recommendation-grid .recommendation-card.main-recommendation {
        grid-column: span 1;
    }

    .recommendation-image,
    .quiz-recommendation-grid .recommendation-image {
        height: 220px;
    }

    /* Categories */
    .category-scroll {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
        overflow: visible;
    }

    .category-pill {
        min-width: 0;
        min-height: 160px;
        padding: 20px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        border-radius: 16px;
        transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .category-pill:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
        background: linear-gradient(145deg, rgba(215,164,65,.13), rgba(255,255,255,.018));
    }

    .category-pill img {
        height: 78px;
        margin-bottom: 10px;
    }

    .category-pill span {
        font-size: 15px;
        color: var(--gold2);
    }

    .experience-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 32px;
        margin-bottom: 22px;
    }

    .experience-strip a {
        min-height: 94px;
        padding: 22px;
        border-radius: 15px;
    }

    .experience-strip b {
        font-size: 18px;
    }

    /* Home products */
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .product-card {
        min-width: 0;
        border-radius: 15px;
        transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    .product-card:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: 0 20px 55px rgba(0,0,0,.38);
    }

    .product-image {
        height: 260px;
    }

    .product-body {
        padding: 16px;
    }

    .product-body h3 {
        min-height: 50px;
        font-size: 17px;
    }

    .btn-cart {
        min-height: 40px;
        border-radius: 8px;
    }

    /* About */
    .about-brand-v9 {
        margin-top: 58px;
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
        align-items: stretch;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: linear-gradient(90deg, #080706, #12100c);
    }

    .about-copy-v9 {
        padding: 48px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .about-copy-v9 h2 {
        margin: 7px 0 13px;
        color: var(--gold2);
        font-family: Amiri, serif;
        font-size: 38px;
    }

    .about-copy-v9 p {
        color: var(--muted);
        font-size: 15px;
        line-height: 2;
    }

    .about-copy-v9 .btn-outline {
        align-self: flex-start;
        margin-top: 10px;
        border-radius: 8px;
    }

    .about-media-v9 {
        position: relative;
        min-height: 430px;
        overflow: hidden;
    }

    .about-media-v9 > img:first-child {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-media-v9::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 55%, rgba(8,7,6,.9));
    }

    .about-mark-v9 {
        position: absolute;
        z-index: 2;
        left: 34px;
        bottom: 26px;
        width: 105px;
        filter: drop-shadow(0 0 18px #000);
    }

    .why-grid-v9 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .why-grid-v9 article {
        padding: 27px 18px;
        text-align: center;
        border: 1px solid rgba(215,164,65,.22);
        border-radius: 15px;
        background: rgba(255,255,255,.014);
    }

    .why-grid-v9 .bo-icon {
        width: 42px;
        height: 42px;
        color: var(--gold2);
    }

    .why-grid-v9 h3 {
        margin: 10px 0 5px;
        color: var(--gold2);
        font-size: 18px;
    }

    .why-grid-v9 p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
    }

    /* Products listing */
    .page-title {
        padding-top: 48px;
        text-align: center;
    }

    .page-title h1 {
        font-size: 48px;
    }

    .page-title p {
        max-width: 720px;
        margin: 0 auto;
        font-size: 15px;
    }

    .search-box {
        max-width: 760px;
        margin-top: 22px;
        border-radius: 10px;
    }

    .filter-chips {
        justify-content: center;
        overflow: visible;
        flex-wrap: wrap;
        margin-top: 22px;
    }

    .filter-chips button {
        padding: 10px 22px;
    }

    .smart-filters {
        max-width: 900px;
        grid-template-columns: 1.3fr .8fr .8fr auto;
        align-items: end;
        margin-top: 18px;
    }

    .stock-check {
        grid-column: auto;
        min-height: 61px;
    }

    .product-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        margin-top: 30px;
    }

    .wide-product {
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 15px;
        transition: transform .2s ease, border-color .2s ease;
    }

    .wide-product:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
    }

    .wide-image {
        height: 270px;
        border-radius: 0;
    }

    .wide-info {
        padding: 17px;
    }

    .wide-info h3 {
        min-height: 48px;
        margin-top: 5px;
        font-size: 18px;
    }

    .wide-info p {
        min-height: 43px;
    }

    .wide-info > div:last-child {
        margin-top: 10px;
    }

    .wide-info button {
        min-width: 78px;
        min-height: 38px;
        border-radius: 8px;
    }

    /* Product detail */
    .breadcrumb-v9 {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 27px;
        color: var(--muted);
        font-size: 13px;
    }

    .breadcrumb-v9 b {
        color: var(--gold2);
    }

    .product-detail {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
        gap: 36px;
        align-items: start;
        margin-top: 22px;
        margin-bottom: 54px;
    }

    .detail-image {
        height: 610px;
        border-radius: 18px;
    }

    .detail-content {
        min-height: 610px;
        padding: 34px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: linear-gradient(150deg, #12100d, #080706);
    }

    .detail-content h1 {
        font-size: 46px;
    }

    .detail-content p {
        font-size: 15px;
    }

    .specs {
        gap: 10px;
    }

    .specs div {
        padding: 16px 10px;
        border-radius: 11px;
    }

    .benefit-chips {
        flex-wrap: wrap;
        overflow: visible;
    }

    .price-row strong {
        font-size: 34px;
    }

    .mini-products {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        overflow: visible;
        padding-bottom: 35px;
    }

    .mini-products a {
        min-width: 0;
        border-radius: 13px;
    }

    .mini-products img {
        height: 180px;
    }

    .mini-products span {
        min-height: 51px;
        padding: 13px;
        font-size: 14px;
    }

    /* Cart */
    .cart-layout-v9 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 28px;
        align-items: start;
        margin-top: 22px;
        margin-bottom: 60px;
    }

    .cart-main-v9 {
        min-width: 0;
    }

    .cart-item {
        grid-template-columns: 130px 1fr 42px;
        gap: 16px;
        padding: 15px;
        border-radius: 15px;
    }

    .cart-item img {
        width: 130px;
        height: 130px;
        border-radius: 11px;
    }

    .cart-item h3 {
        font-size: 19px;
    }

    .cart-summary {
        position: sticky;
        top: 108px;
        bottom: auto;
        margin: 0;
        padding: 22px;
        border-radius: 15px;
    }

    .cart-summary::before {
        content: "ملخص الطلب";
        display: block;
        margin-bottom: 15px;
        color: var(--gold2);
        font-size: 22px;
        font-weight: 800;
    }

    .coupon-box {
        max-width: 520px;
        margin-top: 17px;
    }

    /* Checkout */
    .checkout-steps {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .checkout-layout-v9 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 28px;
        align-items: start;
        margin-bottom: 62px;
    }

    .checkout-fields-v9 {
        padding: 28px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #0b0a09;
    }

    .checkout-fields-v9 h2 {
        margin: 0 0 21px;
        color: var(--gold2);
        font-size: 24px;
    }

    .checkout-field-grid-v9 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .checkout-field-grid-v9 label {
        margin: 0;
    }

    .checkout-field-grid-v9 .full-field-v9 {
        grid-column: 1 / -1;
    }

    .checkout-side-v9 {
        position: sticky;
        top: 108px;
        padding: 23px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: linear-gradient(150deg, #12100d, #080706);
    }

    .checkout-items {
        margin-top: 0;
    }

    .checkout-side-v9 small {
        display: block;
        margin-top: 12px;
        color: var(--muted);
        text-align: center;
        line-height: 1.7;
        font-size: 12px;
    }

    /* Track and favorites */
    .track-form {
        max-width: 780px;
        margin-top: 20px;
    }

    #trackResult,
    #favoritesContainer {
        margin-top: 25px;
        margin-bottom: 55px;
    }

    #favoritesContainer {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    #favoritesContainer .wide-product {
        width: auto;
        margin: 0;
    }

    /* Footer */
    .footer-trust-v7 {
        width: 100%;
        margin: 20px 0 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0 max(34px, calc((100vw - 1180px) / 2));
        background: #080706;
    }

    .footer-trust-v7 div {
        min-height: 116px;
        padding: 23px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .footer-trust-v7 .bo-icon {
        width: 36px;
        height: 36px;
    }

    .footer-trust-v7 b {
        font-size: 14px;
    }

    .footer-trust-v7 small {
        font-size: 11px;
    }

    .app-footer-v7 {
        width: min(1180px, calc(100% - 64px));
        min-height: 260px;
        margin: 0 auto;
        padding: 47px 0 24px;
        grid-template-columns: 1fr 1.25fr 1fr;
        gap: 60px;
        align-items: center;
        border-bottom: 0;
    }

    .footer-brand-v7 img {
        width: 88px;
        height: 88px;
    }

    .footer-brand-v7 b {
        font-size: 25px;
    }

    .footer-brand-v7 small {
        font-size: 13px;
    }

    .footer-social-v7,
    .footer-contact-v7 {
        font-size: 13px;
    }

    .footer-social-v7 h4,
    .footer-contact-v7 h4 {
        font-size: 17px;
    }

    .footer-social-v7 a {
        width: 42px;
        height: 42px;
    }

    .footer-contact-v7 a {
        justify-content: flex-start;
        font-size: 13px;
    }

    .copyright-v7 {
        margin-top: 22px;
        font-size: 12px;
    }

    .bottom-nav-v7 {
        display: none !important;
    }

    .float-whatsapp {
        position: fixed !important;
        left: 28px !important;
        right: auto !important;
        bottom: 28px !important;
        width: 58px;
        height: 58px;
        z-index: 95;
    }

    .toast {
        bottom: 45px;
    }
}

@media (min-width: 900px) and (max-width: 1120px) {
    .topbar-v7 {
        grid-template-columns: 215px minmax(0, 1fr) auto;
        gap: 14px;
        padding-inline: 24px;
    }

    .desktop-nav-v9 {
        gap: 15px;
    }

    .desktop-nav-v9 a {
        font-size: 12px;
    }

    .desktop-wa-v9 span {
        display: none;
    }

    .desktop-wa-v9 {
        min-width: 43px;
        padding: 0;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sale-content-v8 {
        padding-left: 52%;
    }
}

/* =========================================================
   V11 — Desktop header, dropdown menus and hero correction
   ========================================================= */

/* Dynamic mobile drawer menu */
.mobile-menu-dynamic {
    display: grid;
    gap: 4px;
}

.mobile-menu-node {
    min-width: 0;
}

.mobile-menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 4px;
}

.mobile-menu-node:not(.has-children) .mobile-menu-row {
    grid-template-columns: 1fr;
}

.side-menu .mobile-menu-row > a,
.side-menu .side-admin-link {
    width: 100%;
    min-width: 0;
}

.mobile-submenu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(215,164,65,.2);
    border-radius: 10px;
    color: var(--gold2);
    background: rgba(215,164,65,.04);
    transition: transform .2s ease, background .2s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
    background: rgba(215,164,65,.12);
}

.mobile-submenu {
    display: none;
    margin: 3px 22px 7px 0;
    padding-right: 10px;
    border-right: 1px solid rgba(215,164,65,.22);
}

.mobile-submenu.open {
    display: grid;
    gap: 3px;
}

.mobile-menu-node.depth-1 .mobile-menu-row > a,
.mobile-menu-node.depth-2 .mobile-menu-row > a {
    min-height: 42px;
    padding: 8px 10px;
    color: #cfc3aa;
    font-size: 13px;
}

.mobile-menu-node.active > .mobile-menu-row > a {
    color: var(--gold2);
    background: rgba(215,164,65,.08);
}

@media (min-width: 900px) {
    .topbar-v7 {
        height: 78px;
        grid-template-columns: minmax(180px, 215px) minmax(420px, 1fr) minmax(235px, auto);
        gap: 18px;
        padding: 0 max(26px, calc((100vw - 1320px) / 2));
    }

    .brand-v7 {
        gap: 8px;
    }

    .brand-v7 img {
        width: 48px;
        height: 48px;
    }

    .brand-v7 b {
        font-size: 18px;
    }

    .desktop-nav-v9 {
        min-width: 0;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: clamp(4px, .75vw, 12px);
        overflow: visible;
        direction: rtl;
    }

    .desktop-menu-node {
        position: relative;
        display: flex;
        align-items: stretch;
        min-width: 0;
    }

    .desktop-menu-link {
        min-height: 78px;
        padding: 0 clamp(8px, .8vw, 13px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #eadfc8;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        transition: color .2s ease, background .2s ease;
    }

    .desktop-menu-node > .desktop-menu-link::after {
        content: "";
        position: absolute;
        right: 9px;
        left: 9px;
        bottom: 14px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold2), transparent);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .desktop-menu-node:hover > .desktop-menu-link,
    .desktop-menu-node:focus-within > .desktop-menu-link,
    .desktop-menu-node.active > .desktop-menu-link {
        color: var(--gold2);
        background: rgba(215,164,65,.035);
    }

    .desktop-menu-node:hover > .desktop-menu-link::after,
    .desktop-menu-node:focus-within > .desktop-menu-link::after,
    .desktop-menu-node.active > .desktop-menu-link::after {
        transform: scaleX(1);
    }

    /* Cancel the old rule that targeted every nested anchor. */
    .desktop-nav-v9 a::after {
        content: none;
    }

    .desktop-menu-node > .desktop-menu-link::after {
        content: "";
    }

    .desktop-menu-caret {
        font-size: 13px;
        line-height: 1;
        transform: translateY(-1px);
        transition: transform .2s ease;
    }

    .desktop-menu-node:hover > .desktop-menu-link .desktop-menu-caret,
    .desktop-menu-node:focus-within > .desktop-menu-link .desktop-menu-caret {
        transform: translateY(1px) rotate(180deg);
    }

    .desktop-submenu {
        position: absolute;
        z-index: 90;
        top: calc(100% - 1px);
        right: 0;
        width: 230px;
        padding: 8px;
        display: grid;
        gap: 3px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        border: 1px solid rgba(215,164,65,.22);
        border-radius: 0 0 14px 14px;
        background: rgba(8,7,6,.985);
        box-shadow: 0 24px 55px rgba(0,0,0,.55);
        backdrop-filter: blur(18px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .desktop-menu-node:hover > .desktop-submenu,
    .desktop-menu-node:focus-within > .desktop-submenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .desktop-submenu .desktop-menu-node {
        width: 100%;
        display: block;
    }

    .desktop-submenu .desktop-menu-link {
        width: 100%;
        min-height: 43px;
        padding: 8px 12px;
        justify-content: space-between;
        border-radius: 9px;
        color: #d8ccb4;
        font-size: 13px;
    }

    .desktop-submenu .desktop-menu-node:hover > .desktop-menu-link,
    .desktop-submenu .desktop-menu-node.active > .desktop-menu-link {
        color: var(--gold2);
        background: rgba(215,164,65,.1);
    }

    .desktop-submenu .desktop-submenu {
        top: -8px;
        right: calc(100% - 2px);
        border-radius: 14px;
    }

    .top-actions {
        min-width: 0;
        gap: 3px;
    }

    .plain-icon {
        width: 36px;
        height: 42px;
    }

    .desktop-wa-v9 {
        min-height: 41px;
        margin-left: 4px;
        padding: 0 12px;
        font-size: 11px;
    }

    /* Hero: keep the Arabic title in two clean lines instead of a narrow column. */
    .hero-sale-v8 {
        min-height: 590px;
        background-position: 74% 45%;
    }

    .sale-content-v8 {
        width: min(1280px, calc(100% - 72px));
        min-width: 0;
        margin: 0 auto;
        padding: 76px 0 68px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        direction: ltr;
        text-align: right;
    }

    .sale-content-v8 > * {
        direction: rtl;
    }

    .sale-content-v8 .sale-badge-v8,
    .sale-content-v8 .hero-kicker-v9,
    .sale-content-v8 h1,
    .sale-content-v8 p,
    .sale-content-v8 .hero-actions,
    .sale-content-v8 .hero-dots-v8 {
        width: min(500px, 43vw);
        max-width: 100%;
    }

    .sale-content-v8 .sale-badge-v8,
    .sale-content-v8 .hero-kicker-v9 {
        width: auto;
    }

    .hero-sale-v8 h1 {
        margin: 8px 0 18px;
        font-size: clamp(54px, 4.6vw, 72px);
        line-height: 1.12;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .hero-sale-v8 h1 span {
        display: inline;
    }

    .hero-sale-v8 p {
        margin: 0 0 24px;
        font-size: 15px;
        line-height: 2;
    }

    .hero-sale-v8 .hero-actions {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-dots-v8 {
        direction: ltr !important;
        justify-content: flex-start;
    }
}

@media (min-width: 900px) and (max-width: 1120px) {
    .topbar-v7 {
        grid-template-columns: 165px minmax(390px, 1fr) 180px;
        gap: 8px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .brand-v7 span {
        display: none;
    }

    .desktop-menu-link {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }

    .desktop-wa-v9 span {
        display: none;
    }

    .desktop-wa-v9 {
        width: 42px;
        padding: 0;
    }

    .sale-content-v8 .hero-kicker-v9,
    .sale-content-v8 h1,
    .sale-content-v8 p,
    .sale-content-v8 .hero-actions,
    .sale-content-v8 .hero-dots-v8 {
        width: min(430px, 46vw);
    }

    .hero-sale-v8 h1 {
        font-size: clamp(48px, 5.4vw, 62px);
    }
}

.footer-dynamic-menu {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 13px 0 4px;
    border-top: 1px solid rgba(215,164,65,.14);
}

.footer-dynamic-menu a {
    color: #c8baa0;
    font-size: 12px;
}

.footer-dynamic-menu a:hover {
    color: var(--gold2);
}
