/* =========================================================
   BAHARAT AL-TABBAKH
   UNIFIED SALLA DESIGN SYSTEM
   Premium RTL / Responsive / Mobile First
   iOS + HarmonyOS Inspired
   Version: 3.0 (Clean & Optimized)
   ========================================================= */

/* =========================================================
   01 — DESIGN TOKENS
   ========================================================= */

:root {
    --brand-primary: #9B6423;
    --brand-primary-dark: #754918;
    --brand-primary-soft: #B97825;
    --brand-gold: #E7A52A;
    --brand-gold-dark: #C98A1F;
    --brand-gold-light: #F1D39A;
    --brand-cream: #FFF4DE;
    --brand-cream-2: #FFF9EF;
    --brand-bg: #FFFDF9;
    --brand-text: #3A2817;
    --brand-muted: #806C58;
    --white: #FFFFFF;

    --border: #E7D4B5;
    --border-soft: rgba(155, 100, 35, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;

    --shadow-sm: 0 4px 12px rgba(58, 40, 23, 0.07);
    --shadow-md: 0 10px 28px rgba(58, 40, 23, 0.11);
    --shadow-lg: 0 18px 42px rgba(58, 40, 23, 0.15);

    --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   02 — GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF9EF 55%, #FFF6E9 100%) !important;
    color: var(--brand-text) !important;
}

body, button, input, textarea, select {
    font-family: inherit;
}

::selection {
    background: var(--brand-gold);
    color: var(--white);
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   03 — SECTION TITLES
   ========================================================= */

.s-block__title {
    justify-content: center !important;
    text-align: center !important;
}

.s-block__title h2 {
    margin: 0 !important;
    color: var(--brand-text) !important;
    font-weight: 800 !important;
}

/* =========================================================
   04 — HEADER
   ========================================================= */

.store-header {
    position: relative;
    z-index: 9999;
}

.store-header .top-navbar {
    background: rgba(255, 253, 249, 0.96) !important;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.store-header .header-search {
    max-width: 560px;
}

.store-header .s-search-input-wrapper {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    box-shadow: 0 3px 12px rgba(58, 40, 23, 0.05);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.store-header .s-search-input-wrapper:hover,
.store-header .s-search-input-wrapper:focus-within {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 7px 18px rgba(155, 100, 35, 0.10);
}

.store-header .s-search-icon {
    color: var(--brand-primary) !important;
}

/* =========================================================
   05 — MAIN NAVIGATION
   ========================================================= */

.main-nav-container {
    position: relative !important;
    min-height: 82px !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 5px 25px rgba(58, 40, 23, 0.07) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: min-height var(--transition), box-shadow var(--transition), background var(--transition);
}

.main-nav-container.is-scrolled {
    min-height: 68px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(58, 40, 23, 0.12) !important;
}

.main-nav-container > .inner > .container > .flex.items-stretch.justify-between {
    min-height: 78px;
    align-items: center !important;
}

/* =========================================================
   06 — LOGO
   ========================================================= */

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    padding: 3px;
    transition: transform var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand img {
    display: block;
    width: 68px !important;
    height: 68px !important;
    object-fit: contain;
    border-radius: 16px;
}

/* =========================================================
   07 — DESKTOP MENU
   ========================================================= */

@media (min-width: 1024px) {
    .main-nav-container .main-menu {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-nav-container .main-menu > li {
        position: relative;
    }

    .main-nav-container .main-menu > li > a {
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px;
        padding: 0 13px !important;
        border-radius: 12px;
        color: var(--brand-text) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        white-space: nowrap;
        transition: color var(--transition), background var(--transition), transform var(--transition);
    }

    .main-nav-container .main-menu > li > a:hover {
        color: var(--brand-primary) !important;
        background: rgba(231, 165, 42, 0.09);
        transform: translateY(-1px);
    }

    .main-nav-container .main-menu > li > a::after {
        content: "";
        position: absolute;
        right: 14px;
        left: 14px;
        bottom: 5px;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold));
        transform: scaleX(0);
        transition: transform var(--transition);
    }

    .main-nav-container .main-menu > li > a:hover::after {
        transform: scaleX(1);
    }

    .main-nav-container .main-menu > li[id="offers"] > a {
        color: var(--brand-primary) !important;
    }
}

/* =========================================================
   08 — MOBILE HEADER BUTTONS
   ========================================================= */

[data-testid="store-header-mobile-toggle"] {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 13px;
    background: var(--brand-cream) !important;
    color: var(--brand-primary) !important;
    transition: all var(--transition);
}

[data-testid="store-header-mobile-toggle"]:hover {
    background: var(--brand-primary) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

[data-testid="store-header-mobile-toggle"] i {
    color: var(--brand-primary) !important;
    font-size: 22px !important;
}

[data-testid="store-header-mobile-toggle"]:hover i {
    color: var(--white) !important;
}

/* =========================================================
   09 — USER BUTTON
   ========================================================= */

.s-user-menu-login-btn {
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, #FFF9EF, #FFF0D6) !important;
    color: var(--brand-primary) !important;
    transition: all var(--transition);
}

.s-user-menu-login-btn svg {
    width: 23px !important;
    height: 23px !important;
    fill: currentColor !important;
}

.s-user-menu-login-btn:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold)) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.s-user-menu-login-btn:hover svg {
    color: var(--white) !important;
    fill: currentColor !important;
}

/* =========================================================
   10 — CART
   ========================================================= */

.s-cart-summary-wrapper {
    position: relative;
    min-width: 50px;
    min-height: 46px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px;
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    transition: all var(--transition);
}

.s-cart-summary-wrapper:hover {
    background: var(--brand-cream);
    transform: translateY(-2px);
}

#s-cart-icon {
    width: 46px;
    height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.header-btn__icon.sicon-shopping-bag {
    color: var(--brand-primary) !important;
    font-size: 24px !important;
}

.s-cart-summary-count {
    position: absolute !important;
    top: -4px !important;
    right: -2px !important;
    min-width: 21px !important;
    height: 21px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    border: 2px solid var(--white) !important;
    border-radius: 999px !important;
    background: var(--brand-primary) !important;
    color: var(--white) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

.s-cart-summary-count.baharat-cart-updated {
    animation: btCartPulse 0.45s ease;
}

@keyframes btCartPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.s-cart-summary-content {
    display: none !important;
}

/* =========================================================
   11 — PRODUCT CARDS
   ========================================================= */

.s-product-card-vertical {
    position: relative;
    background: var(--white) !important;
    border: 1px solid #E8D3B1 !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
}

.s-product-card-vertical:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold) !important;
    box-shadow: var(--shadow-lg) !important;
}

.s-product-card-content {
    padding: 16px !important;
}

.s-product-card-content-title,
.s-product-card-content-title a {
    color: var(--brand-text) !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}

.s-product-card-content-title a:hover {
    color: var(--brand-primary) !important;
}

.s-product-card-price {
    color: var(--brand-primary) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

/* =========================================================
   12 — PRODUCT ADD TO CART (Card)
   ========================================================= */

.s-product-card-vertical salla-add-product-button {
    display: block !important;
    width: 100% !important;
}

.s-product-card-vertical .s-button-element.s-button-outline.s-button-primary-outline {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 52%, var(--brand-gold) 100%) !important;
    color: var(--white) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 15px rgba(155, 100, 35, 0.20) !important;
    transition: all 0.25s ease;
}

.s-product-card-vertical .s-button-element.s-button-outline.s-button-primary-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(155, 100, 35, 0.28) !important;
}

.s-product-card-vertical .s-button-text {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white) !important;
    width: 100%;
}

.s-product-card-vertical .s-button-text i {
    color: var(--white) !important;
}

/* =========================================================
   13 — CATEGORIES
   ========================================================= */

.slide--cat-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 135px;
    padding: 20px 15px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    background: linear-gradient(145deg, #FFF9EF, #FFF0D5) !important;
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    transition: all 0.30s ease;
}

.slide--cat-entry i {
    width: 52px;
    height: 52px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold)) !important;
    color: var(--white) !important;
    font-size: 23px;
    box-shadow: 0 6px 14px rgba(155, 100, 35, 0.18);
    transition: transform 0.25s ease;
}

.slide--cat-entry h2 {
    margin: 0 !important;
    color: var(--brand-text) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.slide--cat-entry:hover {
    transform: translateY(-5px);
    border-color: var(--brand-gold) !important;
    box-shadow: var(--shadow-md);
}

.slide--cat-entry:hover i {
    transform: scale(1.06);
}

/* =========================================================
   14 — FEATURES
   ========================================================= */

.s-block--features__item {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary)) !important;
    border-radius: 16px !important;
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.s-block--features__item .feature-icon {
    background: var(--brand-cream) !important;
}

.s-block--features__item .feature-icon i {
    color: var(--brand-primary) !important;
}

.s-block--features__item h2,
.s-block--features__item p {
    color: var(--white) !important;
}

/* =========================================================
   15 — PRODUCT SINGLE PAGE
   ========================================================= */

body.product-single {
    background: linear-gradient(180deg, #FFFDF9, #FFF9EF) !important;
}

.container--breadcrumbs {
    margin-top: 12px;
}

.s-breadcrumb-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid rgba(229, 201, 149, 0.7);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.s-breadcrumb-item {
    color: var(--brand-muted) !important;
    font-size: 12px;
}

.s-breadcrumb-item a {
    color: var(--brand-primary) !important;
}

[data-testid="store-product-title"] {
    margin-bottom: 15px !important;
    color: var(--brand-text) !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
}

[data-testid="store-product-price"] {
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--white), #FFF8EC);
    box-shadow: var(--shadow-sm);
}

[data-testid="store-product-price"] p {
    color: var(--brand-primary) !important;
    font-size: 27px !important;
    font-weight: 900 !important;
}

/* =========================================================
   16 — PRODUCT IMAGE SLIDER
   ========================================================= */

.details-slider {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl) !important;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.details-slider .swiper-slide {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.details-slider .swiper-slide img {
    width: 100% !important;
    min-height: 520px;
    object-fit: contain;
    padding: 20px;
    background: linear-gradient(145deg, #FFFBF3, #FFF5E2);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.details-slider .swiper-slide:hover img {
    transform: scale(1.025);
}

.details-slider .btn--wishlist {
    position: absolute !important;
    top: 18px;
    right: 18px;
    z-index: 20;
}

.details-slider .btn--wishlist .s-button-element {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--brand-primary) !important;
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   17 — PRODUCT FORM
   ========================================================= */

.product-form {
    margin-top: 18px;
}

.product-form > section {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--shadow-sm);
}

.product-form section:first-of-type {
    border-radius: 18px 18px 0 0 !important;
}

.sticky-product-bar {
    border-radius: 0 0 18px 18px !important;
}

.product-form .form-label {
    color: var(--brand-text) !important;
    font-weight: 800 !important;
}

/* =========================================================
   18 — QUANTITY SELECTOR
   ========================================================= */

.s-quantity-input-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--brand-bg);
}

.s-quantity-input-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--brand-primary);
    transition: background 0.2s ease, transform 0.2s ease;
}

.s-quantity-input-button:hover {
    background: var(--brand-cream);
}

.s-quantity-input-button:active {
    transform: scale(0.92);
}

.s-quantity-input-input {
    width: 50px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--brand-text) !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* =========================================================
   19 — MAIN PRODUCT ADD TO CART (Single Page)
   ========================================================= */

[data-testid="store-product-add-to-cart"] .s-button-element {
    min-height: 56px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 52%, var(--brand-gold) 100%) !important;
    color: var(--white) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 23px rgba(155, 100, 35, 0.24);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

[data-testid="store-product-add-to-cart"] .s-button-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(155, 100, 35, 0.30);
}

[data-testid="store-product-add-to-cart"] .s-button-element:active {
    transform: scale(0.97);
}

[data-testid="store-product-add-to-cart"] .s-button-element .s-button-text,
[data-testid="store-product-add-to-cart"] .s-button-element .s-button-text span,
[data-testid="store-product-add-to-cart"] .s-button-element i,
[data-testid="store-product-add-to-cart"] .s-button-element svg {
    color: var(--white) !important;
    fill: currentColor !important;
}

/* =========================================================
   20 — QUICK BUY / اشتر الآن
   ========================================================= */

.s-add-product-button-mini-checkout {
    display: block !important;
    width: 100% !important;
    margin-top: 11px !important;
}

.s-add-product-button-mini-checkout .s-add-product-button-mini-checkout-content {
    position: relative !important;
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--brand-gold) !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #FFF9EF, #FFF0D5) !important;
    color: var(--brand-primary-dark) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-shadow: none !important;
    transition: all var(--transition);
}

.s-add-product-button-mini-checkout-content > span {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-gold)) !important;
    color: var(--white) !important;
}

.s-add-product-button-mini-checkout-content > span svg {
    width: 20px !important;
    height: 20px !important;
    fill: var(--white) !important;
}

.s-add-product-button-mini-checkout-content:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-soft)) !important;
    border-color: var(--brand-primary) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(155, 100, 35, 0.20);
}

.s-add-product-button-mini-checkout-content:hover > span {
    background: rgba(255, 255, 255, 0.16) !important;
}

.s-add-product-button-mini-checkout-content:active {
    transform: scale(0.97);
}

/* =========================================================
   21 — RELATED PRODUCTS
   ========================================================= */

salla-products-slider {
    display: block;
}

.s-products-slider-wrapper .s-slider-block__title h2 {
    color: var(--brand-text) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.s-products-slider-wrapper .s-product-card-vertical {
    border: 1px solid var(--border) !important;
}

/* =========================================================
   22 — REVIEWS
   ========================================================= */

.s-comments-product {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   23 — FOOTER
   ========================================================= */

.store-footer {
    margin-top: 35px;
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary) 55%, var(--brand-primary-soft)) !important;
    color: var(--white) !important;
}

.store-footer__inner {
    background: transparent !important;
}

.store-footer h3 {
    color: var(--white) !important;
    font-weight: 900 !important;
}

.store-footer p,
.store-footer span,
.store-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.store-footer a:hover {
    color: var(--brand-gold-light) !important;
}

.store-footer .s-social-list {
    display: flex !important;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.store-footer .s-social-list a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.store-footer .s-social-list a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.store-footer .s-contacts-item {
    padding: 7px 0;
    transition: transform 0.25s ease;
}

.store-footer .s-contacts-icon {
    color: var(--brand-gold-light) !important;
}

.store-footer .s-contacts-item:hover {
    transform: translateX(-3px);
}

.s-payments-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 7px;
}

.s-payments-list-item img {
    border-radius: 7px;
    background: var(--white);
    transition: transform 0.2s ease;
}

.s-payments-list-item:hover img {
    transform: translateY(-2px);
}

/* =========================================================
   24 — SECONDARY BUTTON
   ========================================================= */

.s-button--secondary {
    background: var(--brand-cream) !important;
    color: var(--brand-primary) !important;
    border: 1px solid var(--brand-gold) !important;
    text-shadow: none !important;
}

.s-button--secondary span,
.s-button--secondary i,
.s-button--secondary svg {
    color: var(--brand-primary) !important;
    fill: currentColor !important;
}

.s-button--secondary:hover {
    background: #FFE8BE !important;
    color: var(--brand-primary-dark) !important;
}

/* =========================================================
   25 — SLIDERS
   ========================================================= */

.swiper-wrapper {
    padding-bottom: 20px;
}

@media (min-width: 1024px) {
    salla-slider.photos-slider .swiper-slide {
        margin-right: 1rem;
        margin-left: 1rem;
        width: 100% !important;
    }
}

/* =========================================================
   26 — ACCESSIBILITY & FOCUS
   ========================================================= */

.main-nav-container a:focus-visible,
.main-nav-container button:focus-visible,
#mobile-menu a:focus-visible,
#mobile-menu button:focus-visible,
.s-button-element:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(231, 165, 42, 0.30) !important;
    outline-offset: 2px;
}

/* =========================================================
   27 — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   28 — MOBILE RESPONSIVE (1023px)
   ========================================================= */

@media (max-width: 1023px) {
    /* Footer Mobile */
    .store-footer__inner,
    .store-footer__inner > .container {
        text-align: center !important;
    }

    .store-footer h3 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 13px !important;
    }

    .store-footer p {
        max-width: 650px;
        margin-right: auto !important;
        margin-left: auto !important;
        text-align: center !important;
    }

    .store-footer .s-social-list,
    .store-footer .s-payments-list {
        justify-content: center !important;
    }

    .store-footer .s-contacts {
        width: 100% !important;
        text-align: center !important;
    }

    .store-footer .s-contacts-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .store-footer .s-contacts-item,
    .store-footer .s-menu-footer-list,
    .store-footer .s-menu-footer-list a,
    .store-footer .s-payments-list-wrap {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Mobile Side Menu */
    .mm-ocd {
        z-index: 99999 !important;
        direction: rtl !important;
    }

    .mm-ocd__content {
        width: min(88vw, 390px) !important;
        background: var(--brand-cream-2) !important;
        box-shadow: -16px 0 40px rgba(58, 40, 23, 0.16) !important;
    }

    .mm-ocd__backdrop {
        background: rgba(36, 25, 16, 0.48) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }

    #mobile-menu.mobile-menu {
        position: relative !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        direction: rtl !important;
        background: linear-gradient(180deg, var(--brand-bg) 0%, var(--brand-cream-2) 100%) !important;
        color: var(--brand-text) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #mobile-menu ul.main-menu {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 62px 12px 24px !important;
        list-style: none !important;
        box-sizing: border-box !important;
        background: transparent !important;
        direction: rtl !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        transform: none !important;
    }

    #mobile-menu ul.main-menu > li[data-menu-item] {
        display: none !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden::before,
    #mobile-menu ul.main-menu > li.lg\:hidden::after,
    #mobile-menu ul.main-menu > li.lg\:hidden > a::before {
        display: none !important;
        content: none !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 100% !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 17px !important;
        box-sizing: border-box !important;
        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        background: var(--white) !important;
        color: var(--brand-text) !important;
        -webkit-text-fill-color: var(--brand-text) !important;
        font-family: inherit !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;
        text-align: right !important;
        text-decoration: none !important;
        white-space: normal !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        transform: translateZ(0) !important;
        box-shadow: 0 3px 10px rgba(58, 40, 23, 0.045) !important;
        transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a > span {
        position: static !important;
        display: block !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: var(--brand-text) !important;
        -webkit-text-fill-color: var(--brand-text) !important;
        background: transparent !important;
        font-family: inherit !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.6 !important;
        text-align: right !important;
        white-space: normal !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-indent: 0 !important;
        text-shadow: none !important;
        transform: none !important;
        clip: auto !important;
        clip-path: none !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a > span,
    #mobile-menu ul.main-menu > li.lg\:hidden > a > span * {
        color: var(--brand-text) !important;
        -webkit-text-fill-color: var(--brand-text) !important;
    }

    .mm-ocd .main-menu li span {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
        text-indent: 0 !important;
    }

    .mm-ocd .main-menu li,
    .mm-ocd .main-menu li a,
    .mm-ocd .main-menu li span {
        visibility: visible !important;
    }

    .mm-ocd .main-menu > li {
        margin-bottom: 7px !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a:hover,
    #mobile-menu ul.main-menu > li.lg\:hidden > a:focus,
    #mobile-menu ul.main-menu > li.lg\:hidden > a:active {
        background: var(--brand-cream) !important;
        border-color: var(--brand-gold-dark) !important;
        color: var(--brand-primary-dark) !important;
        -webkit-text-fill-color: var(--brand-primary-dark) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 15px rgba(155, 100, 35, 0.08) !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a:hover > span,
    #mobile-menu ul.main-menu > li.lg\:hidden > a:focus > span,
    #mobile-menu ul.main-menu > li.lg\:hidden > a:active > span {
        color: var(--brand-primary-dark) !important;
        -webkit-text-fill-color: var(--brand-primary-dark) !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a:focus {
        outline: none !important;
    }

    /* Offers Button */
    #mobile-menu ul.main-menu > li#offers.lg\:hidden > a {
        background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 55%, var(--brand-primary-soft) 100%) !important;
        border: 1px solid transparent !important;
        color: var(--white) !important;
        -webkit-text-fill-color: var(--white) !important;
        box-shadow: 0 8px 18px rgba(155, 100, 35, 0.20) !important;
    }

    #mobile-menu ul.main-menu > li#offers.lg\:hidden > a > span {
        color: var(--white) !important;
        -webkit-text-fill-color: var(--white) !important;
        font-weight: 800 !important;
    }

    #mobile-menu ul.main-menu > li#offers.lg\:hidden > a:hover {
        background: linear-gradient(135deg, #633D15 0%, #8E581D 55%, #D49322 100%) !important;
        color: var(--white) !important;
        -webkit-text-fill-color: var(--white) !important;
    }

    #mobile-menu ul.main-menu > li#offers.lg\:hidden > a:hover > span {
        color: var(--white) !important;
        -webkit-text-fill-color: var(--white) !important;
    }

    /* Close Button */
    #mobile-menu .close-mobile-menu {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 999 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 1px solid var(--border) !important;
        border-radius: 50% !important;
        background: var(--brand-cream) !important;
        color: var(--brand-primary-dark) !important;
        font-size: 20px !important;
        box-shadow: 0 4px 12px rgba(58, 40, 23, 0.06) !important;
        transition: all 0.22s ease !important;
    }

    #mobile-menu .close-mobile-menu:hover {
        background: var(--brand-primary) !important;
        color: var(--white) !important;
        transform: rotate(4deg) scale(1.04) !important;
    }

    /* Menu Title */
    #mobile-menu::before {
        content: "القائمة الرئيسية" !important;
        position: absolute !important;
        top: 18px !important;
        right: 18px !important;
        z-index: 998 !important;
        display: block !important;
        color: var(--brand-primary-dark) !important;
        font-family: inherit !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        line-height: 1.5 !important;
        pointer-events: none !important;
    }

    #mobile-menu::after {
        content: "" !important;
        position: absolute !important;
        top: 52px !important;
        right: 18px !important;
        left: 18px !important;
        height: 1px !important;
        background: var(--border) !important;
        pointer-events: none !important;
    }

    /* Press Feedback */
    #mobile-menu ul.main-menu > li.lg\:hidden > a.baharat-menu-clicked {
        transform: scale(0.985) !important;
        background: #FFE9C5 !important;
        border-color: var(--brand-gold-dark) !important;
        color: var(--brand-primary-dark) !important;
        -webkit-text-fill-color: var(--brand-primary-dark) !important;
    }

    /* Scrollbar */
    #mobile-menu {
        scrollbar-width: thin;
        scrollbar-color: var(--brand-gold-dark) var(--brand-cream);
    }

    #mobile-menu::-webkit-scrollbar {
        width: 5px;
    }

    #mobile-menu::-webkit-scrollbar-track {
        background: var(--brand-cream);
    }

    #mobile-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--brand-primary), var(--brand-gold));
        border-radius: 999px;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a:focus-visible {
        outline: 3px solid rgba(231, 165, 42, 0.35) !important;
        outline-offset: 2px !important;
    }
}

/* =========================================================
   29 — MOBILE RESPONSIVE (767px)
   ========================================================= */

@media (max-width: 767px) {
    .main-nav-container {
        min-height: 64px !important;
    }

    .main-nav-container > .inner > .container > .flex.items-stretch.justify-between {
        min-height: 62px;
    }

    .navbar-brand img {
        width: 52px !important;
        height: 52px !important;
    }

    .s-user-menu-login-btn {
        width: 41px !important;
        height: 41px !important;
    }

    #s-cart-icon {
        width: 41px;
        height: 41px;
    }

    .header-btn__icon.sicon-shopping-bag {
        font-size: 21px !important;
    }

    .s-cart-summary-wrapper {
        min-width: 43px;
    }

    .s-product-card-content {
        padding: 13px !important;
    }

    .s-product-card-content-title,
    .s-product-card-content-title a {
        font-size: 14px !important;
    }

    .s-product-card-price {
        font-size: 18px !important;
    }

    .s-product-card-vertical .s-button-element.s-button-outline.s-button-primary-outline {
        min-height: 44px !important;
        font-size: 13px !important;
        border-radius: 11px !important;
    }

    .slide--cat-entry {
        min-height: 115px;
        padding: 15px 10px !important;
    }

    .slide--cat-entry i {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .slide--cat-entry h2 {
        font-size: 14px !important;
    }

    .details-slider .swiper-slide img {
        min-height: 300px;
        padding: 12px;
    }

    [data-testid="store-product-title"] {
        margin-top: 10px !important;
        font-size: 22px !important;
        line-height: 1.55 !important;
    }

    [data-testid="store-product-price"] {
        padding: 12px 14px;
    }

    [data-testid="store-product-price"] p {
        font-size: 23px !important;
    }

    .product-form > section {
        padding: 14px !important;
    }

    [data-testid="store-product-add-to-cart"] .s-button-element {
        min-height: 53px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    .s-add-product-button-mini-checkout .s-add-product-button-mini-checkout-content {
        min-height: 49px !important;
        padding: 0 14px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
        background: var(--brand-cream) !important;
        color: var(--brand-primary-dark) !important;
    }

    .s-add-product-button-mini-checkout-content span:not(:has(svg)) {
        color: var(--brand-primary-dark) !important;
    }

    .s-add-product-button-mini-checkout-content > span {
        width: 31px !important;
        height: 31px !important;
        flex-basis: 31px !important;
        border-radius: 9px !important;
        background: var(--brand-primary) !important;
        color: var(--white) !important;
    }

    .s-add-product-button-mini-checkout-content > span svg {
        width: 18px !important;
        height: 18px !important;
    }

    .mm-ocd__content {
        width: 88vw !important;
        max-width: 360px !important;
    }

    #mobile-menu ul.main-menu {
        padding: 60px 10px 20px !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a {
        min-height: 50px !important;
        padding: 0 14px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    #mobile-menu ul.main-menu > li.lg\:hidden > a > span {
        font-size: 14px !important;
    }
}

/* =========================================================
   30 — SMALL PHONES (380px)
   ========================================================= */

@media (max-width: 380px) {
    .main-nav-container .container {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .navbar-brand img {
        width: 47px !important;
        height: 47px !important;
    }

    [data-testid="store-header-mobile-toggle"] {
        width: 38px;
        height: 38px;
    }

    .s-user-menu-login-btn {
        width: 37px !important;
        height: 37px !important;
    }

    #s-cart-icon {
        width: 37px;
        height: 37px;
    }

    .details-slider .swiper-slide img {
        min-height: 250px;
    }

    [data-testid="store-product-title"] {
        font-size: 20px !important;
    }

    [data-testid="store-product-price"] p {
        font-size: 21px !important;
    }

    .s-quantity-input-button {
        width: 40px;
        height: 40px;
    }

    .s-quantity-input-input {
        width: 42px !important;
    }
}