/* ==========================================================================
   DIDUFHOMESHOP — Storefront Design System
   A modern, professional design system for the customer facing storefront.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --brand-50:  #eefaf1;
    --brand-100: #d5f3de;
    --brand-200: #aee7c1;
    --brand-300: #78d49c;
    --brand-400: #43bb70;
    --brand-500: #17a054;
    --brand-600: #0c8530;
    --brand-700: #0a6a26;
    --brand-800: #08521f;
    --brand-900: #063a17;

    /* Accent (used sparingly for CTAs / highlights) */
    --accent-400: #ffb648;
    --accent-500: #ff9f1c;
    --accent-600: #e8870a;

    /* Neutrals */
    --ink-900: #0d1520;
    --ink-800: #16202e;
    --ink-700: #26313f;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;
    --white:   #ffffff;

    /* Semantic */
    --success: #17a054;
    --warning: #f59e0b;
    --danger:  #e11d48;
    --info:    #0ea5e9;

    /* Typography */
    --font-sans: 'Poppins', 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', 'Poppins', system-ui, sans-serif;

    /* Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --sh-xs: 0 1px 2px rgba(13, 21, 32, .06);
    --sh-sm: 0 2px 8px rgba(13, 21, 32, .06);
    --sh-md: 0 8px 24px rgba(13, 21, 32, .08);
    --sh-lg: 0 18px 44px rgba(13, 21, 32, .12);
    --sh-xl: 0 32px 68px rgba(13, 21, 32, .18);
    --sh-brand: 0 12px 28px rgba(12, 133, 48, .28);

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: .28s;

    /* Layout */
    --header-h: 72px;
    --container: 1280px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--ink-700);
    background: var(--ink-50);
    overflow-x: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.22;
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

::selection { background: var(--brand-200); color: var(--brand-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-100); }
::-webkit-scrollbar-thumb {
    background: var(--ink-300);
    border-radius: var(--r-pill);
    border: 3px solid var(--ink-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container-x {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--flush-top { padding-top: 0; }

.bg-white { background: var(--white); }
.bg-tint { background: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 100%); }

/* Section heading */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.sec-head__text { max-width: 640px; }
.sec-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}
.sec-title {
    font-size: clamp(26px, 3.4vw, 40px);
    margin: 0 0 10px;
}
.sec-sub {
    color: var(--ink-500);
    font-size: 16px;
    margin: 0;
}
.sec-head__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand-700);
    white-space: nowrap;
}
.sec-head__link i { transition: transform var(--dur) var(--ease); }
.sec-head__link:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn-x {
    --btn-bg: var(--brand-600);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                background-color var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    white-space: nowrap;
}
.btn-x:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn-x:active { transform: translateY(0); }
.btn-x:disabled, .btn-x.is-loading { opacity: .7; pointer-events: none; }

.btn-x--primary { background: var(--brand-600); box-shadow: var(--sh-brand); }
.btn-x--primary:hover { background: var(--brand-700); box-shadow: 0 16px 34px rgba(12, 133, 48, .34); }

.btn-x--dark { background: var(--ink-900); box-shadow: var(--sh-md); }
.btn-x--dark:hover { background: var(--ink-800); }

.btn-x--ghost { background: transparent; border-color: var(--ink-200); color: var(--ink-700); }
.btn-x--ghost:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-50); }

.btn-x--light { background: var(--white); color: var(--ink-900); box-shadow: var(--sh-md); }
.btn-x--light:hover { color: var(--brand-700); }

.btn-x--outline-light { background: rgba(255, 255, 255, .12); color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-x--outline-light:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }

.btn-x--accent { background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); box-shadow: 0 12px 26px rgba(255, 159, 28, .35); }
.btn-x--accent:hover { color: var(--white); }

.btn-x--sm { padding: 9px 16px; font-size: 13.5px; border-radius: var(--r-xs); }
.btn-x--lg { padding: 15px 30px; font-size: 16px; border-radius: var(--r-md); }
.btn-x--block { display: flex; width: 100%; }

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--brand-700);
}
.link-arrow i { font-size: .85em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. Top bar
   -------------------------------------------------------------------------- */
.topbar {
    background: var(--ink-900);
    color: var(--ink-300);
    font-size: 13px;
    position: relative;
    z-index: 1030;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 40px;
}
.topbar__list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topbar__list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar__list i { color: var(--brand-400); font-size: 12px; }
.topbar a { color: var(--ink-200); }
.topbar a:hover { color: var(--white); }
.topbar__social { display: flex; gap: 8px; }
.topbar__social a {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.topbar__social a:hover { background: var(--brand-600); transform: translateY(-2px); }

/* Scrolling ticker */
.ticker {
    background: linear-gradient(90deg, var(--brand-700), var(--brand-500), var(--brand-700));
    background-size: 200% 100%;
    animation: tickerBg 9s linear infinite;
    color: var(--white);
    font-size: 13.5px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 1030;
}
.ticker__track {
    display: flex;
    width: max-content;
    gap: 64px;
    padding: 8px 0;
    animation: tickerScroll 32s linear infinite;
    will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker__item i { opacity: .9; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes tickerBg {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-stuck {
    box-shadow: 0 10px 34px rgba(13, 21, 32, .1);
    border-bottom-color: var(--ink-200);
}
.site-header__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--header-h);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo {
    width: 46px; height: 46px;
    border-radius: var(--r-md);
    object-fit: cover;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    padding: 3px;
}
.brand__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    color: var(--ink-900);
    letter-spacing: -.03em;
    line-height: 1.1;
}
.brand__name em {
    font-style: normal;
    color: var(--brand-600);
}
.brand__tag {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-top: 2px;
}

/* Search */
.site-search {
    position: relative;
    flex: 1;
    max-width: 620px;
    margin-left: 8px;
}
.site-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink-50);
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-pill);
    padding: 0 6px 0 18px;
    height: 48px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-search__field:focus-within {
    border-color: var(--brand-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(23, 160, 84, .12);
}
.site-search__field > i { color: var(--ink-400); font-size: 15px; flex-shrink: 0; }
.site-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--ink-900);
    outline: none;
}
.site-search__input::placeholder { color: var(--ink-400); }
.site-search__clear {
    border: 0; background: transparent; cursor: pointer;
    color: var(--ink-400); font-size: 15px; padding: 4px; display: none;
}
.site-search__clear.is-visible { display: inline-flex; }

.site-search__results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 8px;
    max-height: 440px;
    overflow-y: auto;
    display: none;
    z-index: 30;
}
.site-search__results.is-open { display: block; animation: dropIn .22s var(--ease-out); }
.site-search__results.is-empty { padding: 26px 16px; text-align: center; color: var(--ink-500); }

.sr-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-400);
    padding: 10px 12px 6px;
}
.sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    color: var(--ink-700);
    transition: background var(--dur) var(--ease);
}
.sr-item:hover, .sr-item.is-active { background: var(--brand-50); color: var(--ink-900); }
.sr-item img {
    width: 46px; height: 46px;
    border-radius: var(--r-xs);
    object-fit: cover;
    background: var(--ink-100);
    flex-shrink: 0;
}
.sr-item__body { min-width: 0; flex: 1; }
.sr-item__name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-800);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-item__meta { font-size: 12px; color: var(--ink-500); }
.sr-item__price { font-weight: 700; color: var(--brand-700); font-size: 13.5px; white-space: nowrap; }
.sr-foot {
    border-top: 1px solid var(--ink-200);
    margin-top: 6px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: var(--ink-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header nav */
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav__item { position: relative; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink-700);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
.site-nav__link.active { color: var(--brand-700); background: var(--brand-50); }
.site-nav__link i { font-size: 12px; color: var(--ink-400); transition: transform var(--dur) var(--ease); }
.site-nav__link:hover i { color: var(--brand-600); }
.site-nav__item:hover > .site-nav__link i { transform: rotate(180deg); }

/* Dropdown */
.site-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), visibility var(--dur);
    z-index: 30;
}
.site-nav__item:hover > .site-drop,
.site-nav__item:focus-within > .site-drop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.site-drop--left { left: 0; transform: translateX(0) translateY(-8px); }
.site-nav__item:hover > .site-drop--left { transform: translateX(0) translateY(0); }
.site-drop--right {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-8px);
}
.cart-wrap:hover > .site-drop--right,
.cart-wrap:focus-within > .site-drop--right { transform: translateX(0) translateY(0); }

.site-drop__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-700);
}
.site-drop__link i { width: 18px; text-align: center; color: var(--ink-400); font-size: 13px; }
.site-drop__link:hover { background: var(--brand-50); color: var(--brand-700); }
.site-drop__link:hover i { color: var(--brand-600); }
.site-drop__sep { height: 1px; background: var(--ink-200); margin: 6px 4px; }

/* Mega menu */
.site-mega {
    position: fixed;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--ink-200);
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--sh-lg);
    padding: 28px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
    z-index: 1019;
}
.site-nav__item--mega { position: static; }
.site-nav__item--mega:hover > .site-mega,
.site-nav__item--mega:focus-within > .site-mega {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 28px;
}
.mega-col__head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-900);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--brand-100);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mega-col__head i { color: var(--brand-600); }
.mega-col__links { list-style: none; margin: 0; padding: 0; }
.mega-col__links li { margin-bottom: 2px; }
.mega-col__links a {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: var(--r-xs);
    font-size: 14px;
    color: var(--ink-600);
}
.mega-col__links a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ink-300);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
    flex-shrink: 0;
}
.mega-col__links a:hover { background: var(--brand-50); color: var(--brand-700); }
.mega-col__links a:hover::before { background: var(--brand-500); transform: scale(1.5); }
.mega-more { font-size: 13px; font-weight: 700; color: var(--brand-600); margin-top: 8px; display: inline-block; }

.mega-promo {
    border-radius: var(--r-md);
    padding: 22px;
    color: var(--white);
    background: linear-gradient(150deg, var(--brand-700), var(--brand-500) 70%, var(--brand-400));
    box-shadow: var(--sh-brand);
}
.mega-promo h5 { color: var(--white); font-size: 17px; margin-bottom: 6px; }
.mega-promo p { font-size: 13.5px; opacity: .92; margin-bottom: 16px; }

/* Icon buttons */
.icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--ink-200);
    background: var(--white);
    color: var(--ink-700);
    font-size: 17px;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.icon-btn__count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--accent-500);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: grid; place-items: center;
    border: 2px solid var(--white);
    transition: transform var(--dur) var(--ease-out);
}
.icon-btn__count.is-bump { animation: bump .45s var(--ease-out); }
.icon-btn__count[hidden] { display: none; }

@keyframes bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.burger { display: none; }

/* Cart dropdown */
.cart-drop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), visibility var(--dur);
    z-index: 40;
    overflow: hidden;
}
.cart-wrap { position: relative; }
.cart-wrap:hover > .cart-drop,
.cart-wrap:focus-within > .cart-drop {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.cart-drop__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ink-200);
    font-weight: 700;
    color: var(--ink-900);
    font-size: 14.5px;
}
.cart-drop__count { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.cart-drop__body { max-height: 340px; overflow-y: auto; padding: 8px; }
.cart-drop__foot { padding: 14px 18px; border-top: 1px solid var(--ink-200); background: var(--ink-50); }

.mini-line {
    display: flex; align-items: center; gap: 12px;
    padding: 10px;
    border-radius: var(--r-sm);
    transition: background var(--dur) var(--ease);
}
.mini-line:hover { background: var(--ink-50); }
.mini-line.is-going { opacity: 0; transform: translateX(24px); transition: all .28s var(--ease); }
.mini-line img {
    width: 52px; height: 52px; border-radius: var(--r-xs);
    object-fit: cover; background: var(--ink-100); flex-shrink: 0;
}
.mini-line__body { flex: 1; min-width: 0; }
.mini-line__name {
    font-size: 13.5px; font-weight: 600; color: var(--ink-800);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.35;
}
.mini-line__meta { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.mini-line__rm {
    border: 0; background: transparent; cursor: pointer;
    color: var(--ink-400); font-size: 13px; padding: 6px; border-radius: var(--r-xs);
    transition: all var(--dur) var(--ease);
}
.mini-line__rm:hover { background: #fff1f3; color: var(--danger); }

.cart-total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cart-total-row span:first-child { color: var(--ink-600); font-weight: 500; font-size: 14px; }
.cart-total-row strong { font-size: 19px; color: var(--ink-900); font-family: var(--font-display); }
.cart-drop__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cart-empty { text-align: center; padding: 34px 18px; }
.cart-empty__icon {
    width: 68px; height: 68px; margin: 0 auto 14px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ink-100);
    color: var(--ink-300);
    font-size: 26px;
}

/* Mobile nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1040;
    visibility: hidden;
    pointer-events: none;
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__overlay {
    position: absolute; inset: 0;
    background: rgba(13, 21, 32, .55);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    backdrop-filter: blur(3px);
}
.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }
.mobile-nav__panel {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: min(360px, 88vw);
    background: var(--white);
    box-shadow: var(--sh-xl);
    transform: translateX(100%);
    transition: transform .32s var(--ease-out);
    display: flex;
    flex-direction: column;
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ink-200);
}
.mobile-nav__body { flex: 1; overflow-y: auto; padding: 14px; }
.mobile-nav__foot { padding: 16px 20px; border-top: 1px solid var(--ink-200); background: var(--ink-50); }

.m-acc__head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 13px 14px;
    border: 0; background: transparent;
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-800);
    cursor: pointer;
    text-align: left;
}
.m-acc__head:hover { background: var(--ink-50); }
.m-acc__head i.fa-chevron-down { font-size: 12px; color: var(--ink-400); transition: transform var(--dur) var(--ease); }
.m-acc.is-open > .m-acc__head { color: var(--brand-700); }
.m-acc.is-open > .m-acc__head i.fa-chevron-down { transform: rotate(180deg); }
.m-acc__body { display: none; padding: 2px 0 10px 10px; }
.m-acc.is-open .m-acc__body { display: block; }
.m-acc__body a {
    display: block;
    padding: 10px 14px;
    border-left: 2px solid var(--ink-200);
    font-size: 14px;
    color: var(--ink-600);
    border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.m-acc__body a:hover { border-left-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }

/* --------------------------------------------------------------------------
   7. Notice / alerts
   -------------------------------------------------------------------------- */
.notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    border-radius: var(--r-md);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--warning);
    color: #78350f;
    font-size: 14px;
}
.notice-bar__icon { color: var(--warning); font-size: 16px; margin-top: 2px; }
.notice-bar__body { flex: 1; }
.notice-bar__title { font-weight: 700; margin-right: 6px; }
.notice-bar__close {
    border: 0; background: transparent; cursor: pointer;
    color: #b45309; font-size: 16px; padding: 0 2px;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--white); }
.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.hero__slider { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease), visibility .7s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero__media {
    width: 100%;
    height: clamp(300px, 44vw, 520px);
    object-fit: cover;
    display: block;
}
.hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6, 58, 23, .88) 0%, rgba(6, 58, 23, .55) 45%, rgba(6, 58, 23, .05) 100%);
}
.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(24px, 5vw, 64px);
}
.hero__inner { max-width: 560px; color: var(--white); }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(6px);
    padding: 7px 15px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 18px;
}
.hero__title {
    font-size: clamp(28px, 4.6vw, 52px);
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 14px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}
.hero__text {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255, 255, 255, .93);
    margin: 0 0 26px;
    max-width: 46ch;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__dots {
    position: absolute;
    left: clamp(24px, 5vw, 64px);
    bottom: 26px;
    display: flex; gap: 8px; z-index: 3;
}
.hero__dot {
    width: 9px; height: 9px;
    border-radius: var(--r-pill);
    border: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    padding: 0;
    transition: all var(--dur) var(--ease);
}
.hero__dot.is-active { width: 30px; background: var(--white); }

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    color: var(--white);
    display: grid; place-items: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: all var(--dur) var(--ease);
}
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow:hover { background: var(--white); color: var(--ink-900); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.hero__panel { display: flex; flex-direction: column; gap: 16px; }
.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: var(--r-md);
    background: var(--white);
    border: 1px solid var(--ink-200);
    box-shadow: var(--sh-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero-stat:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.hero-stat__icon {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    display: grid; place-items: center;
    font-size: 19px;
    flex-shrink: 0;
}
.hero-stat__val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.hero-stat__lbl { font-size: 13px; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   9. Trust strip
   -------------------------------------------------------------------------- */
.trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--ink-200);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    overflow: hidden;
}
.trust__item {
    display: flex; align-items: center; gap: 14px;
    padding: 22px;
    background: var(--white);
    transition: background var(--dur) var(--ease);
}
.trust__item:hover { background: var(--brand-50); }
.trust__icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    display: grid; place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.trust__title { font-weight: 700; color: var(--ink-900); font-size: 14.5px; font-family: var(--font-sans); }
.trust__text { font-size: 13px; color: var(--ink-500); }

/* --------------------------------------------------------------------------
   10. Category showcase
   -------------------------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.cat-card {
    position: relative;
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--ink-200);
    box-shadow: var(--sh-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); color: inherit; }
.cat-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--brand-50), var(--ink-100));
    display: grid; place-items: center;
    overflow: hidden;
}
.cat-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.cat-card:hover .cat-card__media img { transform: scale(1.07); }
.cat-card__placeholder {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--brand-200);
    user-select: none;
}
.cat-card__count {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(13, 21, 32, .74);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: var(--r-pill);
}
.cat-card__body { padding: 16px 18px 18px; }
.cat-card__name { font-size: 16px; font-weight: 700; color: var(--ink-900); margin: 0 0 4px; font-family: var(--font-sans); }
.cat-card__subs {
    list-style: none; margin: 10px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-card__subs a, .cat-card__subs span {
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--ink-100);
    color: var(--ink-600);
    transition: all var(--dur) var(--ease);
}
.cat-card__subs a:hover { background: var(--brand-600); color: var(--white); }

/* --------------------------------------------------------------------------
   11. Product card / grid
   -------------------------------------------------------------------------- */
.tab-bar {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--ink-100);
    border-radius: var(--r-pill);
    flex-wrap: wrap;
}
.tab-bar__btn {
    border: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-600);
    padding: 10px 20px;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
}
.tab-bar__btn:hover { color: var(--brand-700); }
.tab-bar__btn.is-active {
    background: var(--white);
    color: var(--brand-700);
    box-shadow: var(--sh-sm);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 22px;
}

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.p-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--brand-200);
}
.p-card.is-new { animation: cardIn .5s var(--ease-out) both; }

.p-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--ink-50);
    overflow: hidden;
}
/* Stretched link: the whole tile is clickable without nesting interactive
   elements inside an <a>, which would break the quick-view / wishlist buttons. */
.p-card__media > a {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}
.p-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease-out), opacity var(--dur) var(--ease);
}
.p-card:hover .p-card__media img { transform: scale(1.07); }
.p-card__media img.is-loading { opacity: 0; }

/* Flags and tools must stay clickable above the stretched link. */
.p-card__flags { z-index: 2; pointer-events: none; }
.p-card__tools { z-index: 3; }

.p-card__flags {
    position: absolute;
    top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.flag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--r-xs);
    color: var(--white);
    background: var(--ink-900);
    box-shadow: var(--sh-sm);
}
.flag--featured { background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); }
.flag--new { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.flag--sale { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.flag--out { background: var(--ink-500); }

.p-card__tools {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(12px);
    transition: all var(--dur) var(--ease-out);
}
.p-card:hover .p-card__tools,
.p-card:focus-within .p-card__tools { opacity: 1; transform: translateX(0); }

/* Touch devices have no hover state — keep the tools permanently visible. */
@media (hover: none), (max-width: 991px) {
    .p-card__tools { opacity: 1; transform: none; }
}
.p-tool {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 0;
    display: grid; place-items: center;
    background: var(--white);
    color: var(--ink-700);
    box-shadow: var(--sh-md);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--dur) var(--ease);
}
.p-tool:hover { background: var(--brand-600); color: var(--white); transform: scale(1.08); }
.p-tool.is-on { background: #fff1f3; color: var(--danger); }

.p-card__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
    flex: 1;
}
.p-card__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-600);
}
.p-card__name {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-800);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.p-card__name:hover { color: var(--brand-700); }

.p-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price__now {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -.02em;
}
.p-price__was {
    font-size: 13.5px;
    color: var(--ink-400);
    text-decoration: line-through;
}
.p-price__off {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--danger);
    background: #fff1f3;
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

.p-tier {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.p-tier__btn {
    border: 1px solid var(--ink-200);
    background: var(--white);
    border-radius: var(--r-pill);
    padding: 4px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-500);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    font-family: var(--font-sans);
}
.p-tier__btn:hover { border-color: var(--brand-400); color: var(--brand-700); }
.p-tier__btn.is-active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--white);
}

.p-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.p-stock--in { color: var(--success); }
.p-stock--low { color: var(--warning); }
.p-stock--out { color: var(--danger); }

.p-card__foot {
    display: flex;
    gap: 9px;
    margin-top: auto;
    padding-top: 4px;
}
.qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--white);
}
.qty__btn {
    width: 34px; height: 42px;
    border: 0; background: transparent;
    color: var(--ink-600);
    cursor: pointer;
    font-size: 12px;
    transition: background var(--dur) var(--ease);
}
.qty__btn:hover { background: var(--ink-100); color: var(--brand-700); }
.qty__val {
    width: 34px; height: 42px;
    border: 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-900);
    background: transparent;
    font-family: var(--font-sans);
    -moz-appearance: textfield;
}
.qty__val::-webkit-outer-spin-button, .qty__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__val:focus { outline: none; }

.p-card__add { flex: 1; padding: 0 14px; height: 42px; }
.p-card__add.is-done { background: var(--success); }

/* Skeletons */
.skeleton {
    background: linear-gradient(100deg, var(--ink-100) 30%, #e9eef5 50%, var(--ink-100) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.3s linear infinite;
    border-radius: var(--r-xs);
}
@keyframes shimmer {
    from { background-position: 220% 0; }
    to { background-position: -20% 0; }
}
.sk-card { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ink-200); background: var(--white); }
.sk-card__media { aspect-ratio: 1/1; }
.sk-card__body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }

.load-more-wrap { text-align: center; margin-top: 36px; }

/* --------------------------------------------------------------------------
   12. Registration CTAs
   -------------------------------------------------------------------------- */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.join-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: var(--r-md);
    color: var(--white);
    overflow: hidden;
    min-height: 190px;
    box-shadow: var(--sh-md);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.join-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); color: var(--white); }
.join-card::after {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 170px; height: 170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
.join-card::before {
    content: '';
    position: absolute;
    right: 24px; bottom: -56px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.join-card__icon {
    width: 50px; height: 50px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .24);
    display: grid; place-items: center;
    font-size: 20px;
    position: relative; z-index: 1;
}
.join-card h3 { color: var(--white); font-size: 17px; margin: 0; font-family: var(--font-sans); position: relative; z-index: 1; }
.join-card p { margin: 0; font-size: 13.5px; opacity: .9; position: relative; z-index: 1; }
.join-card .btn-x { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

.join-card--corner { background: linear-gradient(140deg, #0c8530, #17a054 55%, #43bb70); }
.join-card--final  { background: linear-gradient(140deg, #065f46, #0d9488 55%, #22c55e); }
.join-card--market { background: linear-gradient(140deg, #1e3a8a, #2563eb 55%, #38bdf8); }
.join-card--general { background: linear-gradient(140deg, #7c2d12, #ea580c 55%, #fbbf24); }
.join-card--login   { background: linear-gradient(140deg, #1e293b, #334155 55%, #0f766e); }

/* --------------------------------------------------------------------------
   13. Promo band / newsletter / FAQ
   -------------------------------------------------------------------------- */
.promo-band {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    padding: clamp(32px, 5vw, 56px);
    background:
        radial-gradient(1000px 400px at 85% 10%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(120deg, var(--brand-800), var(--brand-600) 55%, var(--brand-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: var(--sh-lg);
}
.promo-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 36px); margin: 0 0 10px; }
.promo-band p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 56ch; }
.promo-band__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.newsletter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 4vw, 46px);
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--ink-200);
    box-shadow: var(--sh-sm);
}
.newsletter h3 { font-size: 24px; margin: 0 0 8px; }
.newsletter p { color: var(--ink-500); margin: 0 0 18px; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form .form-control { min-width: 260px; }
.form-control, .form-select {
    border: 1.5px solid var(--ink-200);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--ink-900);
    background-color: var(--white);
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(23, 160, 84, .12);
}
.form-control::placeholder { color: var(--ink-400); }

.faq { display: grid; gap: 12px; }
.faq__item {
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    background: var(--white);
    overflow: hidden;
}
.faq__q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    border: 0; background: transparent;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-900);
    text-align: left;
    cursor: pointer;
}
.faq__q i { color: var(--brand-600); transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .34s var(--ease); }
.faq__a p { margin: 0; padding: 0 22px 20px; color: var(--ink-600); }
.faq__item.is-open .faq__a { max-height: 320px; }
.faq__item.is-open .faq__q i { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-400);
    padding: clamp(44px, 5vw, 72px) 0 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 44px;
}
.f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-brand__logo {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 4px;
    object-fit: cover;
}
.f-brand__name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--white); }
.f-about { color: var(--ink-400); line-height: 1.75; margin-bottom: 20px; max-width: 40ch; }

.f-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 18px;
    padding-bottom: 10px;
    position: relative;
}
.f-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 2px;
    background: var(--brand-500);
    border-radius: 2px;
}
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li { margin-bottom: 10px; }
.f-links a {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--ink-400);
    font-size: 14px;
}
.f-links a i { width: 14px; color: var(--brand-500); font-size: 11px; transition: transform var(--dur) var(--ease); }
.f-links a:hover { color: var(--white); }
.f-links a:hover i { transform: translateX(3px); }

.f-contact { list-style: none; margin: 0; padding: 0; }
.f-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.f-contact__icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, .06);
    display: grid; place-items: center;
    color: var(--brand-400);
    font-size: 13px;
}
.f-contact a, .f-contact span { color: var(--ink-400); line-height: 1.55; }
.f-contact a:hover { color: var(--white); }

.f-social { display: flex; gap: 10px; flex-wrap: wrap; }
.f-social a {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    display: grid; place-items: center;
    color: var(--ink-300);
    transition: all var(--dur) var(--ease);
}
.f-social a:hover { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); transform: translateY(-3px); }

.f-pay { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.f-pay__item {
    height: 34px;
    padding: 0 12px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, .95);
    color: var(--ink-800);
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .02em;
}
.f-pay__item img { height: 20px; width: auto; object-fit: contain; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.footer-bottom a { color: var(--ink-400); }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   15. Floating UI
   -------------------------------------------------------------------------- */
.fab-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.fab {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 0;
    display: grid; place-items: center;
    color: var(--white);
    font-size: 21px;
    cursor: pointer;
    box-shadow: var(--sh-lg);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.fab:hover { transform: translateY(-4px) scale(1.05); color: var(--white); }
.fab--wa { background: #25d366; }
.fab--tg { background: #229ed9; }
.fab--top { background: var(--ink-900); width: 46px; height: 46px; font-size: 17px; opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }

.fab-hub { position: relative; }
.fab-hub__kids {
    position: absolute;
    right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fab-hub__kids .fab {
    opacity: 0;
    transform: translateY(16px) scale(.7);
    pointer-events: none;
    transition: all .3s var(--ease-out);
}
.fab-hub.is-open .fab-hub__kids .fab {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fab-hub.is-open .fab-hub__btn { transform: rotate(135deg); }
.fab-hub__btn { background: var(--brand-600); transition: transform var(--dur) var(--ease-out); }

/* AI assistant */
.ai-panel {
    position: fixed;
    right: 18px;
    bottom: 92px;
    width: min(370px, calc(100vw - 36px));
    height: min(520px, calc(100vh - 140px));
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    border: 1px solid var(--ink-200);
    display: flex;
    flex-direction: column;
    z-index: 1041;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.96);
    transform-origin: bottom right;
    transition: all .3s var(--ease-out);
    overflow: hidden;
}
.ai-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-panel__head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: var(--white);
}
.ai-panel__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    display: grid; place-items: center;
    font-size: 17px;
}
.ai-panel__title { font-family: var(--font-sans); font-weight: 700; font-size: 15px; color: var(--white); line-height: 1.2; }
.ai-panel__sub { font-size: 11.5px; opacity: .9; }
.ai-panel__close { margin-left: auto; border: 0; background: rgba(255, 255, 255, .16); color: var(--white); width: 32px; height: 32px; border-radius: var(--r-xs); cursor: pointer; transition: background var(--dur) var(--ease); }
.ai-panel__close:hover { background: rgba(255, 255, 255, .3); }
.ai-panel__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--ink-50); }
.ai-msg { max-width: 88%; padding: 11px 15px; border-radius: var(--r-md); font-size: 14px; line-height: 1.6; }
.ai-msg--bot { background: var(--white); border: 1px solid var(--ink-200); color: var(--ink-700); border-bottom-left-radius: var(--r-xs); align-self: flex-start; }
.ai-msg--me { background: var(--brand-600); color: var(--white); border-bottom-right-radius: var(--r-xs); align-self: flex-end; }
.ai-typing { display: flex; gap: 4px; align-self: flex-start; padding: 14px 16px; background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--r-md); border-bottom-left-radius: var(--r-xs); }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-300); animation: bounce 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .18s; }
.ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-panel__foot { padding: 12px 14px; border-top: 1px solid var(--ink-200); display: flex; gap: 9px; background: var(--white); }
.ai-panel__foot .form-control { border-radius: var(--r-pill); }
.ai-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 14px 12px; background: var(--white); }
.ai-quick button {
    border: 1px solid var(--ink-200);
    background: var(--ink-50);
    border-radius: var(--r-pill);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-600);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    font-family: var(--font-sans);
}
.ai-quick button:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }

/* Toasts */
.toast-stack {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
    pointer-events: none;
}
.x-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--white);
    border: 1px solid var(--ink-200);
    border-left: 4px solid var(--info);
    box-shadow: var(--sh-lg);
    pointer-events: auto;
    animation: toastIn .32s var(--ease-out);
}
.x-toast.is-out { animation: toastOut .28s var(--ease) forwards; }
.x-toast--success { border-left-color: var(--success); }
.x-toast--error { border-left-color: var(--danger); }
.x-toast--warning { border-left-color: var(--warning); }
.x-toast__icon { font-size: 17px; line-height: 1.3; flex-shrink: 0; }
.x-toast--success .x-toast__icon { color: var(--success); }
.x-toast--error .x-toast__icon { color: var(--danger); }
.x-toast--warning .x-toast__icon { color: var(--warning); }
.x-toast--info .x-toast__icon { color: var(--info); }
.x-toast__body { flex: 1; font-size: 14px; color: var(--ink-700); font-weight: 500; }
.x-toast__close { border: 0; background: transparent; color: var(--ink-400); cursor: pointer; font-size: 14px; padding: 0 2px; }
.x-toast__close:hover { color: var(--ink-900); }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(28px); } }

/* Quick view modal */
.modal-x .modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-xl); overflow: hidden; }
.modal-x .modal-header { border-bottom: 1px solid var(--ink-200); padding: 16px 20px; }
.modal-x .modal-title { font-family: var(--font-sans); font-weight: 700; font-size: 17px; }
.modal-x .modal-body { padding: 22px; }

/* Page hero (inner pages) */
.page-hero {
    background:
        radial-gradient(900px 340px at 80% -20%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(120deg, var(--brand-800), var(--brand-600) 60%, var(--brand-500));
    color: var(--white);
    padding: clamp(34px, 5vw, 60px) 0;
}
.page-hero h1 { color: var(--white); margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .88); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: var(--white); }
.crumbs i { font-size: 9px; opacity: .6; }
.crumbs span { color: var(--white); font-weight: 600; }

/* Animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
}

@media (max-width: 1199px) {
    .site-search { max-width: 340px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 991px) {
    :root { --header-h: 66px; }
    .topbar__list li:nth-child(n + 3) { display: none; }
    .site-nav { display: none; }
    .burger { display: grid; }
    .site-search { max-width: none; order: 10; flex-basis: 100%; margin: 0; padding-bottom: 12px; }
    .site-header__bar { height: auto; flex-wrap: wrap; padding-top: 10px; }
    .hero__panel { margin-top: 4px; }
    .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .p-card__body { padding: 12px; gap: 7px; }
    .p-card__name { font-size: 13.5px; min-height: 38px; }
    .p-price__now { font-size: 17px; }
    .qty__btn, .qty__val { height: 38px; }
    .qty__btn, .qty__val { width: 30px; }
    .p-card__add { font-size: 13px; padding: 0 8px; }
    .cart-drop { width: calc(100vw - 24px); right: -56px; }
    .fab-stack { right: 12px; bottom: 12px; }
    .join-card { min-height: 0; }
    .toast-stack { left: 12px; right: 12px; max-width: none; }
    .hero__arrow { display: none; }
    .newsletter__form .form-control { min-width: 0; flex: 1; }
}

@media (max-width: 420px) {
    .brand__tag { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
    .topbar, .ticker, .site-header, .fab-stack, .ai-panel, .toast-stack, .site-footer, .mobile-nav { display: none !important; }
    body { background: #fff; }
    .p-card { break-inside: avoid; box-shadow: none; }
}