/* ==========================================================
   Armdental — New Sidebar + Topbar Layout
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

/* ==========================================================
   DESIGN TOKENS — edit here to update the whole theme
   ========================================================== */
:root {
    /* --- Brand / Accent colors --- */
    --clr-green:            #46C89B;   /* primary CTA, add-to-cart button */
    --clr-green-hover:      #38b589;   /* hover state for green elements */
    --clr-green-bg:         rgba(70, 200, 155, 0.2); /* add-to-cart button bg */
    --clr-green-section:    #EBF5E8;   /* On Sale section background */
    --clr-blue-light:       #8DCDEA;   /* feature block icons, sidebar accent */
    --clr-blue-feature:     #8DCDEA29; /* feature block card background */
    --clr-blue-link:        #1D86DD;   /* "New!" badge, links */
    --clr-red:              #FF094F;   /* Sale % badge */
    --clr-yellow:           #F59E0B;   /* wishlist active star */

    /* --- Sidebar --- */
    --clr-sidebar:          #1b2a4a;
    --clr-sidebar-footer:   #282C53;
    --clr-sidebar-hover:    rgba(255, 255, 255, 0.08);
    --clr-sidebar-active:   rgba(255, 255, 255, 0.10);
    --clr-sidebar-submenu:  #8DCDEA;

    /* --- Text --- */
    --clr-text-dark:        #0D0C22;   /* headings, card names */
    --clr-text-heading:     #1D1B42;   /* hero title, price current */
    --clr-text-muted:       #6E6D7A;   /* category label, descriptions */
    --clr-text-placeholder: #9aa0ad;   /* input placeholder */
    --clr-text-light:       #9CA3AF;   /* old/crossed-out price, inactive icons */
    --clr-text-white:       #ffffff;

    /* --- Backgrounds --- */
    --clr-bg-body:          #f4f6f9;   /* page body */
    --clr-bg-white:         #ffffff;
    --clr-bg-input:         #F3F3F6;   /* search bar, dropdown buttons */
    --clr-bg-product-img:   #f9f9f9;   /* card image area */

    /* --- Borders --- */
    --clr-border-na:        #E5E7EB;   /* New Arrivals card border */
    --clr-border-os:        #F3F3F6;   /* On Sale card border */

    /* --- Layout structure ---
     * Sidebar scales: 320px (1920) → 300px (1440) → 260px (1280) → 0 (≤991px)
     * main-wrapper margin-left and topbar left MUST always equal sidebar width.
     * Update all three together in each breakpoint.
     */
    --sidebar-width:        320px;
    --topbar-height:        96px;     /* 1920px: padding 30+18 + content ~48px */

    /* --- Font size scale (max = exact Figma px at 1920px) ---
     * Formula: clamp(min, figma_px / 1920 * 100 vw, figma_px)
     * Change any value here → updates every element using that token.
     */
    --fs-60:    clamp(26px, 3.125vw, 60px);
    --fs-48:    clamp(24px, 2.5vw, 48px);
    --fs-44:    clamp(24px, 2.29vw, 44px);
    --fs-40:    clamp(20px, 2.08vw, 40px);
    --fs-32:    clamp(18px, 1.67vw, 32px);
    --fs-28:    clamp(16px, 1.46vw, 28px);
    --fs-26:    clamp(14px, 1.35vw, 26px);
    --fs-24:    clamp(16px, 1.25vw, 24px);
    --fs-22:    clamp(16px, 1.15vw, 22px);
    --fs-20:    clamp(15px, 1.04vw, 20px);
    --fs-18:    clamp(14px, 0.94vw, 18px);
    --fs-17:    clamp(13px, 0.89vw, 17px);
    --fs-16:    clamp(13px, 0.83vw, 16px);
    --fs-14:    clamp(12px, 0.73vw, 14px);
    --fs-13:    clamp(11px, 0.68vw, 13px);
    --fs-12:    clamp(10px, 0.625vw, 12px);

    /* --- Spacing scale (max = exact Figma px at 1920px) ---
     * For gaps, padding, margins. Same formula.
     */
    --sp-4:     clamp(2px, 0.21vw, 4px);
    --sp-6:     clamp(3px, 0.31vw, 6px);
    --sp-8:     clamp(4px, 0.42vw, 8px);
    --sp-10:    clamp(6px, 0.52vw, 10px);
    --sp-12:    clamp(6px, 0.625vw, 12px);
    --sp-16:    clamp(8px, 0.83vw, 16px);
    --sp-20:    clamp(10px, 1.04vw, 20px);
    --sp-24:    clamp(12px, 1.25vw, 24px);
    --sp-30:    clamp(16px, 1.56vw, 30px);
    --sp-32:    clamp(16px, 1.67vw, 32px);
    --sp-40:    clamp(20px, 2.08vw, 40px);
    --sp-48:    clamp(24px, 2.5vw, 48px);
    --sp-50:    clamp(26px, 2.6vw, 50px);
    --sp-60:    clamp(30px, 3.125vw, 60px);
    --sp-70:    clamp(36px, 3.65vw, 70px);
    --sp-80:    clamp(40px, 4.17vw, 80px);
    --sp-100:   clamp(50px, 5.21vw, 100px);

    /* --- Border radius scale (max = exact Figma px at 1920px) --- */
    --r-4:      clamp(2px, 0.21vw, 4px);
    --r-6:      clamp(3px, 0.31vw, 6px);
    --r-10:     clamp(5px, 0.52vw, 10px);
    --r-12:     clamp(6px, 0.625vw, 12px);
    --r-16:     clamp(8px, 0.83vw, 16px);
    --r-17:     clamp(9px, 0.89vw, 17px);
    --r-20:     clamp(10px, 1.04vw, 20px);
    --r-24:     clamp(12px, 1.25vw, 24px);
    --r-48:     clamp(24px, 2.5vw, 48px);
    --r-pill:   100px;

    /* --- Section spacing --- */
    --section-px:   40px;
    --section-py:   var(--sp-40);
    --card-gap:     8px;
    --card-padding: var(--sp-20);

    /* --- Typography --- */
    --font-main:    "Montserrat", sans-serif;
}

/* ---- Global font override ---- */
*, *::before, *::after {
    font-family: "Montserrat", sans-serif !important;
}

/* ---- Reset body padding from old header ---- */
body.has-sidebar {
    padding: 0;
    margin: 0;
    background: #ffffff;
    background: #f4f6f9;
}

/* Remove old header/sticky-header styles from affecting layout */
body.has-sidebar .header_sticky,
body.has-sidebar .main_header,
body.has-sidebar .off_canvars_overlay,
body.has-sidebar .Offcanvas_menu {
    display: none !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #1D1B42;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 1100;
    overflow: hidden;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

/* Logo */
.sidebar-logo {
    flex-shrink: 0;
    margin-bottom: 20px;
    padding: 0 12px;
}
.sidebar-logo a {
    font-family: 'Rubik', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 44px;
    color: #ffffff;
    text-decoration: none;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
}

.sidebar-nav > ul,
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav > ul > li {
    margin-bottom: 4px;
}

/* Nav links */
.sidebar-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    height: 44px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.0004em;
    border-radius: 10px;
    transition: background 0.18s, color 0.18s;
    box-sizing: border-box;
}

.sidebar-nav > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-nav > ul > li > a.active {
    background: #282C53;
    color: #ffffff;
}

/* PNG icons — default white on dark sidebar */
.sidebar-nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Active & hover: icon turns #46C89B */
.sidebar-nav > ul > li > a.active .sidebar-nav-icon,
.sidebar-nav > ul > li > a:hover .sidebar-nav-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(30%) saturate(600%) hue-rotate(118deg) brightness(100%);
    opacity: 1;
}

/* Categories chevron */
.sidebar-chevron {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-left: auto;
    flex-shrink: 0;
    /* #8DCDEA */
    filter: brightness(0) saturate(100%) invert(80%) sepia(30%) saturate(400%) hue-rotate(170deg) brightness(105%);
    transition: transform 0.22s;
}
.sidebar-has-children.open > a .sidebar-chevron {
    transform: rotate(180deg);
}
.sidebar-has-children > a.active .sidebar-chevron,
.sidebar-has-children > a:hover .sidebar-chevron {
    opacity: 1;
}

/* Submenu — only parent categories */
.sidebar-submenu {
    display: none;
    padding: 0 12px 0 20px;
    list-style: none;
    margin: 16px 0 0 0;
    max-height: calc(100vh - 480px);
    overflow-y: auto;
    overflow-x: hidden;
}
/* Thin scrollbar for categories */
.sidebar-submenu::-webkit-scrollbar { width: 3px; }
.sidebar-submenu::-webkit-scrollbar-track { background: transparent; }
.sidebar-submenu::-webkit-scrollbar-thumb { background: rgba(141,205,234,0.3); border-radius: 4px; }
.sidebar-has-children.open .sidebar-submenu {
    display: block;
}
.sidebar-submenu li {
    margin-bottom: 8px;
}
.sidebar-submenu li a {
    display: block;
    padding: 2px 8px;
    color: #8DCDEA;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.0004em;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s;
}
.sidebar-submenu li a:hover {
    color: #ffffff;
}
.sidebar-submenu .sidebar-other-link {
    color: #FF094F;
}
.sidebar-submenu .sidebar-other-link:hover {
    color: #ff4d7a;
}

/* Footer / phone */
.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 16px;
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    background: #282C53;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.15s;
    box-sizing: border-box;
}
.sidebar-footer a:hover {
    background: #32366a;
}
.sidebar-footer .sidebar-nav-icon {
    opacity: 1;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 320px;
    right: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 30px 40px 18px;
    gap: 20px;
    z-index: 1050;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* Search */
.topbar-search {
    flex-shrink: 0;
}
.topbar-search form {
    margin: 0;
}
.topbar-search-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F3F3F6;
    border-radius: var(--r-12);
    padding: 14px 24px;
    width: clamp(200px, 33vw, 482px);
    height: 52px;
}
.topbar-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--fs-16);
    color: #1D1B42;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
}
.topbar-search-inner input::placeholder {
    color: #6E6D7A;
    font-size: var(--fs-16);
}
.topbar-search-inner button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #7a8394;
    font-size: var(--fs-17);
    line-height: 1;
    display: flex;
    align-items: center;
}
.topbar-search-inner button:hover {
    color: #3b82c4;
}

/* Right actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

/* Icons sub-group: cart + wishlist */
.topbar-icons-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Buttons sub-group: account + currency + language */
.topbar-btns-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon buttons */
.topbar-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #363f4d;
    font-size: var(--fs-20);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.topbar-icon-btn:hover {
    background: #F3F3F6;
    color: #3b82c4;
}
/* Account icon — fixed 40x40, radius 8px, padding 8 6 8 6, gap 6 */
.topbar-icon-btn--bg {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 8px 6px;
    gap: 6px;
    background: #F3F3F6;
    flex-shrink: 0;
}
.topbar-icon-btn--bg:hover {
    background: #e6e6ec;
}
/* Image icons */
.topbar-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Badge */
.topbar-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #46C89B;
    color: #fff;
    font-size: var(--fs-12);
    font-weight: 500;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Cart wrap & mini cart dropdown */
.topbar-cart-wrap {
    position: relative;
}
/* --- Mini cart dropdown --- */
.topbar-mini-cart {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: clamp(280px, 18.75vw, 360px);
    background: #fff;
    border-radius: clamp(10px, 0.73vw, 14px);
    box-shadow: 0 8px 40px rgba(29, 27, 66, 0.12);
    z-index: 200;
    overflow: hidden;
}
.topbar-cart-wrap:hover .topbar-mini-cart {
    display: block;
}
.topbar-mini-cart .mini_cart_inner {
    max-height: 300px;
    overflow-y: auto;
    padding: clamp(12px, 0.83vw, 16px);
}
.topbar-mini-cart .cart_item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.63vw, 12px);
    padding: clamp(10px, 0.63vw, 12px) 0;
    border-bottom: 1px solid #F3F3F6;
}
.topbar-mini-cart .cart_item:last-of-type {
    border-bottom: none;
}
.topbar-mini-cart .cart_img {
    width: clamp(56px, 3.65vw, 70px);
    height: clamp(56px, 3.65vw, 70px);
    flex-shrink: 0;
    background: #F3F3F6;
    border-radius: clamp(6px, 0.42vw, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.topbar-mini-cart .cart_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.topbar-mini-cart .cart_info {
    flex: 1;
    min-width: 0;
}
.topbar-mini-cart .cart_info a {
    font-size: var(--fs-14);
    font-weight: 500;
    color: #1D1B42;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-mini-cart .cart_info a:hover {
    color: var(--clr-blue-link);
}
.topbar-mini-cart .cart_info p {
    font-size: var(--fs-13);
    color: #6E6D7A;
    margin: 0;
}
.topbar-mini-cart .cart_info p span {
    font-weight: 700;
    color: #1D1B42;
}
.topbar-mini-cart .cart_remove {
    margin-left: auto;
    flex-shrink: 0;
}
.topbar-mini-cart .cart_remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #B2B1C2;
    font-size: var(--fs-16);
    text-decoration: none;
    transition: all 0.15s;
}
.topbar-mini-cart .cart_remove a:hover {
    background: #FFD7E3;
    color: #FF094F;
}
.topbar-mini-cart .mini_cart_table {
    padding: clamp(10px, 0.63vw, 12px) clamp(12px, 0.83vw, 16px) 0;
    border-top: 2px solid #F3F3F6;
}
.topbar-mini-cart .cart_total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-16);
    font-weight: 700;
    color: #1D1B42;
}
.topbar-mini-cart .cart_total span:first-child {
    font-weight: 500;
    color: #6E6D7A;
}
.topbar-mini-cart .mini_cart_footer {
    display: flex;
    gap: clamp(6px, 0.42vw, 8px);
    padding: clamp(10px, 0.63vw, 12px) clamp(12px, 0.83vw, 16px) clamp(12px, 0.83vw, 16px);
    background: #173D69;
    border-radius: 0 0 clamp(10px, 0.73vw, 14px) clamp(10px, 0.73vw, 14px);
}
.mini-cart-btn {
    flex: 1;
    text-align: center;
    padding: clamp(8px, 0.52vw, 10px) clamp(12px, 0.83vw, 16px);
    border-radius: var(--r-pill);
    font-size: var(--fs-14);
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transition: all 0.15s;
}
.mini-cart-btn:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}
.mini-cart-btn--primary {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #173D69;
    font-weight: 600;
}
.mini-cart-btn--primary:hover {
    background: #F3F3F6;
    border-color: #F3F3F6;
    color: #173D69;
}

/* Account wrap */
.topbar-account-wrap {
    position: relative;
}

/* Dropdowns (currency / language) */
.topbar-dropdown {
    position: relative;
}
/* Selectboxes base */
.topbar-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #F3F3F6;
    border: none;
    border-radius: 8px;
    padding: 8px 6px 8px 12px;
    height: 40px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    color: #1D1B42;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.topbar-chevron {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.topbar-dropdown.open .topbar-chevron {
    transform: rotate(180deg);
}
.topbar-dropdown-btn:hover,
.topbar-dropdown.open .topbar-dropdown-btn {
    background: #e6e6ec;
}

/* Currency — 88px */
.topbar-dropdown--currency .topbar-dropdown-btn {
    width: 88px;
}

/* Language — 72px */
.topbar-dropdown--language .topbar-dropdown-btn {
    width: 72px;
}
.topbar-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 80px;
    z-index: 300;
}
.topbar-dropdown.open .topbar-dropdown-menu {
    display: block;
}
.topbar-dropdown-menu li a {
    display: block;
    padding: 7px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: #1D1B42;
    text-decoration: none;
    transition: background 0.12s;
}
.topbar-dropdown-menu li a:hover {
    background: #f2f4f7;
    color: #3b82c4;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    margin-left: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.page-content {
    padding-top: 100px;
    flex: 1;
    background: #ffffff;
    min-height: calc(100vh + 100px);
}

/* ============================================================
   FOOTER inside main wrapper
   ============================================================ */
.main-wrapper .footer_widgets {
    margin-top: auto;
}

/* ============================================================
   RESPONSIVE — 1440px standard laptop
   Sidebar 300px → content = 1140px
   ============================================================ */
@media (max-width: 1440px) {
    /* Sidebar: 300px */
    .sidebar {
        width: 300px;
        padding: 24px 16px;
    }

    .sidebar-logo {
        margin-bottom: 16px;
    }
    .sidebar-logo a {
        font-size: 1.875rem;
        line-height: 38px;
    }

    .sidebar-nav > ul > li > a {
        font-size: 1rem;
        padding: 9px 12px;
        height: 40px;
        gap: 10px;
    }
    .sidebar-nav > ul > li {
        margin-bottom: 2px;
    }

    .sidebar-nav-icon {
        width: 22px;
        height: 22px;
    }
    .sidebar-chevron {
        width: 20px;
        height: 20px;
    }
    .sidebar-submenu {
        margin-top: 12px;
    }
    .sidebar-submenu li {
        margin-bottom: 6px;
    }

    .sidebar-footer a {
        font-size: 0.938rem;
        height: 40px;
        padding: 10px 12px;
        border-radius: 11px;
    }

    /* Topbar: follows sidebar */
    .topbar {
        left: 300px;
        padding: 22px 32px 14px;
        gap: 16px;
    }

    .topbar-search-inner {
        width: clamp(180px, calc((100vw - 300px) * 0.30), 440px);
        height: 48px;
    }

    .topbar-actions { gap: 20px; }
    .topbar-icons-group { gap: 24px; }
    .topbar-btns-group { gap: 8px; }
    .topbar-icon-img { width: 22px; height: 22px; }

    /* Main wrapper */
    .main-wrapper {
        margin-left: 300px;
    }

    .page-content {
        padding-top: 88px;
        min-height: calc(100vh + 100px);
    }
}

/* ============================================================
   RESPONSIVE — 1280px MacBook 13" (priority)
   Sidebar 260px → content = 1020px
   ============================================================ */
@media (max-width: 1280px) {
    /* Sidebar: 260px */
    .sidebar {
        width: 260px;
        padding: 16px 10px;
    }

    .sidebar-logo {
        margin-bottom: 12px;
        padding: 0 10px;
    }
    .sidebar-logo a {
        font-size: 1.375rem;
        line-height: 32px;
    }

    .sidebar-nav > ul > li {
        margin-bottom: 1px;
    }
    .sidebar-nav > ul > li > a {
        font-size: 0.8125rem;
        padding: 6px 10px;
        height: 34px;
        gap: 8px;
        border-radius: 8px;
    }

    .sidebar-nav-icon {
        width: 18px;
        height: 18px;
    }
    .sidebar-chevron {
        width: 18px;
        height: 18px;
    }

    .sidebar-submenu {
        margin-top: 8px;
        padding: 0 8px 0 16px;
    }
    .sidebar-submenu li {
        margin-bottom: 4px;
    }
    .sidebar-submenu li a {
        font-size: 0.75rem;
        line-height: 18px;
        padding: 1px 6px;
    }

    .sidebar-footer {
        padding-top: 10px;
    }
    .sidebar-footer a {
        font-size: 0.75rem;
        height: 36px;
        padding: 8px 10px;
        border-radius: 10px;
        gap: 8px;
    }
    .sidebar-footer .sidebar-nav-icon {
        width: 18px;
        height: 18px;
    }

    /* Topbar: follows sidebar */
    .topbar {
        left: 260px;
        padding: 14px 24px 10px;
        gap: 10px;
    }

    .topbar-search-inner {
        width: clamp(160px, calc((100vw - 260px) * 0.28), 360px);
        height: 44px;
    }

    .topbar-search-inner input,
    .topbar-search-inner input::placeholder {
        font-size: 0.875rem;
    }

    /* Shrink topbar action groups */
    .topbar-actions { gap: 16px; }
    .topbar-icons-group { gap: 20px; }
    .topbar-btns-group { gap: 6px; }
    .topbar-icon-img { width: 20px; height: 20px; }
    .topbar-dropdown--currency .topbar-dropdown-btn { width: 72px; font-size: 0.875rem; }
    .topbar-dropdown--language .topbar-dropdown-btn { width: 60px; font-size: 0.875rem; }
    .topbar-icon-btn--bg { width: 36px; height: 36px; }

    /* Main wrapper */
    .main-wrapper {
        margin-left: 260px;
    }

    .page-content {
        padding-top: 74px;
        min-height: calc(100vh + 100px);
    }

    /* Hero: reduce left text margin on small viewports */
    .hero-text { margin-top: 40px; }

    /* Feature blocks: allow wrapping on very tight widths */
    .feature-blocks { padding: 16px 20px 0; }
    .hero-section { padding: 40px 20px 0; }
}

/* ============================================================
   MOBILE ACCOUNT PANEL
   Figma: 358×324 (guest) / 358×468 (logged in)
   bg: #173D69, border-radius: 20px, padding: 24px 16px 16px
   ============================================================ */
.mobile-account-panel {
    display: none;
    position: fixed;
    top: 60px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: 358px;
    margin: 0 auto;
    background: #173D69;
    border-radius: 20px;
    flex-direction: column;
    padding: 24px 16px 16px;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.mobile-account-panel.active {
    display: flex;
}
.mob-acc__close {
    display: none;
}

/* Hide mobile toggle button on desktop, show desktop link */
#mobileAccountToggle { display: none; }
.topbar-account-desktop { display: flex; }
#mobileAccountToggle {
    border: none;
    outline: none;
    cursor: pointer;
}

/* Auth buttons (guest) */
.mob-acc__auth-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mob-acc__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    height: 50px;
    border-radius: 10px;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.mob-acc__btn:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}
.mob-acc__btn--green {
    background: #46C89B;
}
.mob-acc__btn--outline {
    background: transparent;
    border: 2px solid #2B598A;
}

/* User info (logged in) */
.mob-acc__user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mob-acc__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mob-acc__avatar-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.mob-acc__user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mob-acc__name {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.0004em;
    color: #ffffff;
}
.mob-acc__email {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.0004em;
    color: #8DCDEA;
}

/* Quick links (logged in) */
.mob-acc__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mob-acc__link {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    transition: color 0.15s;
}
.mob-acc__link:hover {
    color: #8DCDEA;
    text-decoration: none;
}
.mob-acc__link svg {
    flex-shrink: 0;
}

/* Currency/Language settings */
.mob-acc__settings {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mob-acc__setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 16px;
    height: 54px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.mob-acc__setting-row:hover {
    background: rgba(255, 255, 255, 0.05);
}
.mob-acc__setting-row svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.mob-acc__setting-row.open svg {
    transform: rotate(180deg);
}
.mob-acc__setting-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.mob-acc__setting-label {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.6);
}
.mob-acc__setting-value {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
}

/* Dropdown options */
.mob-acc__dropdown-options {
    display: none;
    flex-direction: column;
    border: 1px solid #2B598A;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}
.mob-acc__dropdown-options.open {
    display: flex;
}
.mob-acc__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 10px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}
.mob-acc__option:hover {
    background: #2B598A;
    color: #ffffff;
    text-decoration: none;
}
.mob-acc__option.active {
    color: #46C89B;
}

/* Divider */
.mob-acc__divider {
    border: none;
    border-top: 1px solid #2B598A;
    margin: 0;
}

/* Phone */
.mob-acc__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #2B598A;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}
.mob-acc__phone:hover {
    background: #325f96;
    color: #ffffff;
    text-decoration: none;
}
.mob-acc__phone-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(83%) sepia(18%) saturate(638%) hue-rotate(162deg) brightness(103%) contrast(93%);
}

/* Mobile left group: hamburger + logo (hidden on desktop) */
.topbar-mobile-left {
    display: none;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.topbar-mobile-logo {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 24px;
    color: #173D69;
    text-decoration: none;
}
.topbar-mobile-logo:hover {
    color: #173D69;
    text-decoration: none;
}

/* Mobile toggle button (hidden on desktop via parent) */
.sidebar-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #1D1B42;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
    padding: 0;
}
.sidebar-toggle-mobile img {
    width: 24px;
    height: 24px;
}
.sidebar-toggle-mobile:hover {
    background: #f2f4f7;
}

/* Close button (hidden on desktop, shown on mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

/* Mobile products sub-panel (hidden on desktop) */
.sidebar-subpanel {
    display: none;
}

/* ============================================================
   RESPONSIVE — mobile sidebar collapses
   ============================================================ */
@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        overflow: hidden;
    }
    .sidebar-nav {
        overflow-y: auto;
        min-height: 0;
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    /* Show close button on mobile */
    .sidebar-close {
        display: flex;
    }
    /* Hide desktop dropdown behavior for products on mobile */
    .sidebar-has-children .sidebar-submenu {
        display: none !important;
    }
    .sidebar-has-children .sidebar-chevron {
        transform: rotate(-90deg) !important;
    }
    /* Sub-panel: slides in from right, covers whole sidebar */
    .sidebar-subpanel {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #1D1B42;
        flex-direction: column;
        padding: 30px 20px 40px;
        z-index: 5;
        overflow-y: auto;
        animation: slideInRight 0.25s ease;
    }
    .sidebar-subpanel.active {
        display: flex;
    }
    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    .sidebar-subpanel__back {
        display: flex;
        align-items: center;
        gap: 10px;
        background: none;
        border: none;
        color: #ffffff;
        font-family: "Montserrat arm", "Montserrat", sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        cursor: pointer;
        padding: 10px 0;
        margin-bottom: 12px;
    }
    /* Category list */
    .sidebar-subpanel__list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        flex: 1;
    }
    .sidebar-subpanel__cat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px;
        color: #8DCDEA;
        text-decoration: none;
        font-family: "Montserrat arm", "Montserrat", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: -0.0004em;
        transition: color 0.15s;
    }
    .sidebar-subpanel__cat:hover {
        color: #ffffff;
        text-decoration: none;
    }
    .sidebar-subpanel__cat.sidebar-cat-active {
        color: #46C89B;
    }
    .sidebar-subpanel__chevron {
        flex-shrink: 0;
        transition: transform 0.2s;
    }
    .has-subcats.open .sidebar-subpanel__chevron {
        transform: rotate(90deg);
    }
    /* Promotions link — green accent */
    .sidebar-subpanel__promo {
        color: #FF094F;
    }
    .sidebar-subpanel__promo:hover {
        color: #ff3b6f;
    }
    /* Subcategories expandable card */
    .sidebar-subcats-card {
        display: none;
        flex-direction: column;
        gap: 18px;
        background: #282C53;
        border-radius: 16px;
        padding: 20px;
        margin: 4px 0 8px;
    }
    .has-subcats.open .sidebar-subcats-card {
        display: flex;
    }
    .sidebar-subcats-card a {
        color: #ffffff;
        text-decoration: none;
        font-family: "Montserrat arm", "Montserrat", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: -0.0004em;
        transition: color 0.15s;
    }
    .sidebar-subcats-card a:hover {
        color: #8DCDEA;
    }
    .sidebar-subcats-card a.sidebar-cat-active {
        color: #46C89B;
    }
    .topbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        padding: 14px 16px;
        gap: 12px;
        flex-wrap: wrap;
        z-index: 1050;
    }
    /* Show mobile left group (hamburger + logo) */
    .topbar-mobile-left {
        display: flex;
    }
    /* Hide search on first row, move to second row full width */
    .topbar-search {
        order: 3;
        width: 100%;
    }
    .topbar-search-inner {
        width: 100%;
    }
    /* Hide currency, language, wishlist on mobile */
    .topbar-btns-group .topbar-dropdown--currency,
    .topbar-btns-group .topbar-dropdown--language {
        display: none;
    }
    .topbar-icons-group a[href*="wishlist"] {
        display: none;
    }
    /* Right side: cart + account only, gap 24px */
    .topbar-actions {
        gap: 24px;
    }
    .topbar-btns-group {
        gap: 0;
    }
    .topbar-icon-btn--bg {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .topbar-icon-img {
        width: 24px;
        height: 24px;
    }
    /* Mobile account: show toggle, hide desktop link */
    #mobileAccountToggle { display: flex; }
    .topbar-account-desktop { display: none !important; }
    .main-wrapper {
        margin-left: 0;
    }
    .page-content {
        padding-top: 120px;
        min-height: calc(100vh + 100px);
    }
    /* Feature blocks stack on mobile */
    .feature-blocks {
        flex-direction: column;
        padding: 16px 16px 0;
    }
    /* Hero section stacks on mobile */
    .hero-section {
        flex-direction: column;
        padding: 24px 16px 0;
    }
    .hero-text {
        width: 100%;
        margin-top: 0;
    }
    .hero-carousel-wrap {
        width: 100%;
    }
    .hero-carousel-inner {
        max-width: 100%;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1090;
}
.sidebar-overlay.active {
    display: block;
}

/* ============================================================
   HERO SECTION
   Figma: 1920×920 canvas. Sidebar 320px → content 1600px.
   Carousel: W800 H600, left:1080px from canvas = 760px from content = 47.5% offset.
   MacBook M2 13" (1280px viewport) → content 960px → scale ≈ 0.6
   ============================================================ */
.hero-section {
    display: flex;
    align-items: flex-start;
    padding: 40px 40px 0;
    gap: clamp(16px, 2vw, 40px);
    overflow: hidden;
}

/* Left text — Figma: 760px / 1600px = 47.5% of content */
.hero-text {
    width: 47.5%;
    flex-shrink: 0;
    z-index: 2;
    margin-top: 80px;
}

/* Title: Figma 60px bold. Sidebar-corrected: calc(3.75vw - 12px) → 36px at MacBook, 60px at 1920px */
.hero-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-60) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    color: #1D1B42;
    margin-bottom: clamp(12px, 1.5vw, 24px);
}

/* Subtitle: Figma 32px Rubik — reduced to fit AM/RU longer strings */
.hero-subtitle {
    font-family: "Rubik", sans-serif !important;
    font-size: var(--fs-26) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #6b7280;
    margin-bottom: clamp(20px, 2.5vw, 40px);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #46C89B;
    color: #ffffff;
    padding: clamp(10px, 1vw, 16px) clamp(24px, 2.5vw, 48px);
    border-radius: 50px;
    font-size: var(--fs-16);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.hero-btn:hover {
    background: #38b589;
    color: #fff;
    text-decoration: none;
}

/* Right: Carousel
   Figma: 800×600px. At MacBook 960px content: 800*(960/1600)=480px wide, 600*(960/1600)=360px tall.
*/
.hero-carousel-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.hero-carousel-inner {
    width: 100%;
    max-width: clamp(400px, 50vw, 800px);
    height: clamp(300px, 29vw, 600px);
    min-height: 300px;
    border-radius: var(--r-24);
    overflow: hidden;
    position: relative;
}

.hero-owl {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

.hero-owl .owl-stage-outer,
.hero-owl .owl-stage,
.hero-owl .owl-item {
    height: 100% !important;
}

.hero-slide-link {
    display: block;
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hide owl carousel nav arrows */
.hero-owl .owl-nav,
.hero-owl .owl-prev,
.hero-owl .owl-next {
    display: none !important;
}

/* ============================================================
   FEATURE BLOCKS
   Figma: 3 blocks. Scale gap/padding for smaller screens.
   ============================================================ */
.feature-blocks {
    display: flex;
    gap: clamp(12px, 1.2vw, 20px);
    padding: clamp(20px, 2.5vw, 40px) 40px 0;
}

.feature-block {
    flex: 1;
    background: #8DCDEA29;
    border-radius: var(--r-16);
    padding: clamp(16px, 1.8vw, 28px) clamp(14px, 1.5vw, 24px);
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.2vw, 20px);
}

/* All blocks: #8DCDEA circle, 80×80px, fully rounded */
.feature-block-icon {
    width: clamp(48px, 4.17vw, 80px);
    height: clamp(48px, 4.17vw, 80px);
    background: #8DCDEA;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* Blocks 1 & 2: SVG includes its own #8DCDEA circle — fill the container */
.feature-block-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

/* Block 3: SVG is icon paths only (no circle) — smaller, centered on CSS bg */
.feature-block:nth-child(3) .feature-block-icon {
    overflow: visible;
}
.feature-block:nth-child(3) .feature-block-icon img {
    width: clamp(28px, 2.6vw, 44px);
    height: clamp(28px, 2.6vw, 44px);
    object-fit: contain;
}

.feature-block-body {
    flex: 1;
    min-width: 0;
}

/* Title: Figma 20px bold uppercase — #8DCDEA */
.feature-block-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-18) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    color: #8DCDEA;
    margin-bottom: clamp(6px, 0.6vw, 10px);
}

/* Text: same visual width as the heading, wraps to ~2 lines */
.feature-block-text {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-18) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    color: #0D0C22;
    margin: 0;
    max-width: 23ch;
}

/* ============================================================
   NEW ARRIVALS SECTION
   Figma: card 366×558px on 1600px content.
   MacBook M2 13" (1280px viewport → 960px content, scale ×0.6).
   ============================================================ */
.na-section {
    padding: clamp(24px, 2.5vw, 40px) 40px;
}

.na-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-40) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    color: #0D0C22;
    margin-bottom: clamp(16px, 1.875vw, 30px);
}

/* Card */
.na-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border-radius: var(--r-24);
    border: 2px solid #E5E7EB;
    padding: clamp(12px, 1.25vw, 20px);
    box-sizing: border-box;
    height: 100%;
}

/* Top row: badge + favourite */
.na-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.na-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 40px;
    background: #1D86DD;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0;
    padding: 10px 15px;
    border-radius: var(--r-10);
    white-space: nowrap;
    box-sizing: border-box;
}

.na-card__fav {
    font-size: var(--fs-22);
    color: #D1D5DB;
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}
.na-card__fav:hover,
.na-card__fav--active {
    color: #F59E0B;
    text-decoration: none;
}

/* Image */
.na-card__img-wrap {
    display: block;
    border-radius: var(--r-10);
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f9f9;
}
.na-card__img {
    width: 100%;
    aspect-ratio: 326 / 350;
    object-fit: contain;
    display: block;
}

/* Body */
.na-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.na-card__category {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 18px;
    height: 36px; /* fixed 2 lines × 18px */
    overflow: hidden;
    color: #6E6D7A;
    display: block;
}

.na-card__name {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: #0D0C22;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(clamp(13px, 1.125vw, 18px) * 1.35 * 2);
}

/* Price inside na-card */
.na-card__body .price_box {
    margin: 0;
}
.na-card__body .price_box .current_price {
    font-size: var(--fs-24) !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    letter-spacing: -0.04em !important;
    color: #1D1B42 !important;
}
.na-card__body .price_box .old_price {
    font-size: var(--fs-14) !important;
    color: #9CA3AF !important;
    text-decoration: line-through;
    margin-right: 4px;
}

/* Add-to-cart button */
.na-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(36px, 3.125vw, 50px);
    background: rgba(70, 200, 155, 0.2);
    color: #46C89B;
    border: none;
    border-radius: var(--r-pill);
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 500;
    gap: 10px;
    cursor: pointer;
    padding: 12px 6px;
    transition: background 0.2s, color 0.2s;
    margin-top: auto;
}
.na-card__btn:hover {
    background: #46C89B;
    color: #fff;
}

/* ─── Cart action wrapper (Add + / Qty selector) ─── */
.cart-action {
    width: 100%;
    margin-top: auto;
}

.cart-qty {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(2px, 0.21vw, 4px);
    width: 100%;
    height: clamp(36px, 2.6vw, 50px);
}

.cart-qty__count {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100%;
    background: #F3F3F6;
    border-radius: 100px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 0.94vw, 18px);
    color: #6E6D7A;
    letter-spacing: -0.0004em;
}

.cart-qty__minus,
.cart-qty__plus {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(40px, 3.65vw, 70px);
    height: 100%;
    background: #46C89B;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.cart-qty__minus:hover,
.cart-qty__plus:hover {
    background: #3bb88b;
}

.cart-qty__minus svg,
.cart-qty__plus svg {
    width: clamp(14px, 0.83vw, 16px);
    height: clamp(14px, 0.83vw, 16px);
}

/* When cart-action is inside a card, the parent button class handles margin-top.
   We move margin-top from button to wrapper. */
.cart-action .na-card__btn,
.cart-action .os-card__btn,
.cart-action .tp-card__btn {
    margin-top: 0;
}

/* Hide carousel items before Owl initialises — prevents 1-second layout flash */
.na-carousel:not(.owl-loaded) > div,
.os-carousel:not(.owl-loaded) > div,
.bia-carousel:not(.owl-loaded) > div {
    display: none;
}

/* Responsive overrides */
@media (max-width: 1280px) {
    .na-section { padding: clamp(20px, 2vw, 32px) 40px; }
}
@media (max-width: 991px) {
    .na-section { padding: 20px 16px; }
    /* Prevent add-to-cart text from wrapping on mobile */
    .cart-add-btn {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 13px !important;
    }
}

/* ============================================================
   PROMO BLOCKS
   Figma: 2 × 756×600px, gap 30px on 1600px content.
   MacBook M2 13" (960px content): each block ≈ 425px.
   ============================================================ */
.promo-blocks {
    display: flex;
    gap: clamp(16px, 1.875vw, 30px);
    padding: clamp(24px, 2.5vw, 40px) 40px;
}

.promo-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.25vw, 20px);
    background: #F3F3F6;
    border-radius: var(--r-24);
    padding: clamp(12px, 1.25vw, 20px) clamp(12px, 1.25vw, 20px) clamp(18px, 1.875vw, 30px);
}

.promo-block__img {
    width: 100%;
    aspect-ratio: 716 / 380;
    object-fit: cover;
    border-radius: var(--r-16);
    display: block;
}

.promo-block__title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-28) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    text-transform: uppercase;
    color: #0D0C22;
    margin: 0;
}

.promo-block__desc {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-26) !important;
    font-weight: 400 !important;
    line-height: clamp(20px, 1.875vw, 30px) !important;
    letter-spacing: 0 !important;
    color: #6E6D7A;
    margin: 0;
}

@media (max-width: 991px) {
    .promo-blocks {
        flex-direction: column;
        padding: 20px 16px;
    }
}

/* os-section styles are defined further below in the ON SALE block */

/* ============================================================
   TOP PRODUCTS SECTION
   Figma: left banner ~700px, right ~860px on 1600px content.
   Cards: 700×280px, gap 40px, horizontal layout.
   ============================================================ */
.tp-section {
    display: flex;
    gap: clamp(20px, 2.5vw, 40px);
    padding: clamp(24px, 2.5vw, 40px) 40px;
    align-items: stretch;
}
.tp-banner {
    flex: 1;
    min-width: 0;
    border-radius: var(--r-24);
    overflow: hidden;
    display: flex;
    align-self: stretch;
}
.tp-banner__img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    display: block;
    border-radius: var(--r-24);
}
.tp-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.875vw, 30px);
}
.tp-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-40) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    color: #0D0C22;
    margin: 0;
}
.tp-cards { display: flex; flex-direction: column; gap: clamp(10px, 1.25vw, 20px); flex: 1; }
.tp-card {
    display: flex;
    align-items: stretch;
    flex: 1;
    border-radius: var(--r-20);
    border: 2px solid #E5E7EB;
    padding: clamp(10px, 0.875vw, 14px) clamp(14px, 1.5vw, 24px) clamp(10px, 0.875vw, 14px) clamp(10px, 0.875vw, 14px);
    background: #ffffff;
    box-sizing: border-box;
}
.tp-card__img-wrap {
    position: relative;
    width: clamp(80px, 9vw, 145px);
    flex-shrink: 0;
    border-radius: var(--r-12);
    background: #F3F3F6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: clamp(10px, 1.25vw, 20px);
}
.tp-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tp-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #1D86DD;
    color: #fff;
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    z-index: 1;
}
.tp-card__badge--sale { background: #E53E3E; }
.tp-card__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 8px; justify-content: center;
}
.tp-card__category { font-size: var(--fs-14); font-weight: 400; line-height: 18px; height: 36px; overflow: hidden; color: #6E6D7A; display: block; }
.tp-card__name {
    font-size: var(--fs-20);
    font-weight: 400; line-height: 1.35; letter-spacing: -0.04em;
    color: #1D1B42; text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(clamp(13px, 1.25vw, 20px) * 1.35 * 2);
}
a.tp-card__name:hover { color: #46C89B; text-decoration: none; }
.tp-card__body .price_box { margin: 0; }
.tp-card__body .price_box .current_price { font-size: var(--fs-24) !important; font-weight: 700 !important; color: #1D1B42 !important; }
.tp-card__body .price_box .old_price { font-size: var(--fs-14) !important; color: #9CA3AF !important; text-decoration: line-through; margin-right: 4px; }
.tp-card__btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: clamp(30px, 2.5vw, 40px);
    background: rgba(70,200,155,0.2); color: #46C89B;
    border: none; border-radius: var(--r-pill);
    font-family: "Montserrat", sans-serif; font-size: var(--fs-13); font-weight: 500;
    cursor: pointer; padding: 6px; gap: 8px;
    transition: background 0.2s, color 0.2s;
}
.tp-card__btn:hover { background: #46C89B; color: #fff; }
@media (max-width: 1280px) {
    .tp-section { padding: clamp(20px, 2vw, 32px) 40px; gap: clamp(16px, 2vw, 32px); }
}
@media (max-width: 991px) {
    .tp-section { flex-direction: column; padding: 20px 16px; }
    .tp-banner { width: 100%; height: 280px; }
    .tp-card__btn { width: 100%; }
}

/* ============================================================
   FOOTER
   Figma: 1920px, background #1D1B42, padding 80px 100px 0 404px
   (left 404 = sidebar 320 + 84 internal). Footer is inside
   main-wrapper so internal padding = 80px top, 100px right, 84px left.
   ============================================================ */
.site-footer {
    display: flex;
    flex-direction: column;
    background: #1D1B42;
    color: #ffffff;
    /* clamp(top), clamp(right), 0 bottom, clamp(left) */
    padding: clamp(40px, 4.17vw, 80px) clamp(32px, 5.21vw, 100px) 0 clamp(32px, 4.375vw, 84px);
    gap: clamp(32px, 4.17vw, 80px);
}

/* ── Main row: brand LEFT | newsletter RIGHT ── */
.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(24px, 3.65vw, 70px);
}

/* ── Left column: logo · contacts · social ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(24px, 3.65vw, 70px);
    flex: 0 1 auto;
    min-width: 0;
}

.footer-brand__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand__name {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-44);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
}
.footer-brand__name:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-brand__tagline {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

/* Contacts: phone / location / email */
.footer-contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 1.04vw, 20px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 400;
    transition: color 0.15s;
}
.footer-contact-icon {
    width: clamp(18px, 1.25vw, 24px);
    height: clamp(18px, 1.25vw, 24px);
    object-fit: contain;
    flex-shrink: 0;
    /* tint icons to #8DCDEA (Light Blue) */
    filter: brightness(0) saturate(100%) invert(83%) sepia(18%) saturate(638%) hue-rotate(162deg) brightness(103%) contrast(93%);
}
a.footer-contact-item:hover {
    color: #8DCDEA;
    text-decoration: none;
}

/* Social icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.9375vw, 31px);
}
.footer-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 2.5vw, 48px);
    height: clamp(36px, 2.5vw, 48px);
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.15s;
}
.footer-social__icon:hover {
    opacity: 0.8;
    text-decoration: none;
}
.footer-social__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Right column: newsletter ── */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 4.17vw, 80px);
    flex: 1 1 0%;
    min-width: 0;
    max-width: 670px;
}

/* Newsletter block */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1vw, 16px);
}

.footer-newsletter__title {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #ffffff;
    margin: 0;
}

.footer-newsletter__desc {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-24);
    font-weight: 400;
    line-height: 1.375;
    color: #8DCDEA;
    margin: 0;
}

/* Input pill: bg #282C53, h 64px, radius 100px */
.footer-newsletter__form {
    display: flex;
    align-items: center;
    background: #282C53;
    border-radius: var(--r-pill);
    padding: 4px 4px 4px clamp(16px, 1.5vw, 24px);
    width: 100%;
    height: clamp(52px, 4vw, 64px);
}

.footer-newsletter__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    letter-spacing: -0.0004em;
    color: #8DCDEA;
}
.footer-newsletter__input::placeholder {
    color: #8DCDEA;
    opacity: 1;
}

.footer-newsletter__btn {
    background: #46C89B;
    color: #ffffff;
    border: none;
    border-radius: var(--r-pill);
    padding: 6px clamp(20px, 1.56vw, 30px);
    min-width: clamp(120px, 10.42vw, 200px);
    height: clamp(40px, 2.92vw, 56px);
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 700;
    letter-spacing: -0.0004em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.footer-newsletter__btn:hover {
    background: #38b589;
}

/* Nav links — centered full-width */
.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.6vw, 50px);
    flex-wrap: wrap;
}
.footer-nav a {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 700;
    letter-spacing: -0.0004em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.footer-nav a:hover {
    color: #46C89B;
    text-decoration: none;
}

/* ── Bottom bar ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px, 1.25vw, 20px) 0 clamp(32px, 3.13vw, 60px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom__copy {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 400;
    letter-spacing: -0.0004em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-bottom__copy:hover {
    color: #8DCDEA;
    text-decoration: none;
}

/* Scroll-to-top: centered, floats above bottom bar line */
.footer-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r-pill);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 0;
}
.footer-scroll-top:hover {
    opacity: 0.85;
}
.footer-scroll-top__icon {
    width: 56px;
    height: 56px;
    display: block;
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.875vw, 30px);
}
.footer-bottom__links a {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 400;
    letter-spacing: -0.0004em;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.footer-bottom__links a:hover {
    color: #8DCDEA;
}

/* ── Mailchimp alerts ── */
.mailchimp-alerts {
    margin-top: 8px;
    font-size: var(--fs-13);
}
.mailchimp-success { color: #46C89B; }
.mailchimp-error   { color: #ff6b6b; }

/* ── 1440px ── */
@media (max-width: 1440px) {
    .footer-social__icon { width: 42px; height: 42px; }
}

/* ── 1280px ── */
@media (max-width: 1280px) {
    .footer-main { gap: 24px; }
    .footer-brand { gap: 20px; }
    .footer-contacts { flex-wrap: wrap; }
    .footer-social { gap: 20px; }
    .footer-social__icon { width: 36px; height: 36px; }
    .footer-right { max-width: 480px; }
    .footer-newsletter__form { height: 50px; }
    .footer-scroll-top { width: 46px; height: 46px; }
    .footer-scroll-top__icon { width: 46px; height: 46px; }
}

/* ── 991px tablet / mobile ── */
@media (max-width: 991px) {
    .site-footer { padding: 40px 16px 80px; }

    /* Stack main: newsletter on top, brand below */
    .footer-main {
        flex-direction: column-reverse;
        gap: 70px;
        padding-bottom: 40px;
    }

    /* Brand: centered */
    .footer-brand {
        align-items: center;
        gap: 40px;
    }
    .footer-brand__top { align-items: center; }
    .footer-brand__tagline { text-align: center; }

    /* Contacts: row, wrap, centered */
    .footer-contacts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* Social: centered */
    .footer-social { justify-content: center; }

    /* Newsletter: full width */
    .footer-right { max-width: 100%; }
    .footer-newsletter__title { font-size: 24px; line-height: 28px; }
    .footer-newsletter__desc { font-size: 16px; line-height: 20px; }

    /* Input + button stack vertically as separate pills */
    .footer-newsletter__form {
        flex-direction: column;
        height: auto !important;
        padding: 0 !important;
        gap: 10px;
        background: none !important;
        border-radius: 0 !important;
        align-items: stretch;
    }
    .footer-newsletter__input {
        width: 100% !important;
        height: 50px !important;
        min-height: 50px;
        max-height: 50px;
        flex: none !important;
        background: #282C53 !important;
        border-radius: 100px !important;
        padding: 4px 24px !important;
        font-size: 14px;
        box-sizing: border-box;
    }
    .footer-newsletter__btn {
        width: 100% !important;
        height: 50px !important;
        min-height: 50px;
        max-height: 50px;
        flex: none !important;
        border-radius: 100px !important;
        padding: 6px 20px !important;
        box-sizing: border-box;
    }

    /* Nav links: centered, wrap */
    .footer-nav {
        justify-content: center;
        gap: 16px 50px;
        flex-wrap: wrap;
    }
    .footer-nav a { font-size: 16px; }

    /* Bottom: stack vertically, centered */
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 0 0;
    }
    .footer-bottom__copy { text-align: center; }
    .footer-bottom__links {
        justify-content: center;
    }

    /* Scroll-to-top: 44px */
    .footer-scroll-top { width: 44px; height: 44px; }
    .footer-scroll-top__icon { width: 44px; height: 44px; }
}

/* ============================================================
   ON SALE SECTION
   Figma: card 384×558px, same structure as New Arrivals.
   Background: #EBF5E8, badge: #FF094F, border: #F3F3F6.
   ============================================================ */
.os-section {
    background: #EBF5E8;
    padding: clamp(24px, 2.5vw, 40px) 40px;
}

.os-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-40) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    color: #0D0C22;
    margin-bottom: clamp(16px, 1.875vw, 30px);
}

/* Card */
.os-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border-radius: var(--r-24);
    border: 2px solid #F3F3F6;
    padding: clamp(12px, 1.25vw, 20px);
    box-sizing: border-box;
    height: 100%;
}

/* Top row: badge + favourite */
.os-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.os-card__badge {
    background: #FF094F;
    color: #fff;
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.os-card__fav {
    font-size: var(--fs-22);
    color: #D1D5DB;
    text-decoration: none;
    line-height: 1;
    transition: color 0.15s;
}
.os-card__fav:hover,
.os-card__fav--active {
    color: #F59E0B;
    text-decoration: none;
}

/* Image */
.os-card__img-wrap {
    display: block;
    border-radius: var(--r-10);
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f9f9;
}
.os-card__img {
    width: 100%;
    aspect-ratio: 344 / 350;
    object-fit: contain;
    display: block;
}

/* Body */
.os-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.os-card__category {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 18px;
    height: 36px; /* fixed 2 lines × 18px */
    overflow: hidden;
    color: #6E6D7A;
    display: block;
}

.os-card__name {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.04em;
    color: #0D0C22;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(clamp(13px, 1.125vw, 18px) * 1.35 * 2);
}

/* Price inside os-card */
.os-card__body .price_box {
    margin: 0;
}
.os-card__body .price_box .current_price {
    font-size: var(--fs-24) !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    letter-spacing: -0.04em !important;
    color: #1D1B42 !important;
}
.os-card__body .price_box .old_price {
    font-size: var(--fs-14) !important;
    color: #9CA3AF !important;
    text-decoration: line-through;
    margin-right: 4px;
}

/* Add-to-cart button */
.os-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(36px, 3.125vw, 50px);
    background: rgba(70, 200, 155, 0.2);
    color: #46C89B;
    border: none;
    border-radius: var(--r-pill);
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 500;
    gap: 10px;
    cursor: pointer;
    padding: 12px 6px;
    transition: background 0.2s, color 0.2s;
    margin-top: auto;
}
.os-card__btn:hover {
    background: #46C89B;
    color: #fff;
}

@media (max-width: 1280px) {
    .os-section { padding: clamp(20px, 2vw, 32px) 40px; }
}
@media (max-width: 991px) {
    .os-section { padding: 20px 16px; }
}

/* ============================================================
   OUR PARTNERS SECTION
   Infinite CSS marquee scroll
   ============================================================ */
.partners-section {
    padding: clamp(24px, 2.5vw, 40px) 0;
    overflow: hidden;
}
.partners-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-40) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    color: #0D0C22;
    text-align: center;
    margin: 0 0 clamp(20px, 2vw, 32px);
    padding: 0 40px;
}
.partners-track-wrap {
    overflow: hidden;
    width: 100%;
}
.partners-track {
    display: flex;
    gap: 10px;
    animation: partners-scroll 80s linear infinite;
    width: max-content;
}
.partners-track:hover {
    animation-play-state: paused;
}
.partner-item {
    height: 100px;
    border-radius: var(--r-12);
    border: 2px solid #E5E7EB;
    padding: 0 24px;
    background: #F3F3F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}
.partner-item img {
    max-height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
@keyframes partners-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   SIDEBAR — active category & updated hover
   ============================================================ */
.sidebar-submenu li a:hover {
    color: #46C89B !important;
}
.sidebar-submenu li a.sidebar-cat-active {
    color: #46C89B;
    font-weight: 600;
}

/* ============================================================
   PRODUCTS LIST PAGE
   Figma: 1920px total, 320px sidebar → 1600px content.
   Cards: 4-column grid, same design as na-card.
   ============================================================ */
.products-page {
    padding: clamp(24px, 2.5vw, 40px) 40px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Product detail page wrapper — same padding as .products-page */
.product-detail-page {
    padding: clamp(24px, 2.5vw, 40px) 40px;
    overflow-x: hidden;
}

/* Product detail two-column layout */
.pd-layout {
    display: flex;
    gap: clamp(20px, 2.5vw, 40px);
    margin-top: 24px;
    margin-bottom: 40px;
    max-width: 100%;
}
.pd-gallery {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
}
.pd-info {
    flex: 1;
    min-width: 0;
}
/* Gallery: main image + thumbs side by side */
.pd-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.pd-gallery__main {
    flex: 1;
    min-width: 0;
    max-width: 568px;
    aspect-ratio: 568 / 580;
    border-radius: var(--r-20);
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}
.pd-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pd-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-gallery__thumb {
    width: 122px;
    height: 124px;
    border-radius: var(--r-20);
    border: 2px solid #E5E7EB;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    cursor: pointer;
    flex-shrink: 0;
}
.pd-gallery__thumb:hover,
.pd-gallery__thumb--active {
    border-color: #1D86DD;
}
.pd-gallery__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Back button */
.pd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 4px 10px;
    border-radius: var(--r-pill);
    background: #F3F3F6;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 500;
    color: #0D0C22;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.15s;
}
.pd-back-btn:hover {
    background: #E8E8EC;
}

/* Product info (right column) */
.pd-info__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.pd-info__badge--sale {
    background: #FF094F;
}

.pd-info__title {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-32);
    font-weight: 700;
    color: #1D1B42;
    margin: 0 0 12px;
    line-height: 1.25;
}
/* Brand link */
.pd-info__brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 18px;
    color: #507EB0;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.15s;
}
.pd-info__brand:hover {
    color: #3a6a9a;
}
.pd-info__brand-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--r-pill);
    background: #F3F3F6;
}

.pd-info .price_box {
    margin-bottom: 20px;
}
.pd-info__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}
.pd-info__qty {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-qty__btn {
    width: 70px;
    height: 50px;
    border-radius: var(--r-pill);
    border: none;
    background: rgba(70, 200, 155, 0.2);
    padding: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-20);
    font-weight: 500;
    color: #0D0C22;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.pd-qty__btn:hover {
    background: rgba(70, 200, 155, 0.35);
}
.pd-qty__input {
    width: 100px;
    height: 50px;
    border-radius: var(--r-pill);
    border: none;
    background: #F3F3F6;
    padding: 6px 20px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 500;
    color: #0D0C22;
    outline: none;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.pd-qty__input::-webkit-outer-spin-button,
.pd-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pd-info__cart-btn {
    width: 320px;
    height: 50px;
    padding: 6px;
    border-radius: var(--r-pill);
    border: none;
    background: #46C89B;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.pd-info__cart-btn:hover {
    background: var(--clr-green-hover);
}

/* Warning message */
.pd-info__warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}
.pd-info__warning span {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 18px;
    color: #FF094F;
}

/* Specs / description */
.pd-info__specs {
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    line-height: 18px;
    color: #6E6D7A;
}
.pd-info__specs p {
    margin: 0 0 10px;
}
.pd-info__specs strong,
.pd-info__specs b {
    font-weight: 600;
    color: #6E6D7A;
}

@media (max-width: 1280px) {
    .pd-gallery__main { aspect-ratio: auto; min-height: 340px; }
    .pd-gallery__thumb { width: 90px; height: 92px; }
    .pd-info__cart-btn { width: 100%; max-width: 320px; }
    .pd-qty__btn { width: 56px; height: 44px; }
    .pd-qty__input { width: 80px; height: 44px; }
}
@media (max-width: 960px) {
    .pd-layout {
        flex-direction: column;
        gap: 24px;
    }
    .pd-gallery { max-width: 100%; flex-direction: row; }
    .pd-gallery__main { max-width: 100%; aspect-ratio: auto; min-height: 280px; }
    .pd-gallery__thumbs { flex-direction: column; }
}
@media (max-width: 768px) {
    .product-detail-page { padding: 20px 16px; }
    .pd-gallery { flex-direction: column; }
    .pd-gallery__thumbs { flex-direction: row; flex-wrap: wrap; }
    .pd-gallery__thumb { width: 72px; height: 74px; border-radius: 12px; padding: 6px; }
    .pd-info__actions { flex-wrap: wrap; }
    .pd-info__cart-btn { width: 100%; max-width: 100%; }
    .pd-qty__btn { width: 50px; height: 44px; }
    .pd-qty__input { width: 70px; height: 44px; }
}

/* Breadcrumb */
.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.products-breadcrumb__link,
.products-breadcrumb__sep,
.products-breadcrumb__current {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.04em;
}
.products-breadcrumb__link {
    color: #6E6D7A;
    text-decoration: none;
    transition: color 0.15s;
}
.products-breadcrumb__link:hover { color: #46C89B; }
.products-breadcrumb__sep {
    color: #6E6D7A;
}
.products-breadcrumb__current {
    color: #6E6D7A;
}

/* Page header */
.products-page-header {
    margin-bottom: clamp(12px, 1.25vw, 20px);
}
.products-page-title {
    font-family: "Montserrat", sans-serif !important;
    font-size: var(--fs-40) !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: -0.04em !important;
    color: #1D1B42 !important;
    margin: 0 !important;
}

/* Filter bar: info left, selects right — same row */
.products-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(16px, 1.5vw, 24px);
}
.products-showing-info {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.04em;
    color: #6E6D7A;
    margin: 0;
    white-space: nowrap;
}
.pf-selects {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Select trigger button */
.pf-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.pf-select {
    appearance: none;
    -webkit-appearance: none;
    height: 40px;
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 28px 8px 12px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: #0D0C22;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 140px;
}
.pf-select:focus,
.pf-select:hover {
    border-color: #46C89B;
}
.pf-select-chevron {
    position: absolute;
    right: 8px;
    pointer-events: none;
    flex-shrink: 0;
}

/* ---- Custom filter dropdowns ---- */
.pf-dropdown {
    position: relative;
}

/* Trigger button — Frame 47: h40, r8, pad 8/6/8/12, gap 6 */
.pf-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 8px 6px 8px 12px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: #0D0C22;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.pf-dropdown__trigger:hover,
.pf-dropdown--open .pf-dropdown__trigger {
    border-color: transparent;
}
.pf-dropdown__label {
    flex: 1;
}
.pf-dropdown__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.pf-dropdown--open .pf-dropdown__chevron {
    transform: rotate(180deg);
}

/* Panel — Frame 164: w320, r20, pad 24/20/16/20, gap 20, bg #173D69 */
.pf-dropdown__panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #173D69;
    border-radius: var(--r-20);
    padding: 24px 20px 16px 20px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    box-sizing: border-box;
}
.pf-dropdown--open .pf-dropdown__panel {
    display: flex;
    flex-direction: column;
    max-height: 420px;
}
/* Scrollable options list */
.pf-dropdown__options {
    overflow-y: auto;
    flex: 1;
    margin-top: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.pf-dropdown__options::-webkit-scrollbar {
    width: 4px;
}
.pf-dropdown__options::-webkit-scrollbar-track {
    background: transparent;
}
.pf-dropdown__options::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
/* Search input inside panel */
.pf-dropdown__search {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-13);
    padding: 0 10px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.pf-dropdown__search::placeholder {
    color: rgba(255,255,255,0.4);
}
.pf-dropdown__search:focus {
    border-color: rgba(255,255,255,0.5);
}
/* (open state handled above with flex) */

/* Panel header */
.pf-dropdown__header {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}

/* Option rows */
.pf-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    gap: 20px;
}
.pf-dropdown__option + .pf-dropdown__option {
    margin-top: 0;
}
.pf-dropdown__option:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 6px;
    padding-right: 6px;
    margin-left: -6px;
    margin-right: -6px;
}
.pf-dropdown__option--active {
    color: #46C89B;
    font-weight: 600;
}

/* Radio indicator */
.pf-dropdown__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.pf-dropdown__option--active .pf-dropdown__radio {
    border-color: #46C89B;
    background: #46C89B;
    box-shadow: inset 0 0 0 3px #173D69;
}

/* Subcategory pills */
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(20px, 2vw, 32px);
}
.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 8px 20px;
    border-radius: var(--r-pill);
    border: none;
    background: #F3F3F6;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 400;
    color: #0D0C22;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    box-sizing: border-box;
}
.subcategory-pill:hover {
    background: rgba(70, 200, 155, 0.12);
    color: #46C89B;
}
.subcategory-pill--active {
    gap: 10px;
    padding: 8px 30px;
    border: 1.5px solid #46C89B;
    background: rgba(70, 200, 155, 0.2);
    color: #46C89B;
}
.subcategory-pill input[type="checkbox"] {
    display: none;
}
.subcategory-pill__check {
    flex-shrink: 0;
}

/* Products grid — 4 columns */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.25vw, 20px);
    margin-bottom: clamp(24px, 2.5vw, 40px);
}

/* Load More Pagination */
.loadmore-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 32px 0 48px;
}
.loadmore-track {
    width: 350px;
    height: 6px;
    border-radius: var(--r-pill);
    background: #F3F3F6;
    overflow: hidden;
}
.loadmore-bar {
    height: 100%;
    border-radius: var(--r-pill);
    background: #173D69;
    transition: width 0.4s ease;
}
.loadmore-count {
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-13);
    font-weight: 500;
    color: #6E6D7A;
}
.loadmore-btn {
    width: 350px;
    height: 50px;
    border-radius: var(--r-pill);
    border: 2px solid rgba(29, 27, 66, 0.2);
    background: transparent;
    padding: 10px 24px;
    font-family: "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 600;
    color: #1D1B42;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.loadmore-btn:hover {
    background: rgba(29, 27, 66, 0.05);
    border-color: rgba(29, 27, 66, 0.4);
}
.loadmore-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
@media (max-width: 480px) {
    .loadmore-track,
    .loadmore-btn { width: 100%; max-width: 350px; }
}

/* Empty state */
.products-empty {
    padding: 60px 0;
    text-align: center;
    color: #6E6D7A;
    font-size: var(--fs-16);
}

/* Buy It Again on products page — add top separator */
.products-bia-section {
    border-top: 1.5px solid #E5E7EB;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .products-page {
        padding: 20px 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .products-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .products-filter-bar {
        flex-wrap: wrap;
    }
    .pf-selects {
        flex-shrink: 1;
        flex-wrap: wrap;
        width: 100%;
    }
    .pf-dropdown {
        flex: 1;
        min-width: 0;
    }
    .pf-dropdown__trigger {
        width: 100%;
    }
    .subcategory-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    /* Mobile product cards — Figma: 176px card, 10px padding, 20px radius */
    .products-grid .na-card {
        padding: 10px;
        border-radius: 20px;
        gap: 8px;
        border-width: 1px;
        border-color: #F3F3F6;
    }
    .products-grid .na-card__badge {
        min-width: auto;
        height: 26px;
        padding: 10px 15px;
        font-size: 12px;
        border-radius: 6px;
    }
    .products-grid .na-card__fav {
        font-size: 16px;
    }
    .products-grid .na-card__img {
        aspect-ratio: 156 / 160;
    }
    .products-grid .na-card__img-wrap {
        border-radius: 10px;
    }
    .products-grid .na-card__body {
        gap: 12px;
    }
    .products-grid .na-card__category {
        font-size: 12px;
        line-height: 12px;
        height: auto;
    }
    .products-grid .na-card__name {
        font-size: 14px;
        line-height: 18px;
        min-height: 36px;
    }
    .products-grid .na-card__body .price_box .current_price {
        font-size: 16px !important;
        line-height: 20px !important;
    }
    .products-grid .na-card__body .price_box .old_price {
        font-size: 12px !important;
    }
    .products-grid .cart-add-btn {
        height: 40px;
        min-height: 40px;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .products-grid .cart-qty {
        height: 40px;
    }
}

/* ==========================================================
   MOBILE FILTER BOTTOM SHEET
   ========================================================== */

/* Trigger button — hidden on desktop, shown on mobile */
.mf-trigger {
    display: none;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #46C89B;
    padding: 0;
}
@media (max-width: 991px) {
    .mf-trigger { display: flex; }
    .pf-selects { display: none !important; }
}

/* Overlay */
.mf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}
.mf-overlay--open, .mf-overlay--active { display: block; }

/* Sheet */
.mf-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1D2547;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.mf-sheet--open, .mf-sheet--active { transform: translateY(0); }

/* Handle bar */
.mf-handle {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto 20px;
}

/* Section */
.mf-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mf-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #8DCDEA;
}
.mf-section__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #8DCDEA;
}
.mf-section__chevron {
    transition: transform 0.2s;
}
.mf-section--open .mf-section__chevron {
    transform: rotate(180deg);
}

/* Section body — hidden by default */
.mf-section__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mf-section--open .mf-section__body {
    max-height: 400px;
    overflow-y: auto;
}

/* Radio rows (sort) */
.mf-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 12px 34px;
    cursor: pointer;
}
.mf-radio-row__label {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}
.mf-radio-row input[type="radio"] {
    display: none;
}
.mf-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
}
.mf-radio-row input[type="radio"]:checked + .mf-radio {
    border-color: #46C89B;
    background: #46C89B;
}
.mf-radio-row input[type="radio"]:checked + .mf-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

/* Checkbox rows (brand) */
.mf-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 12px 34px;
    cursor: pointer;
}
.mf-check-row__label {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}
.mf-check-row input[type="checkbox"] {
    display: none;
}
.mf-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    position: relative;
}
.mf-check-row input[type="checkbox"]:checked + .mf-checkbox {
    border-color: #46C89B;
    background: #46C89B;
}
.mf-check-row input[type="checkbox"]:checked + .mf-checkbox::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Action buttons */
.mf-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.mf-btn {
    flex: 1;
    height: 50px;
    border-radius: 100px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.mf-btn--clear {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.mf-btn--apply {
    background: #46C89B;
    color: #ffffff;
}

/* ==========================================================
   CART PAGE — all values use: clamp(min, figma/1920*100 vw, figma)
   ========================================================== */
.cart-page {
    /* Figma: 40px 48px */
    padding: clamp(16px, 2.08vw, 40px) clamp(16px, 2.5vw, 48px);
    overflow-x: hidden;
}

.cart-page__title {
    /* Figma: 40px → 40/1920=2.08vw */
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
    /* Figma: 40px margin */
    margin: 0 0 clamp(1rem, 2.08vw, 2.5rem) 0;
}

/* --- Layout: items left + checkout right --- */
.cart-layout {
    display: flex;
    align-items: flex-start;
    /* Figma: 70px gap → 70/1920=3.65vw */
    gap: clamp(24px, 3.65vw, 70px);
}

/* --- Cart items column --- */
.cart-items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* Figma: 24px → 1.25vw */
    gap: clamp(12px, 1.25vw, 24px);
}

/* --- Single cart item card --- */
.cart-item {
    display: flex;
    align-items: center;
    /* Figma: padding 20px, gap 40px */
    padding: clamp(10px, 1.04vw, 20px);
    gap: clamp(16px, 2.08vw, 40px);
    background: var(--clr-bg-white);
    border: 2px solid #F3F3F6;
    backdrop-filter: blur(10px);
    /* Figma: r24 → 1.25vw */
    border-radius: var(--r-24);
    position: relative;
    isolation: isolate;
    /* Figma: 280px → 14.58vw */
    min-height: clamp(160px, 14.58vw, 280px);
}

/* Badge — absolute top-left */
.cart-item__badge-wrap {
    position: absolute;
    top: clamp(8px, 0.83vw, 16px);
    left: clamp(8px, 0.83vw, 16px);
    z-index: 3;
}

.cart-item__badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Figma: 10px 15px */
    padding: clamp(5px, 0.52vw, 10px) clamp(8px, 0.78vw, 15px);
    /* Figma: 70×40 */
    min-width: clamp(42px, 3.65vw, 70px);
    height: clamp(24px, 2.08vw, 40px);
    /* Figma: r10 */
    border-radius: var(--r-10);
    background: var(--clr-blue-link);
    /* Figma: 16px → 0.83vw */
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 12px;
    color: #fff;
}

.cart-item__badge--sale {
    background: var(--clr-red);
}

/* Image — Figma: 232×240 */
.cart-item__img {
    /* 232/1920=12.08vw, 240/1920=12.5vw */
    flex: 0 0 clamp(100px, 12.08vw, 232px);
    height: clamp(100px, 12.5vw, 240px);
    /* Figma: r20 → 1.04vw */
    border-radius: var(--r-20);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Info — Figma Frame 83: flex-grow 1, column, space-between */
.cart-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    /* Figma: 8px gap → 0.42vw */
    gap: clamp(4px, 0.42vw, 8px);
    padding: clamp(5px, 0.52vw, 10px) 0;
}

/* Name+category group — Figma Frame 53 */
.cart-item__name-group {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.42vw, 8px);
}

/* Figma: 18px, 400, #6E6D7A → 18/1920=0.94vw */
.cart-item__category {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1;
    color: var(--clr-text-muted);
}

/* Figma: 28px, 400 → 28/1920=1.46vw */
.cart-item__name {
    font-size: var(--fs-28);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
    margin: 0;
}

/* Price — bottom of info column, pushed by space-between */
.cart-item__price {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.42vw, 8px);
}

/* Figma: 24px, 700 → 24/1920=1.25vw */
.cart-item__current-price {
    font-size: var(--fs-24);
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
}

/* Figma: 18px, 400, line-through → 0.94vw */
.cart-item__old-price {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 32px;
    letter-spacing: -0.0004em;
    text-decoration: line-through;
    color: var(--clr-text-muted);
}

/* Actions column — Figma: 248px → 248/1920=12.92vw */
.cart-item__actions {
    flex: 0 0 clamp(140px, 12.92vw, 248px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    /* Figma: 40px → 2.08vw */
    gap: clamp(16px, 2.08vw, 40px);
}

/* Remove — Figma xmark: 32×32 → 1.67vw */
.cart-item__remove {
    width: clamp(24px, 1.67vw, 32px);
    height: clamp(24px, 1.67vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cart-item__remove svg {
    width: clamp(12px, 0.83vw, 16px);
    height: clamp(12px, 0.83vw, 16px);
}

/* Quantity — Figma Frame 72: 248×50, gap 4px */
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: flex-end;
}

/* --- Checkout right column — Figma: 460px / 28.75% of content --- */
.cart-checkout {
    flex: 0 0 clamp(260px, 28.75%, 460px);
    min-width: 0;
}

/* Step visibility */
.cart-step {
    display: none;
}

.cart-step--active {
    display: block;
}

/* --- Step 1: Delivery form — Figma: 28px → 1.46vw --- */
.cart-checkout__title {
    font-size: var(--fs-28);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
    /* Figma: 20px margin → 1.04vw */
    margin: 0 0 clamp(10px, 1.04vw, 20px) 0;
}

/* Delivery / Pickup toggle — Figma: 460×50 */
.cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Figma: 4px padding */
    padding: clamp(2px, 0.21vw, 4px);
    /* Figma: 50px → 2.6vw */
    height: clamp(38px, 2.6vw, 50px);
    background: #F3F3F6;
    border-radius: var(--r-pill);
    /* Figma: 8px margin → 0.42vw */
    margin-bottom: clamp(4px, 0.42vw, 8px);
}

/* Each tab — Figma: 42px height, 14px font, 10px 24px padding */
.cart-toggle__btn {
    flex: 1;
    /* Figma: 42px → 2.19vw */
    height: clamp(32px, 2.19vw, 42px);
    border-radius: var(--r-pill);
    border: none;
    background: transparent;
    font-family: inherit;
    /* Figma: 14px → 0.73vw */
    font-size: var(--fs-14);
    font-weight: 500;
    line-height: 17px;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    /* Figma: 10px 24px */
    padding: clamp(6px, 0.52vw, 10px) clamp(12px, 1.25vw, 24px);
}

/* Active tab — Figma: bg #173D69, white text */
.cart-toggle__btn--active {
    background: #173D69;
    color: #fff;
}

/* Date picker — Figma: month nav row + day cells row stacked */
.cart-date {
    /* Figma: 16px margin → 0.83vw */
    margin: clamp(8px, 0.83vw, 16px) 0;
}

/* Outer wrapper — stacks month row and days row */
.cart-date__row {
    display: flex;
    flex-direction: column;
    /* Figma: 16px gap → 0.83vw */
    gap: clamp(8px, 0.83vw, 16px);
}

/* Month navigation row — Figma: h50, padding 6px, gap 6px */
.cart-date__month-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Figma: 6px */
    padding: clamp(3px, 0.31vw, 6px);
    gap: clamp(3px, 0.31vw, 6px);
    /* Figma: 50px → 2.6vw */
    height: clamp(36px, 2.6vw, 50px);
    background: #F3F3F6;
    border-radius: var(--r-pill);
}

/* Month chevron buttons — Figma: 38×38 → 1.98vw */
.cart-date__month-nav {
    width: clamp(28px, 1.98vw, 38px);
    height: clamp(28px, 1.98vw, 38px);
    min-width: clamp(28px, 1.98vw, 38px);
    border-radius: var(--r-pill);
    border: none;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Month/year label — Figma: 14px → 0.73vw */
.cart-date__month-label-text {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 17px;
    color: var(--clr-text-heading);
    text-align: center;
}

/* Day cells row — arrows on each side + 5 day cells */
.cart-date__days-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Figma: 12px gap → 0.63vw */
    gap: clamp(4px, 0.63vw, 12px);
}

/* Nav arrows — Figma: 38×38 → 1.98vw */
.cart-date__nav {
    width: clamp(26px, 1.98vw, 38px);
    height: clamp(26px, 1.98vw, 38px);
    border-radius: 106px;
    border: none;
    background: #FFFFFF;
    font-size: 0;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-date__nav svg {
    width: clamp(10px, 0.73vw, 14px);
    height: clamp(10px, 0.73vw, 14px);
}

/* Day cells — Figma: 62×70 → 3.23vw × 3.65vw */
.cart-date__day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Figma: 8px 10px */
    padding: clamp(4px, 0.42vw, 8px) clamp(5px, 0.52vw, 10px);
    gap: 4px;
    width: clamp(40px, 3.23vw, 62px);
    height: clamp(48px, 3.65vw, 70px);
    background: #FFFFFF;
    /* Figma: r6 → 0.31vw */
    border-radius: var(--r-6);
    cursor: pointer;
    transition: all 0.2s;
}

/* Active/selected day — Figma: bg #1D86DD, r10 */
.cart-date__day--active {
    background: var(--clr-blue-link);
    /* Figma: r10 → 0.52vw */
    border-radius: var(--r-10);
}

/* Disabled (past) days — Figma: opacity 0.2 */
.cart-date__day--disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Day name — Figma: 14px → 0.73vw */
.cart-date__dayname {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 17px;
    text-align: center;
    color: var(--clr-text-heading);
}

.cart-date__day--active .cart-date__dayname {
    color: #fff;
}

/* Day number — Figma: 24px → 1.25vw */
.cart-date__daynum {
    font-size: var(--fs-24);
    font-weight: 700;
    line-height: 29px;
    text-align: center;
    color: #173D69;
}

.cart-date__day--active .cart-date__daynum {
    color: #fff;
}

/* Hidden month label (now inline with arrows removed from header) */
.cart-date__header {
    display: none;
}

.cart-date__month-label {
    display: none;
}

/* Form fields — Figma: gap 12px → 0.63vw */
.cart-fields {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.63vw, 12px);
    margin: clamp(8px, 0.83vw, 16px) 0;
}

/* Each field — Figma: column, gap 6px → 0.31vw */
.cart-field {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.31vw, 6px);
}

/* Label — Figma: 14px → 0.73vw */
.cart-field label {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 17px;
    color: var(--clr-text-muted);
}

/* Input — Figma: 50px height, r10, padding 10px 24px 10px 16px, 16px text */
.cart-field input {
    /* Figma: 50px → 2.6vw */
    height: clamp(38px, 2.6vw, 50px);
    /* Figma: r10 → 0.52vw */
    border-radius: var(--r-10);
    border: none;
    /* Figma: 10px 24px 10px 16px */
    padding: clamp(6px, 0.52vw, 10px) clamp(12px, 1.25vw, 24px) clamp(6px, 0.52vw, 10px) clamp(8px, 0.83vw, 16px);
    /* Figma: 16px → 0.83vw */
    font-size: var(--fs-16);
    line-height: 20px;
    font-weight: 400;
    font-family: inherit;
    color: var(--clr-text-heading);
    background: #F3F3F6;
    transition: box-shadow 0.2s;
}

.cart-field input::placeholder {
    color: var(--clr-text-heading);
    opacity: 0.3;
}

.cart-field input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--clr-green);
}

.cart-field__error {
    font-size: var(--fs-12);
    color: var(--clr-red);
}

.cart-field--error input {
    box-shadow: 0 0 0 2px var(--clr-red);
}

/* --- Step 2: Payment method --- */
.cart-payment {
    display: flex;
    flex-direction: column;
    /* Figma: 24px → 1.25vw */
    gap: clamp(12px, 1.25vw, 24px);
}

.cart-payment__title {
    /* Figma: 28px → 1.46vw */
    font-size: var(--fs-28);
    font-weight: 700;
    line-height: 18px;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
    margin: 0;
}

.cart-payment__subtitle {
    /* Figma: 18px → 0.94vw */
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 18px;
    color: var(--clr-text-muted);
    margin: -8px 0 0 0;
}

.cart-payment__options {
    display: flex;
    flex-direction: column;
    /* Figma: 16px → 0.83vw */
    gap: clamp(8px, 0.83vw, 16px);
}

.cart-payment__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Figma: 10px 24px */
    padding: clamp(6px, 0.52vw, 10px) clamp(12px, 1.25vw, 24px);
    /* Figma: 80px → 4.17vw */
    height: clamp(50px, 4.17vw, 80px);
    background: #F3F3F6;
    /* Figma: r16 → 0.83vw */
    border-radius: var(--r-16);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cart-payment__option--active {
    border-color: var(--clr-green);
}

.cart-payment__option-left {
    display: flex;
    align-items: center;
    /* Figma: 10px → 0.52vw */
    gap: clamp(6px, 0.52vw, 10px);
}

.cart-payment__option-left span {
    /* Figma: 18px → 0.94vw */
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 22px;
    color: var(--clr-text-heading);
}

/* Custom radio */
.cart-payment__option input[type="radio"] {
    display: none;
}

.cart-payment__radio {
    /* Figma: 20px → 1.04vw */
    width: clamp(16px, 1.04vw, 20px);
    height: clamp(16px, 1.04vw, 20px);
    border-radius: 50%;
    border: 5px solid #B2B1C2;
    box-sizing: border-box;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.cart-payment__option--active .cart-payment__radio {
    border-color: var(--clr-green);
}

/* --- Total + Submit — always visible, outside steps --- */
.cart-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Figma: 20px → 1.04vw */
    gap: clamp(12px, 1.04vw, 20px);
    padding: 0 0 clamp(12px, 1.04vw, 20px);
    background: #FFFFFF;
    /* Figma: 32px → 1.67vw */
    margin-top: clamp(16px, 1.67vw, 32px);
}

/* Separator — Figma: 2px solid #F3F3F6 */
.cart-total__separator {
    width: 100%;
    height: 0;
    border-top: 2px solid #F3F3F6;
}

/* Row — Figma Frame 241: space-between */
.cart-total__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    /* Figma: 20px → 1.04vw */
    gap: clamp(10px, 1.04vw, 20px);
}

/* Label — Figma: 14px → 0.73vw */
.cart-total__label {
    font-size: var(--fs-14);
    font-weight: 500;
    line-height: 18px;
    color: #507EB0;
}

/* Amount — Figma: 20px → 1.04vw */
.cart-total__amount {
    font-size: var(--fs-20);
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.0004em;
    color: var(--clr-text-heading);
}

/* Submit button — Figma: 50px height, r100, 18px font */
.cart-submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Figma: 50px → 2.6vw */
    height: clamp(40px, 2.6vw, 50px);
    border-radius: var(--r-pill);
    border: none;
    background: var(--clr-green);
    font-family: inherit;
    /* Figma: 18px → 0.94vw */
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.0004em;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.cart-submit-btn:hover {
    background: var(--clr-green-hover);
}

/* Empty cart */
.cart-empty {
    padding: clamp(16px, 2.08vw, 40px) clamp(16px, 2.5vw, 48px) clamp(48px, 5vw, 80px);
}

/* --- Cart page responsive — all 5 breakpoints --- */
/* clamp() handles fluid scaling; breakpoints only for layout changes */

/* 1440px — clamp values scale naturally, minor tweaks only */
@media (max-width: 1440px) {
    /* Qty controls fine-tune */
    .cart-item__qty .pd-qty__btn {
        width: 48px;
        height: 38px;
    }

    .cart-item__qty .pd-qty__input {
        width: 64px;
        height: 38px;
    }
}

/* 1280px — MacBook 13" — sidebar 260px, content 1020px */
@media (max-width: 1280px) {
    /* Qty controls fine-tune */
    .pd-qty__btn {
        width: 44px;
        height: 34px;
    }

    .cart-item__qty .pd-qty__input {
        width: 56px;
        height: 34px;
        font-size: 0.813rem;
    }
}

/* 991px — sidebar hidden, stack cart layout (Figma mobile cart) */
@media (max-width: 991px) {
    .cart-page {
        padding: 20px 16px;
    }

    .cart-page__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .cart-layout {
        flex-direction: column;
        gap: 24px;
    }

    .cart-checkout {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    /* Cart item — Figma mobile: image left, info right, X top-right absolute */
    .cart-item {
        position: relative;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 16px;
        padding-right: 40px;
        border-radius: 16px;
        min-height: auto;
        align-items: flex-start;
    }

    .cart-item__badge-wrap {
        top: 8px;
        left: 8px;
    }

    .cart-item__img {
        flex: 0 0 100px;
        height: 100px;
        border-radius: 12px;
    }

    .cart-item__info {
        flex: 1;
        min-width: 0;
        padding: 0;
        gap: 4px;
    }

    .cart-item__name {
        font-size: 1rem;
    }

    .cart-item__category {
        font-size: 0.875rem;
    }

    .cart-item__current-price {
        font-size: 1rem;
        font-weight: 700;
    }

    .cart-item__old-price {
        font-size: 0.813rem;
    }

    /* X remove — absolute top-right */
    .cart-item__remove {
        position: absolute;
        top: 16px;
        right: 12px;
        width: 24px;
        height: 24px;
    }

    /* Actions — qty at bottom-right */
    .cart-item__actions {
        position: absolute;
        bottom: 16px;
        right: 12px;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 0;
    }

    .cart-item__qty {
        justify-content: flex-end;
    }

    .pd-qty__btn {
        width: 44px;
        height: 40px;
    }

    .cart-item__qty .pd-qty__input {
        width: 56px;
        height: 40px;
    }

    /* Sticky total bar */
    .cart-total {
        position: sticky;
        bottom: 0;
        z-index: 10;
        padding: 16px 0;
        margin-top: 24px;
    }

    .cart-submit-btn {
        height: 50px;
        font-size: 1rem;
    }

    /* Date picker */
    .cart-toggle { height: 50px; }
    .cart-toggle__btn { height: 42px; font-size: 0.875rem; }
    .cart-date__month-row { height: 50px; }
    .cart-date__month-nav { width: 38px; height: 38px; min-width: 38px; }
    .cart-date__day { width: 56px; height: 64px; }
    .cart-date__nav { width: 36px; height: 36px; }
    .cart-field input { height: 50px; font-size: 1rem; }
    .cart-payment__option { height: 60px; border-radius: 12px; }
}

/* 375px — mobile — full redesign */
@media (max-width: 375px) {
    .cart-page {
        padding: 16px;
    }

    .cart-page__title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .cart-item {
        padding: 12px;
        padding-right: 36px;
        gap: 10px;
        border-radius: 12px;
    }

    .cart-item__img {
        flex: 0 0 80px;
        height: 80px;
        border-radius: 10px;
    }

    .cart-item__name {
        font-size: 0.875rem;
    }

    .cart-item__current-price {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .cart-item__old-price {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .pd-qty__btn {
        width: 44px;
        height: 40px;
    }

    .cart-item__qty .pd-qty__input {
        width: 56px;
        height: 40px;
        font-size: 0.875rem;
    }

    .cart-toggle {
        height: 44px;
    }

    .cart-toggle__btn {
        height: 36px;
        font-size: 0.813rem;
        padding: 8px 16px;
    }

    .cart-date__month-row {
        height: 44px;
    }

    .cart-date__month-nav {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .cart-date__day {
        width: 44px;
        height: 52px;
    }

    .cart-date__nav {
        width: 30px;
        height: 30px;
    }

    .cart-field input {
        height: 44px;
        font-size: 0.875rem;
        padding: 10px 16px;
    }

    .cart-payment__option {
        height: 60px;
        border-radius: 12px;
    }

    .cart-submit-btn {
        height: 44px;
        font-size: 0.875rem;
    }

}

/* ============================================================
   ORDER SUCCESS PAGE
   Figma: Frame 191 — 1536px wide at 344px left (sidebar+pad)
   Card: 358×333px centered, gap 170px from title
   ============================================================ */
.order-success-wrap {
    /* Same horizontal padding as .cart-page */
    padding: clamp(16px, 2.08vw, 40px) clamp(16px, 2.5vw, 48px) clamp(48px, 5vw, 80px);
}

.order-success__page-title {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    margin: 0 0 clamp(48px, 8.85vw, 170px);
    display: block;
}

/* Card: 358×333px — centered in the content area */
.order-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: clamp(280px, 22.375vw, 358px);
    margin: 0 auto;
}

/* Illustration: 250×200px — background.svg layered behind checkmark */
.order-success__illustration {
    position: relative;
    width: clamp(180px, 15.625vw, 250px);
    height: clamp(144px, 12.5vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(16px, 1.25vw, 20px);
}

/* background.svg: decorative pill strip — Figma: top 32% of 200px canvas */
.order-success__bg {
    position: absolute;
    left: 50%;
    top: 32%;
    transform: translateX(-50%);
    width: 86.4%;   /* 216/250 */
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Checkmark SVG sits on top */
.order-success__check-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

/* Text + button block */
.order-success__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 1.25vw, 20px);
    width: 100%;
}

.order-success__texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* "Completed" label */
.order-success__status {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-14);
    font-weight: 500;
    line-height: 17px;
    text-align: center;
    color: #173D69;
    margin: 0;
    width: 100%;
}

/* Description */
.order-success__desc {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-12);
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    color: #6E6D7A;
    margin: 0;
    max-width: 280px;
}

/* Back button: 270×50px, #46C89B, radius 100px, 18px/800 */
.order-success__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(200px, 16.875vw, 270px);
    height: clamp(42px, 3.125vw, 50px);
    padding: 10px 24px;
    background: #46C89B;
    border-radius: var(--r-pill);
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 800;
    line-height: 22px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.2s;
}
.order-success__btn:hover {
    background: #38b589;
    color: #FFFFFF;
    text-decoration: none;
}

/* 1280px */
@media (max-width: 1280px) {
    .order-success-wrap { gap: 80px; }
    .order-success__illustration { width: 180px; }
}

/* 768px */
@media (max-width: 768px) {
    .order-success-wrap {
        gap: 48px;
        padding: 24px 16px 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 120px);
    }
    .order-success__page-title { display: none; }
    .order-success-card { width: 100%; max-width: 358px; }
    .order-success__btn { width: 100%; max-width: 358px; }
}

/* ==========================================================
   BRANDS PAGE — all values use: clamp(min, figma/1920*100 vw, figma)
   ========================================================== */
.brands-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Figma: 40px gap → 40/1920=2.08vw */
    gap: clamp(20px, 2.08vw, 40px);
    /* Figma: container 1536px within 1600px content = 32px side padding */
    padding: clamp(16px, 1.67vw, 32px);
}

.brands-page__title {
    /* Figma: 40px, 700, #1D1B42 */
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    width: 100%;
    margin: 0;
}

/* --- Brand cards grid — Figma: flex row, wrap, gap 16px --- */
.brands-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
    /* Figma: 16px gap → 16/1920=0.83vw */
    gap: clamp(8px, 0.83vw, 16px);
}

/* --- Single brand card — Figma: auto width, 100px height, bordered pill --- */
.brands-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Figma: 0px 22.86px padding → 22.86/1920=1.19vw */
    padding: 0 clamp(12px, 1.19vw, 23px);
    /* Figma: 100px height → 100/1920=5.21vw */
    height: clamp(60px, 5.21vw, 100px);
    background: #FFFFFF;
    /* Figma: 2.86px border → 2.86/1920=0.15vw */
    border: clamp(2px, 0.15vw, 3px) solid #F3F3F6;
    /* Figma: 17.14px border-radius → 17.14/1920=0.89vw */
    border-radius: var(--r-17);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brands-card:hover {
    border-color: #D0D0D6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Brand logo image — auto width, constrained height */
.brands-card__img {
    /* Figma: logos ~56-68px tall within 100px card */
    max-height: clamp(36px, 3.39vw, 65px);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Brands responsive — all 5 breakpoints --- */

/* 768px — tablet — sidebar hidden */
@media (max-width: 768px) {
    .brands-page {
        padding: 20px 16px;
    }

    .brands-page__title {
        font-size: 1.5rem;
    }

    .brands-grid {
        gap: 12px;
    }

    .brands-card {
        height: 70px;
        padding: 0 16px;
    }

    .brands-card__img {
        max-height: 44px;
    }
}

/* 375px — mobile */
@media (max-width: 375px) {
    .brands-page {
        padding: 16px;
        gap: 16px;
    }

    .brands-page__title {
        font-size: 1.25rem;
    }

    .brands-grid {
        gap: 10px;
    }

    .brands-card {
        height: 60px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .brands-card__img {
        max-height: 36px;
    }
}

/* ==========================================================
   ACCOUNT PAGE — unified login/register + dashboard
   ========================================================== */

.account-page {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.56vw, 30px);
    padding: clamp(16px, 1.56vw, 30px) clamp(16px, 2.08vw, 40px);
    max-width: 100%;
}

/* --- Breadcrumb --- */
.account-breadcrumb {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.52vw, 10px);
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.0004em;
    color: #6E6D7A;
}
.account-breadcrumb a {
    color: #6E6D7A;
    text-decoration: none;
}
.account-breadcrumb a:hover { text-decoration: underline; }
.account-breadcrumb svg {
    width: clamp(16px, 1.25vw, 24px);
    height: clamp(16px, 1.25vw, 24px);
    flex-shrink: 0;
}

/* --- Header: title + logout --- */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 1.56vw, 30px);
}
.account-header__title {
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    margin: 0;
}
.account-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 0.31vw, 6px);
    padding: clamp(6px, 0.52vw, 10px) clamp(14px, 1.25vw, 24px);
    height: clamp(40px, 2.6vw, 50px);
    width: clamp(200px, 15.63vw, 300px);
    border: 2px solid #F3F3F6;
    border-radius: var(--r-10);
    background: none;
    cursor: pointer;
    font-size: var(--fs-16);
    font-weight: 500;
    color: #173D69;
    white-space: nowrap;
    flex-shrink: 0;
}
.account-logout-btn svg {
    width: clamp(18px, 1.25vw, 24px);
    height: clamp(18px, 1.25vw, 24px);
}
.account-logout-btn:hover { border-color: #B2B1C2; }

/* --- Guest pill tabs (Register / Sign In) --- */
.account-pill-tabs {
    display: flex;
    padding: clamp(3px, 0.21vw, 4px);
    width: clamp(300px, 25.21vw, 484px);
    height: clamp(40px, 2.6vw, 50px);
    background: #F3F3F6;
    border-radius: var(--r-pill);
    align-self: flex-start;
}
.account-pill-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: var(--r-pill);
    font-size: var(--fs-14);
    font-weight: 500;
    color: #6E6D7A;
    cursor: pointer;
    transition: all 0.2s;
    height: clamp(34px, 2.19vw, 42px);
    text-decoration: none;
}
.account-pill-tab--active {
    background: #173D69;
    color: #FFFFFF;
}

/* --- Logged-in nav tabs (Settings / Orders / Favorites) --- */
.account-nav {
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 2.08vw, 40px);
    padding-bottom: clamp(6px, 0.42vw, 8px);
    border-bottom: 2px solid #F3F3F6;
    position: relative;
}
.account-nav__item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.52vw, 10px);
    text-decoration: none;
    font-size: var(--fs-14);
    font-weight: 500;
    color: #6E6D7A;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.account-nav__item svg {
    width: clamp(18px, 1.25vw, 24px);
    height: clamp(18px, 1.25vw, 24px);
    color: #B2B1C2;
    transition: color 0.2s;
}
.account-nav__item--active {
    color: #173D69;
}
.account-nav__item--active svg {
    color: #1D86DD;
}
.account-nav__line {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: #1D86DD;
    border-radius: 2px;
    transition: left 0.3s, width 0.3s;
}

/* --- Panels (tab content) --- */
.account-panel {
    display: none;
}
.account-panel--active {
    display: block;
}

/* --- Form --- */
.account-form {
    max-width: clamp(600px, 52.08vw, 1000px);
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 2.6vw, 50px);
}
.account-form__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.63vw, 12px);
}
.account-form__grid--narrow {
    max-width: clamp(300px, 25.21vw, 484px);
}
.account-form__row {
    display: flex;
    gap: clamp(16px, 1.67vw, 32px);
}
.account-form__row > .account-form__field {
    flex: 1;
    min-width: 0;
}
.account-form__field {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.31vw, 6px);
}
.account-form__field label {
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 17px;
    color: #6E6D7A;
}
.account-form__field input[type="text"],
.account-form__field input[type="email"],
.account-form__field input[type="tel"],
.account-form__field input[type="password"] {
    width: 100%;
    height: clamp(40px, 2.6vw, 50px);
    padding: clamp(6px, 0.52vw, 10px) clamp(12px, 0.83vw, 16px);
    background: #F3F3F6;
    border: 2px solid transparent;
    border-radius: var(--r-10);
    font-size: var(--fs-16);
    font-weight: 400;
    color: #1D1B42;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.account-form__field input::placeholder {
    color: #1D1B42;
    opacity: 0.3;
}
.account-form__field input:focus {
    border-color: var(--clr-blue-link);
}
.account-form__field input[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
}
.account-form__error {
    font-size: var(--fs-12);
    color: #FF094F;
}

/* Password input wrap with toggle button */
.account-form__input-wrap {
    position: relative;
}
.account-form__input-wrap input {
    padding-right: 44px;
}
.account-form__toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
}

/* Password hints */
.account-form__hints {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.26vw, 5px);
    margin-top: clamp(4px, 0.52vw, 10px);
}
.account-form__hint {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.31vw, 6px);
    font-size: var(--fs-12);
    font-weight: 400;
    line-height: 15px;
    color: #6E6D7A;
}
.account-form__hint svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
/* Hint icon toggle: show X when error, check when valid */
.account-form__hint .hint-icon { display: none; flex-shrink: 0; line-height: 0; }
.account-form__hint--error .hint-icon--x { display: inline-flex; }
.account-form__hint--valid .hint-icon--check { display: inline-flex; }

.account-form__hint--error span:not(.hint-icon) {
    color: #FF094F;
}
.account-form__hint--valid span:not(.hint-icon) {
    color: #6E6D7A;
}

/* Login extras: remember + forgot */
.account-form__login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.account-form__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-14);
    color: #6E6D7A;
    cursor: pointer;
}
.account-form__forgot {
    font-size: var(--fs-14);
    color: var(--clr-blue-link);
    text-decoration: none;
}
.account-form__forgot:hover { text-decoration: underline; }

/* Submit button */
.account-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(200px, 15.63vw, 300px);
    height: clamp(40px, 2.6vw, 50px);
    border: none;
    border-radius: var(--r-pill);
    font-size: var(--fs-18);
    font-weight: 700;
    letter-spacing: -0.0004em;
    color: #FFFFFF;
    cursor: pointer;
    transition: opacity 0.2s;
}
.account-form__submit--green {
    background: var(--clr-green);
}
.account-form__submit--green:hover {
    background: var(--clr-green-hover);
}
.account-form__submit--disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================
   ACCOUNT ORDERS TABLE
   ========================================================== */
.account-orders {
    display: flex;
    flex-direction: column;
    gap: clamp(1px, 0.1vw, 2px);
}
.account-orders__header {
    display: flex;
    align-items: center;
    padding: 0 clamp(14px, 1.25vw, 24px);
    height: clamp(32px, 2.08vw, 40px);
    background: #F3F3F6;
    border-radius: var(--r-pill);
}
.account-orders__header .account-orders__col {
    font-size: var(--fs-14);
    font-weight: 400;
    color: #6E6D7A;
}
.account-orders__row {
    display: flex;
    align-items: center;
    padding: 0 clamp(14px, 1.25vw, 24px);
    height: clamp(50px, 3.65vw, 70px);
    border-bottom: 2px solid #F3F3F6;
}
.account-orders__col {
    flex: 1;
    text-align: center;
}
.account-orders__col--order {
    text-align: left;
}
.account-orders__col--action {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
}
.account-orders__row .account-orders__col--order {
    font-size: var(--fs-18);
    font-weight: 600;
    color: #6E6D7A;
}
.account-orders__row .account-orders__col--date {
    font-size: var(--fs-18);
    font-weight: 600;
    color: #6E6D7A;
}
.account-orders__row .account-orders__col--total {
    font-size: var(--fs-18);
    font-weight: 700;
    color: #1D1B42;
    letter-spacing: -0.0004em;
}

/* Status badges */
.account-orders__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.52vw, 10px) clamp(10px, 0.83vw, 16px);
    height: clamp(26px, 1.77vw, 34px);
    border-radius: var(--r-pill);
    font-size: var(--fs-14);
    font-weight: 400;
    white-space: nowrap;
    box-sizing: border-box;
}
/* Ordered — blue */
.account-orders__badge--ordered {
    background: #DBEBF9;
    border: 1px solid #88C0F2;
    color: #1D86DD;
}
/* Delivered / paid / completed — green */
.account-orders__badge--delivered {
    background: #DAF1E9;
    border: 1px solid #8AE3C4;
    color: #17A977;
}
/* In progress — yellow */
.account-orders__badge--progress {
    background: #FFF2D7;
    border: 1px solid #F7DBA2;
    color: #D99502;
}
/* Rejected / cancelled — red */
.account-orders__badge--rejected {
    background: #FFD7E3;
    border: 1px solid #F2A5BC;
    color: #FF094F;
}

/* View Details button */
.account-orders__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.52vw, 10px) clamp(14px, 1.25vw, 24px);
    height: clamp(36px, 2.6vw, 50px);
    width: clamp(160px, 13.54vw, 260px);
    border: 2px solid rgba(29, 27, 66, 0.2);
    border-radius: var(--r-pill);
    background: none;
    font-size: var(--fs-16);
    font-weight: 500;
    color: #173D69;
    cursor: pointer;
    transition: border-color 0.2s;
}
.account-orders__view-btn:hover {
    border-color: #173D69;
}

/* Mobile-only labels — hidden on desktop */
.account-orders__date-label { display: none; }
.account-orders__mob-label { display: none; }

/* Empty state with illustration */
.account-empty-state {
    display: flex;
    justify-content: center;
    padding: clamp(24px, 2.5vw, 48px) 0;
}

/* Empty state */
.account-orders__empty {
    padding: 40px 0;
    text-align: center;
    color: #6E6D7A;
    font-size: var(--fs-16);
}

/* ==========================================================
   ORDER DETAIL MODAL
   Figma: Left 1006px products + Right 490px summary, gap 40px
   ========================================================== */
.order-detail-modal {
    border: none;
    border-radius: var(--r-24) !important;
    padding: clamp(16px, 2.08vw, 40px);
}
.order-detail-modal .close {
    float: none;
}
.modal-dialog.modal-xl .order-detail-modal {
    max-width: 100%;
}
.order-detail__close {
    position: absolute;
    top: clamp(12px, 1.04vw, 20px);
    right: clamp(12px, 1.04vw, 20px);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
    opacity: 1;
}
.order-detail__close svg {
    display: block;
}
/* Back button */
.order-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #F3F3F6;
    border-radius: var(--r-pill);
    font-size: var(--fs-14);
    font-weight: 500;
    color: #173D69;
    text-decoration: none;
    transition: background 0.2s;
}
.order-detail__back:hover {
    background: #E5E7EB;
    color: #173D69;
    text-decoration: none;
}

.order-detail {
    display: flex;
    gap: clamp(20px, 2.08vw, 40px);
    align-items: flex-start;
}

/* --- Left: Product cards --- */
.order-detail__products {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.25vw, 24px);
    min-width: 0;
}

/* Figma: 1006×200px, bg #FFF, border 2px #F3F3F6, radius 24px */
.order-detail__card {
    display: flex;
    align-items: center;
    padding: clamp(12px, 1.04vw, 20px) clamp(20px, 2.08vw, 40px) clamp(12px, 1.04vw, 20px) clamp(12px, 1.04vw, 20px);
    gap: clamp(20px, 2.08vw, 40px);
    background: #FFFFFF;
    border: 2px solid #F3F3F6;
    border-radius: var(--r-24);
    min-height: clamp(140px, 10.42vw, 200px);
}

/* Figma: 160×160px, radius 13.33px */
.order-detail__img {
    width: clamp(100px, 8.33vw, 160px);
    height: clamp(100px, 8.33vw, 160px);
    flex-shrink: 0;
    border-radius: clamp(8px, 0.69vw, 13px);
    overflow: hidden;
}
.order-detail__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info column */
.order-detail__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 0.42vw, 8px);
    min-width: 0;
    align-self: stretch;
}
.order-detail__info-top {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.63vw, 12px);
}

/* Figma: 28px/400/#1D1B42 */
.order-detail__name {
    margin: 0;
    font-size: var(--fs-28);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -0.0004em;
    color: #1D1B42;
}
.order-detail__name a {
    color: inherit;
    text-decoration: none;
}
.order-detail__name a:hover {
    text-decoration: underline;
}

/* Figma: 18px/400/#507EB0 */
.order-detail__weight {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1;
    color: #507EB0;
}

/* Figma: quantity — label 18px/400/#6E6D7A, value 18px/600/#1D1B42 */
.order-detail__qty {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.42vw, 8px);
}
.order-detail__qty-label {
    font-size: var(--fs-18);
    font-weight: 400;
    color: #6E6D7A;
}
.order-detail__qty-value {
    font-size: var(--fs-18);
    font-weight: 600;
    color: #1D1B42;
}

/* Figma: 24px/700/#1D1B42 */
.order-detail__price {
    font-size: var(--fs-24);
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -0.0004em;
    color: #1D1B42;
}

/* --- Right actions column: wishlist + add --- */
.order-detail__actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    gap: clamp(20px, 2.08vw, 40px);
    flex-shrink: 0;
    width: clamp(160px, 13.54vw, 260px);
}

/* Figma: 40×40px, bg #FFF, radius 6px */
.order-detail__wishlist-btn {
    width: clamp(32px, 2.08vw, 40px);
    height: clamp(32px, 2.08vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: none;
    border-radius: var(--r-6);
    cursor: pointer;
    padding: 4px;
}
.order-detail__wishlist-btn svg {
    width: clamp(20px, 1.25vw, 24px);
    height: clamp(18px, 1.15vw, 22px);
}

/* Figma: 260×50px, bg rgba(70,200,155,0.2), radius 100px */
.order-detail__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 0.52vw, 10px);
    width: 100%;
    height: clamp(36px, 2.6vw, 50px);
    background: rgba(70, 200, 155, 0.2);
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background 0.2s;
}
.order-detail__add-btn span {
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.0004em;
    color: #46C89B;
}
.order-detail__add-btn svg {
    width: 12px;
    height: 12px;
}
.order-detail__add-btn:hover {
    background: rgba(70, 200, 155, 0.35);
}

/* --- Right: Order summary --- */
/* Figma: 490px wide, gap 30px */
.order-detail__summary {
    width: clamp(280px, 25.52vw, 490px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 1.56vw, 30px);
}

/* Figma: 16px/400/#6E6D7A */
.order-detail__date {
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 20px;
    color: #6E6D7A;
}

.order-detail__summary-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.04vw, 20px);
}

.order-detail__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(8px, 0.63vw, 12px);
}

/* Figma: 16px/400/#6E6D7A */
.order-detail__summary-label {
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 20px;
    color: #6E6D7A;
}

/* Figma: 18px/600/#1D1B42 */
.order-detail__summary-value {
    font-size: var(--fs-18);
    font-weight: 600;
    line-height: 22px;
    text-align: right;
    color: #1D1B42;
}

/* Figma: 18px/700/#1D1B42 */
.order-detail__summary-total {
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 20px;
    text-align: right;
    color: #1D1B42;
}

/* --- Order Detail Responsive --- */

/* 991px — stack layout */
@media (max-width: 991px) {
    .order-detail {
        flex-direction: column;
    }
    .order-detail__summary {
        width: 100%;
    }
}

/* 768px — tablet */
@media (max-width: 768px) {
    .order-detail__card {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }
    .order-detail__actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
    }
    .order-detail__add-btn {
        flex: 1;
    }
}

/* 375px — mobile */
@media (max-width: 375px) {
    .order-detail-modal {
        padding: 16px;
    }
    .order-detail__img {
        width: 80px;
        height: 80px;
    }
}

/* ==========================================================
   ACCOUNT FAVORITES
   ========================================================== */
.account-favorites {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.account-favorites__item {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.04vw, 20px);
    padding: clamp(8px, 0.63vw, 12px) 0;
    border-bottom: 2px solid #F3F3F6;
}
.account-favorites__img {
    width: clamp(50px, 3.65vw, 70px);
    height: clamp(50px, 3.65vw, 70px);
    flex-shrink: 0;
}
.account-favorites__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.account-favorites__info {
    flex: 1;
    min-width: 0;
}
.account-favorites__name {
    font-size: var(--fs-16);
    font-weight: 500;
    color: #1D1B42;
    margin: 0 0 4px;
}
.account-favorites__price {
    font-size: var(--fs-18);
    font-weight: 700;
    color: #1D1B42;
}
.account-favorites__remove {
    padding: 8px;
    flex-shrink: 0;
}
.account-favorites__remove svg {
    display: block;
}

/* ==========================================================
   ACCOUNT PAGE — RESPONSIVE
   ========================================================== */

/* 1440px / 1280px — clamp() handles scaling, no overrides needed */

/* 991px — sidebar collapses */
@media (max-width: 991px) {
    .account-page {
        padding: 16px;
    }
    .account-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .account-header__title {
        font-size: 1.5rem;
    }
    /* Logout — full width, centered */
    .account-logout-btn {
        width: 100%;
        justify-content: center;
    }

    /* Tab nav — horizontally scrollable */
    .account-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 20px;
        scrollbar-width: none; /* Firefox */
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav__item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Forms — single column */
    .account-form {
        max-width: 100%;
    }
    .account-form__row {
        flex-direction: column;
        gap: 12px;
    }
    .account-form__grid--narrow {
        max-width: 100%;
    }
    .account-pill-tabs {
        width: 100%;
    }
    .account-form__submit {
        width: 100%;
    }

    /* Orders — card layout */
    .account-orders__header {
        display: none;
    }
    .account-orders__body {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    /* Date label — visible on mobile only */
    .account-orders__date-label {
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: #6E6D7A;
        margin-top: 8px;
    }
    /* Mobile label spans inside rows */
    .account-orders__mob-label {
        display: inline;
        font-size: 14px;
        font-weight: 400;
        color: #6E6D7A;
    }
    .account-orders__row {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
        gap: 8px;
        border: 2px solid #F3F3F6;
        border-radius: 16px;
        border-bottom: 2px solid #F3F3F6;
    }
    .account-orders__col {
        flex: none;
        text-align: left;
        width: auto;
    }
    /* Status on top */
    .account-orders__col--status {
        order: -1;
    }
    /* Hide date column (shown as date-label above card) */
    .account-orders__col--date {
        display: none;
    }
    /* Order # and total as key-value rows */
    .account-orders__col--order {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .account-orders__col--total {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .account-orders__row .account-orders__col--order {
        font-size: 14px;
    }
    .account-orders__row .account-orders__col--total {
        font-size: 14px;
    }
    .account-orders__col--action {
        width: 100%;
        margin-top: 8px;
    }
    .account-orders__view-btn {
        width: 100%;
    }

    /* Order detail — stack, compact */
    .order-detail {
        flex-direction: column-reverse;
    }
    .order-detail__summary {
        width: 100%;
    }
    .order-detail__card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
    }
    .order-detail__card-img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    .order-detail__card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .order-detail__card-info {
        flex: 1;
        min-width: 0;
    }
    .order-detail__card-name {
        font-size: 14px;
    }
    .order-detail__card-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .order-detail__card-add {
        flex: 1;
    }
}

/* ============================================================
   ORDER DETAIL PAGE
   Figma: two-column layout — left: product cards, right: summary
   ============================================================ */
.order-detail {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(20px, 2.08vw, 40px);
    width: 100%;
}

/* Left column: product cards */
.order-detail__products {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 1.25vw, 24px);
    flex: 1;
    min-width: 0;
}

/* Product card */
.order-detail__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: clamp(10px, 1.04vw, 20px) clamp(20px, 2.08vw, 40px) clamp(10px, 1.04vw, 20px) clamp(10px, 1.04vw, 20px);
    gap: clamp(20px, 2.08vw, 40px);
    width: 100%;
    background: #FFFFFF;
    border: 2px solid #F3F3F6;
    border-radius: var(--r-24);
}

/* Card image */
.order-detail__card-img {
    flex-shrink: 0;
    width: clamp(100px, 8.33vw, 160px);
    height: clamp(100px, 8.33vw, 160px);
    border-radius: clamp(8px, 0.69vw, 13px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-detail__card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card info: name + desc + qty + price */
.order-detail__card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(4px, 0.42vw, 8px);
    flex: 1;
    min-width: 0;
    align-self: stretch;
}
.order-detail__card-texts {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.63vw, 12px);
}
.order-detail__card-name {
    font-size: var(--fs-28);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    text-decoration: none;
}
.order-detail__card-name:hover {
    color: #1D86DD;
}
.order-detail__card-desc {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1;
    color: #507EB0;
}
.order-detail__card-qty {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.42vw, 8px);
}
.order-detail__card-qty-label {
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1;
    color: #6E6D7A;
}
.order-detail__card-qty-value {
    font-size: var(--fs-18);
    font-weight: 600;
    line-height: 1.22;
    text-align: right;
    color: #1D1B42;
}
.order-detail__card-price {
    font-size: var(--fs-24);
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -0.0004em;
    color: #1D1B42;
}

/* Card actions: favorite + add to cart */
.order-detail__card-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(20px, 2.08vw, 40px);
    align-self: stretch;
    flex-shrink: 0;
}
.order-detail__card-fav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 2.08vw, 40px);
    height: clamp(30px, 2.08vw, 40px);
    background: #FFFFFF;
    border-radius: var(--r-6);
}
.order-detail__card-fav svg {
    width: 24px;
    height: 22px;
}
.order-detail__card-fav:hover svg path {
    stroke: #F59E0B;
}
.order-detail__card-add {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: clamp(3px, 0.31vw, 6px);
    gap: clamp(5px, 0.52vw, 10px);
    width: clamp(160px, 13.54vw, 260px);
    height: clamp(36px, 2.6vw, 50px);
    background: rgba(70, 200, 155, 0.2);
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: background 0.2s;
}
.order-detail__card-add:hover {
    background: rgba(70, 200, 155, 0.35);
}
.order-detail__card-add span {
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 1.11;
    letter-spacing: -0.0004em;
    color: #46C89B;
}
.order-detail__card-add svg {
    width: 12px;
    height: 12px;
}

/* Right column: order summary */
.order-detail__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 1.56vw, 30px);
    width: clamp(300px, 25.52vw, 490px);
    flex-shrink: 0;
}
.order-detail__date {
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 1.25;
    color: #6E6D7A;
    width: 100%;
}
.order-detail__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1.04vw, 20px);
    width: 100%;
}
.order-detail__meta-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(6px, 0.52vw, 12px);
    width: 100%;
}
.order-detail__meta-label {
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 1.25;
    color: #6E6D7A;
}
.order-detail__meta-value {
    font-size: var(--fs-18);
    font-weight: 600;
    line-height: 1.22;
    text-align: right;
    color: #1D1B42;
}
.order-detail__meta-value--bold {
    font-weight: 700;
    line-height: 1.11;
}

/* Status badges */
.order-detail__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 0.52vw, 10px) clamp(10px, 0.83vw, 16px);
    border-radius: var(--r-pill);
    font-size: var(--fs-14);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}
.order-detail__badge--ordered {
    background: #E8F4FD;
    border: 1px solid #B3D9F2;
    color: #1D86DD;
}
.order-detail__badge--progress {
    background: #FFF2D7;
    border: 1px solid #F7DBA2;
    color: #D99502;
}
.order-detail__badge--delivered {
    background: #E0F5ED;
    border: 1px solid #A8E0C4;
    color: #2E9B63;
}
.order-detail__badge--rejected {
    background: #FFE8EE;
    border: 1px solid #F5A3B5;
    color: #FF094F;
}

/* 375px — mobile order detail fine-tuning */
@media (max-width: 375px) {
    .order-detail__card-img {
        width: 50px;
        height: 50px;
    }
    .order-detail__card-add {
        height: 40px;
        max-width: 100%;
    }
}

/* ============================================================
   ABOUT US PAGE
   Figma: Frame 191 — 1536px at left 344px, gap 20px between
   title/back, gap 80px inside content block.
   ============================================================ */
.about-page {
    padding: clamp(16px, 2.08vw, 40px) clamp(16px, 2.5vw, 48px) clamp(48px, 5vw, 80px);
}

/* Page title — Figma: 40px/700/#1D1B42 */
.about-page__title {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-40);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    margin: 0 0 clamp(12px, 1.04vw, 20px);
}

/* Back pill — Figma: 97×32px, bg #F3F3F6, radius 100px */
.about-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px 4px 10px;
    background: #F3F3F6;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: clamp(16px, 1.04vw, 20px);
}
.about-page__back span {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-16);
    font-weight: 400;
    letter-spacing: -0.0004em;
    color: #6E6D7A;
    line-height: 20px;
}
.about-page__back:hover {
    background: #e6e6ec;
    text-decoration: none;
}

/* Content block — gap 80px between sections */
.about-page__content {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 80px);
}

/* Hero image — Figma: 1536×260, radius 48px */
.about-page__hero {
    width: 100%;
    border-radius: var(--r-48);
    overflow: hidden;
}
.about-page__hero img {
    width: 100%;
    height: clamp(140px, 16.25vw, 260px);
    object-fit: cover;
    display: block;
}

/* Two-column row — Figma: text 760px left, image 574×390 right, gap 80px */
.about-page__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 80px);
}

/* Text column */
.about-page__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.75vw, 60px);
}
.about-page__text p {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-18);
    font-weight: 400;
    line-height: 1.33;
    color: #6E6D7A;
    margin: 0;
}

/* Image column — Figma: 574×390, radius 20px */
.about-page__img {
    flex-shrink: 0;
    width: clamp(260px, 35.875vw, 574px);
}
.about-page__img img {
    width: 100%;
    height: clamp(200px, 24.375vw, 390px);
    object-fit: cover;
    border-radius: var(--r-20);
    display: block;
}

/* Brand / logo section — centered, stacked */
.about-page__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.about-page__logo-img {
    width: clamp(150px, 14.375vw, 230px);
    height: auto;
    object-fit: contain;
    margin-bottom: -12px;
}
.about-page__brand-name {
    font-family: 'Rubik', sans-serif;
    font-size: var(--fs-40);
    font-weight: 800;
    line-height: 24px;
    color: #173D69;
}
.about-page__tagline {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-24);
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: #46C89B;
    margin: clamp(12px, 1vw, 16px) 0 0;
}

/* Buy It Again section */
.about-page__buy-again {
    margin-top: clamp(40px, 5vw, 80px);
}
.about-page__section-title {
    font-family: "Montserrat arm", "Montserrat", sans-serif;
    font-size: var(--fs-32);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.0004em;
    color: #1D1B42;
    margin: 0 0 clamp(16px, 1.875vw, 30px);
}
.about-page__products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.25vw, 20px);
}

/* ── 1280px ── */
@media (max-width: 1280px) {
    .about-page__img { width: 40%; }
    .about-page__products { grid-template-columns: repeat(4, 1fr); }
}

/* ── 991px ── */
@media (max-width: 991px) {
    .about-page__row { flex-direction: column; }
    .about-page__img { width: 100%; }
    .about-page__products { grid-template-columns: repeat(3, 1fr); }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .about-page__products { grid-template-columns: repeat(2, 1fr); }
    .about-page__hero img { height: 160px; }
}

/* ── 375px ── */
@media (max-width: 375px) {
    .about-page__products { grid-template-columns: 1fr; }
}

/* ==========================================================
   MOBILE FILTER BOTTOM SHEET — visible ≤991px only
   Figma: Frame 165 — 390×621, bg #173D69, r20 20 0 0
   ========================================================== */
.mf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
.mf-overlay--active { display: block; }

.mf-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px 24px;
    gap: 24px;
    background: #173D69;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.mf-sheet--active {
    display: flex;
    transform: translateY(0);
}

.mf-handle {
    width: 100px;
    height: 3px;
    background: #2B598A;
    border-radius: 100px;
    flex-shrink: 0;
}

.mf-section { width: 100%; }

.mf-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.mf-section__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mf-section__header-left span {
    font-family: 'Montserrat arm', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.0004em;
    color: #8DCDEA;
}

.mf-section__chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.mf-section--open .mf-section__chevron {
    transform: rotate(180deg);
}

.mf-section__body {
    display: none;
    flex-direction: column;
    width: 100%;
    max-height: 396px;
    overflow-y: auto;
    margin-top: 16px;
}
.mf-section--open .mf-section__body { display: flex; }

.mf-section__body::-webkit-scrollbar { width: 4px; }
.mf-section__body::-webkit-scrollbar-track { background: transparent; }
.mf-section__body::-webkit-scrollbar-thumb { background: #2B598A; border-radius: 4px; }

.mf-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 10px;
    gap: 12px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}
.mf-check-row__label {
    font-family: 'Montserrat arm', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}
.mf-check-row input[type="checkbox"] { display: none; }

.mf-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #507EB0;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mf-check-row input[type="checkbox"]:checked + .mf-checkbox {
    background: #46C89B;
    border-color: #46C89B;
}
.mf-check-row input[type="checkbox"]:checked + .mf-checkbox::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5L4.5 7.5L8 3' stroke='%23173D69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mf-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 10px;
    gap: 12px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}
.mf-radio-row__label {
    font-family: 'Montserrat arm', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}
.mf-radio-row input[type="radio"] { display: none; }

.mf-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #507EB0;
    border-radius: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mf-radio-row input[type="radio"]:checked + .mf-radio {
    border-color: #46C89B;
}
.mf-radio-row input[type="radio"]:checked + .mf-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #46C89B;
    border-radius: 50%;
}

.mf-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.mf-btn {
    flex: 1;
    height: 50px;
    border-radius: 100px;
    font-family: 'Montserrat arm', 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mf-btn--clear {
    background: transparent;
    border: 2px solid #2B598A;
}
.mf-btn--apply {
    background: #46C89B;
    border: none;
}

/* Filter trigger — hidden desktop, shown mobile (inline link style) */
.mf-trigger { display: none; }

@media (max-width: 991px) {
    .mf-trigger {
        display: flex !important;
        align-items: center;
        gap: 6px;
        width: auto;
        height: auto;
        background: none !important;
        border: none !important;
        border-radius: 0;
        font-family: 'Montserrat arm', 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #46C89B !important;
        cursor: pointer;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }
    .pf-selects { display: none !important; }
    .products-filter-bar { justify-content: space-between; }
}
