/* DOSTON Market — Premium design layer */

:root {
    --ink:         #141414;
    --ink-soft:    #3f3f46;
    --ink-muted:   #71717a;
    --canvas:      #f3f2ef;
    --surface:     #ffffff;
    --line:        #e8e6e1;
    --line-soft:   #f0eeea;
    --brand:       #1e40af;
    --brand-dark:  #0f172a;
    --brand-mid:   #1e3a8a;
    --brand-light: #eff6ff;
    --accent:      #ea580c;
    --accent-soft: #fff7ed;
    --success:     #15803d;

    --blue:        var(--brand);
    --blue-dark:   var(--brand-dark);
    --blue-mid:    var(--brand-mid);
    --blue-light:  var(--brand-light);
    --gold:        #b8954a;
    --gold-light:  var(--accent-soft);
    --white:       var(--surface);
    --off-white:   var(--canvas);
    --gray-50:     #f5f4f1;
    --gray-100:    var(--line);
    --gray-400:    var(--ink-muted);
    --gray-600:    var(--ink-soft);
    --gray-800:    var(--ink);
    --red:         #dc2626;
    --red-dark:    #b91c1c;
    --orange:      var(--accent);
    --orange-dark: #c2410c;
    --orange-light:var(--accent-soft);

    --shadow-sm:   0 1px 3px rgba(20, 20, 20, .04);
    --shadow-md:   0 16px 40px rgba(20, 20, 20, .08);
    --shadow-lg:   0 32px 64px rgba(20, 20, 20, .12);
    --shadow-card: 0 2px 16px rgba(20, 20, 20, .05);
    --radius:      18px;
    --radius-sm:   12px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --header-h:    80px;
    --ease:        cubic-bezier(.22, 1, .36, 1);
    --max:         1240px;
    --muted:       var(--ink-muted);
    --page-pad:    clamp(12px, 3.6vw, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scrollbar-gutter: stable;
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 64, 175, .06), transparent 55%),
        var(--canvas);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    overflow-x: hidden;
}

.container, .page-container {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(20, 20, 20, .04);
}

.header-top {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    padding: 8px 0;
    letter-spacing: .02em;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-phone::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.header-phone:hover { opacity: .85; }

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.header-hours {
    color: rgba(255, 255, 255, .55);
    font-weight: 400;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.social-links { display: inline-flex; align-items: center; gap: 6px; }

.social-link {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all .25s var(--ease);
}

.social-link svg { width: 13px; height: 13px; }

.social-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

.footer-brand .social-links { margin-top: 20px; }

.footer .social-link {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    border-radius: 10px;
    width: 36px;
    height: 36px;
}

.footer .social-link svg { width: 15px; height: 15px; }

.footer .social-link:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.header-main {
    padding: 12px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 20px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .2s;
}

.logo:hover { opacity: .88; }

.logo-img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

.logo-icon,
.logo-text,
.logo-name,
.logo-tagline { display: none; }

.search-form {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-width: 0;
}

.search-form-control,
.search-form:not(:has(.search-form-control)) {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    background: var(--gray-50);
    border: 1px solid var(--line);
    border-radius: 100px;
    overflow: hidden;
    transition: all .3s var(--ease);
    box-shadow: inset 0 1px 2px rgba(20, 20, 20, .03);
}

.search-form:has(.search-form-control) {
    display: block;
    overflow: visible;
}

.search-form:focus-within .search-form-control,
.search-form:not(:has(.search-form-control)):focus-within {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, .08);
}

.search-form:has(.search-form-control):focus-within {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.search-form input {
    flex: 1;
    padding: 12px 10px 12px 22px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: .9rem;
    outline: none;
    min-width: 0;
    color: var(--ink);
}

.search-form input::placeholder { color: var(--ink-muted); }

.search-form-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 4px 0 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, .1);
    color: var(--ink-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.search-form-clear[hidden] {
    display: none !important;
}

.search-form-clear:hover,
.search-form-clear:focus-visible {
    background: rgba(15, 23, 42, .16);
    color: var(--ink);
    outline: none;
}

.search-form button[type="submit"],
.search-form .search-form-submit {
    padding: 0 20px;
    margin: 4px;
    margin-left: 0;
    background: var(--ink);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
    min-height: 40px;
    min-width: 44px;
}

.search-form button[type="submit"]:hover,
.search-form .search-form-submit:hover { background: var(--brand); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all .25s var(--ease);
    white-space: nowrap;
}

.header-action:hover {
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.header-action-icon { display: inline-flex; color: var(--ink-muted); }
.header-action-icon svg { width: 17px; height: 17px; stroke-width: 1.75; }

.header-action:hover .header-action-icon { color: var(--ink); }

.header-action-cart {
    position: relative;
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.header-action-cart .header-action-icon { color: #fff; }

.header-action-cart:hover {
    background: var(--brand-mid);
    border-color: var(--brand-mid);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, .25);
}

.header-action-cart:hover .header-action-icon { color: #fff; }

.badge {
    background: var(--accent);
    color: #fff;
    padding: 1px 7px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.header-action-cart .badge {
    background: var(--accent);
    color: #fff;
}

.badge[hidden] {
    display: none !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== NAV ===== */
.nav-menu {
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px;
}

.menu-list > li { position: relative; }

.menu-row { display: flex; align-items: stretch; }

.menu-item.has-submenu .menu-link { flex: 1; }

.menu-list > li > a,
.menu-link {
    display: block;
    padding: 14px 16px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.menu-list > li > a:hover,
.menu-list > li > a.active,
.menu-link:hover,
.menu-link.active { color: var(--ink); }

.menu-list > li > a.active,
.menu-link.active {
    border-bottom-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
}

.menu-link--promo {
    font-weight: 600;
    color: #b45309;
}

.menu-link--promo:hover {
    color: #92400e;
}

.menu-link--promo.active {
    color: #9a3412;
    border-bottom-color: #ea580c;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--ink-muted);
    padding: 0 10px;
    font-size: .8rem;
    cursor: pointer;
    transition: color .2s;
}

.menu-toggle:hover,
.menu-item.open .menu-toggle { color: var(--ink); }

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    min-width: 220px;
    list-style: none;
    z-index: 1000;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    border: 1px solid var(--line);
}

.menu-item:hover .submenu { display: block; }

.submenu li a {
    display: block;
    padding: 10px 14px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all .15s;
}

.submenu li a:hover,
.submenu li a.active {
    background: var(--gray-50);
    color: var(--ink);
}

.submenu-item {
    position: relative;
    list-style: none;
}

.submenu-row {
    display: flex;
    align-items: stretch;
}

.submenu-item.has-children > .submenu-row > a {
    flex: 1;
    min-width: 0;
}

.submenu-toggle {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--ink-muted);
    padding: 0 10px;
    font-size: .75rem;
    cursor: pointer;
    transition: color .2s, transform .2s var(--ease);
}

.submenu-toggle:hover,
.submenu-item.open > .submenu-row .submenu-toggle {
    color: var(--brand);
}

.submenu-item.open > .submenu-row .submenu-toggle {
    transform: rotate(180deg);
}

.submenu--nested {
    display: none;
    position: absolute;
    left: 100%;
    top: -2px;
    min-width: 200px;
    margin: 0 0 0 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.submenu--nested::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
}

@media (min-width: 769px) {
    .menu-item > .submenu {
        margin-top: 6px;
        padding-top: 6px;
    }

    .submenu-item.has-children > .submenu--nested {
        display: none !important;
    }

    .submenu-item.has-children > .submenu-row:hover + .submenu--nested,
    .submenu-item.has-children > .submenu--nested:hover {
        display: block !important;
    }

    .submenu-toggle {
        display: none;
    }
}

.submenu--nested .submenu-item > a,
.submenu--nested .submenu-item > .submenu-row > a {
    padding-left: 12px;
    font-size: .82rem;
}

.submenu-item--leaf > a {
    display: block;
}

/* ===== HERO ===== */
.hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 480px;
    align-items: stretch;
}

.hero__content {
    padding: 56px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 20px;
}

.hero h1,
.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero h1 span,
.hero__title-line,
.hero__title-accent {
    display: block;
}

.hero__title-line {
    color: var(--ink);
    font-weight: 800;
}

.hero h1 span,
.hero__title-accent {
    color: var(--brand);
    font-weight: 700;
}

.hero__phone-icon {
    flex-shrink: 0;
    opacity: .85;
}

.btn-hero-secondary {
    width: auto;
    padding: 15px 28px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .25s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero__desc {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.btn-hero-primary {
    width: auto;
    padding: 15px 32px;
    background: var(--ink);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: none;
    letter-spacing: .01em;
}

.btn-hero-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-hero-secondary:hover {
    border-color: var(--ink);
    background: var(--gray-50);
}

.hero__perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero__perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.hero__perks li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero__visual {
    background: var(--brand-dark);
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    min-height: 100%;
}

.hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(30, 64, 175, .35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 88, 12, .12) 0%, transparent 45%);
    pointer-events: none;
}

.hero__visual::after {
    display: none;
}

.hero__logo-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95) 0%, transparent 55%),
        linear-gradient(160deg, #f8f7f4 0%, #ffffff 45%, #eef2ff 100%);
    padding: 40px 36px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(440px, 92%);
    max-height: min(400px, 72vh);
    object-fit: contain;
    object-position: center;
}

.hero__brand {
    display: none;
}

.hero__brand-logo {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
    object-position: center;
}

/* ===== MAIN / HOME ===== */
.main-content {
    min-height: calc(100dvh - 220px);
}

.main-content--padded { padding: 36px 0 72px; }

.home-page { padding-bottom: 56px; }

.home-brands {
    padding: 8px 0 18px;
}

.home-brands__head {
    margin-bottom: 12px;
}

.home-brands__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.home-brands__viewport {
    overflow: hidden;
    margin: 0 -2px;
    padding: 2px;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.home-brands__viewport:active,
.home-brands__track:active {
    cursor: grabbing;
}

.home-brands__track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.home-brands__track:active {
    cursor: grabbing;
}

.home-brands__item {
    flex: 0 0 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: #fff;
    text-decoration: none;
    box-shadow: 0 1px 8px rgba(15, 23, 42, .05);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.home-brands__item:hover {
    border-color: #c7c7c7;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.home-brands__item img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.home-brands__name {
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    line-height: 1.25;
}

.home-banner-wrap {
    padding-top: 32px;
    margin-bottom: 20px;
}

.home-catalog { display: flex; flex-direction: column; gap: 4px; }

.home-section {
    padding: 40px 0 44px;
    position: relative;
}

.home-section--featured {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, .98) 0%, rgba(239, 246, 255, .55) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: 48px;
    padding-bottom: 52px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.home-catalog .home-section:not(.home-section--featured) {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .5) 48%, transparent 100%);
}

.home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: nowrap;
}

.home-section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-section-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--brand-light) 0%, #dbeafe 100%);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.home-section-eyebrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 100px;
    background: var(--accent-soft);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.home-section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
}

.home-section-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 14px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all .22s var(--ease);
    box-shadow: var(--shadow-sm);
}

.home-section-link-icon {
    transition: transform .22s var(--ease);
}

.home-section-link:hover {
    color: var(--brand);
    border-color: rgba(30, 64, 175, .22);
    background: var(--brand-light);
    transform: translateY(-1px);
}

.home-section-link:hover .home-section-link-icon {
    transform: translateX(2px);
}

.home-section .products-grid {
    gap: 14px;
}

.home-section--products {
    padding-top: 28px;
}

.home-section--products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (min-width: 1200px) {
    .home-section--products .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .home-section--products .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.home-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 8px;
}

.home-load-more {
    min-width: 200px;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 100px;
}

.home-load-more:disabled {
    opacity: .65;
    cursor: wait;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.page-header {
    margin-bottom: 28px;
    padding: 28px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
}

.catalog-sidebar-title {
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.catalog-sidebar-list,
.catalog-sidebar-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-sidebar-sublist {
    display: none;
    margin: 4px 0 10px;
    padding-left: 12px;
    border-left: 2px solid var(--line-soft);
}

.catalog-sidebar-group.open > .catalog-sidebar-sublist {
    display: block;
}

.catalog-sidebar-row {
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.catalog-sidebar-row .catalog-sidebar-link-parent {
    flex: 1;
    min-width: 0;
}

.catalog-sidebar-toggle {
    flex-shrink: 0;
    width: 34px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s, transform .25s var(--ease);
}

.catalog-sidebar-toggle:hover {
    background: var(--gray-50);
    color: var(--ink);
}

.catalog-sidebar-group.open .catalog-sidebar-toggle {
    color: var(--brand);
    transform: rotate(180deg);
}

.catalog-sidebar-group.open .catalog-sidebar-toggle:hover {
    background: var(--brand-light);
}

.catalog-sidebar-link {
    display: block;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.35;
    transition: all .2s var(--ease);
}

.catalog-sidebar-link-parent {
    font-weight: 700;
    color: var(--ink);
}

.catalog-sidebar-link:hover {
    background: var(--gray-50);
    color: var(--ink);
}

.catalog-sidebar-link.is-active {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(30, 64, 175, .12);
}

.catalog-sidebar-link--promo {
    font-weight: 600;
    color: #b45309;
    border-left: 2px solid #f97316;
    padding-left: 8px;
    margin: 2px 0 8px;
}

.catalog-sidebar-link--promo:hover {
    background: rgba(249, 115, 22, .06);
    color: #9a3412;
}

.catalog-sidebar-link--promo.is-active {
    background: rgba(249, 115, 22, .08);
    color: #9a3412;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .15);
}

.catalog-sidebar-group + .catalog-sidebar-group {
    margin-top: 6px;
}

.catalog-sidebar-group--nested {
    margin-top: 2px;
}

.catalog-sidebar-group--nested > .catalog-sidebar-row .catalog-sidebar-link {
    font-size: .86rem;
    font-weight: 500;
}

.catalog-sidebar-group--nested > .catalog-sidebar-sublist {
    padding-left: 10px;
    margin-bottom: 4px;
    border-left-color: rgba(30, 64, 175, .16);
}

.catalog-sidebar-leaf .catalog-sidebar-link {
    font-size: .86rem;
}

.catalog-main {
    min-width: 0;
}

/* ===== CATALOG CATEGORIES (Uzum-style) ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-content--catalog-categories {
    padding-top: 0;
}

.main-content--catalog-products {
    padding-top: 8px;
}

.catalog-products-page {
    width: 100%;
}

.catalog-products-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-products-title {
    margin: 8px 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.catalog-products-count {
    margin: 0;
    font-size: .84rem;
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .main-content--catalog-products {
        padding-top: 0;
    }

    .catalog-products-head {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .catalog-products-title {
        font-size: 1.15rem;
    }

    .catalog-layout .catalog-sidebar {
        display: none;
    }
}

.catalog-categories-page {
    background: var(--surface);
}

/* ===== MARKET BANNER (bosh sahifa) ===== */
.market-banner {
    padding: 20px 16px 16px;
    background: linear-gradient(145deg, var(--brand-dark) 0%, #1e3a8a 55%, #172554 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-page .market-banner:not(.home-banner-carousel__slide) {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, .06);
}

.market-banner__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.market-banner__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.market-banner__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-banner__eyebrow {
    margin: 0 0 4px;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.market-banner__title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
}

.market-banner__lead {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .82);
}

.market-banner__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.market-banner__phone:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
}

.market-banner__perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 14px 0 0;
    padding: 0;
}

.market-banner__perks li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
}

.market-banner__perks li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.home-banners {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== HOME BANNER CAROUSEL (market + aksiya) ===== */
.home-banner-carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, .06);
}

.home-banner-carousel__viewport {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.home-banner-carousel__viewport.is-dragging {
    cursor: grabbing;
}

.home-banner-carousel__track {
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}

.home-banner-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.home-banner-carousel__slide--market.market-banner {
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0;
}

.home-banner-carousel__slide--promo {
    min-height: 168px;
}

.home-banner-carousel__controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.home-banner-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    color: #fff;
    cursor: pointer;
}

.home-banner-carousel__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-banner-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}

.home-banner-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

/* ===== PROMO SLIDE ===== */
.promo-slide {
    padding: 22px 20px 18px;
    color: #fff;
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 45%, #9a3412 100%);
}

.promo-slide--blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #172554 100%);
}

.promo-slide--green {
    background: linear-gradient(135deg, #166534 0%, #16a34a 55%, #14532d 100%);
}

.promo-slide--red {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #7f1d1d 100%);
}

.promo-slide__badge {
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
}

.promo-slide__title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.promo-slide__subtitle {
    margin: 0 0 14px;
    font-size: .88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .9);
    max-width: 36rem;
}

.promo-slide__content {
    position: relative;
    z-index: 1;
}

.promo-slide__cta {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: background .2s ease, transform .2s ease;
}

.promo-slide__cta:hover {
    background: rgba(0, 0, 0, .32);
    transform: translateY(-1px);
}

.product-card-price--promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.product-card-price__current {
    color: #dc2626;
    font-weight: 700;
}

.product-card-price__old {
    font-size: .82em;
    color: var(--ink-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.product-card-promo-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    vertical-align: middle;
}

.product-card-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 6px;
    font-size: .74rem;
    font-weight: 500;
    color: var(--ink-muted);
    line-height: 1.2;
}

.product-card-views__icon {
    flex-shrink: 0;
    opacity: .75;
}

.product-detail-price--promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.product-detail-price__current {
    color: #dc2626;
    font-weight: 700;
}

.product-detail-price__old {
    font-size: .9em;
    color: var(--ink-muted);
    text-decoration: line-through;
}

.catalog-categories-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 10px 16px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-categories-back svg {
    color: var(--ink-muted);
    flex-shrink: 0;
}

.catalog-categories-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-categories-current--root {
    padding: 16px 16px 10px;
}

.catalog-categories-current-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.catalog-categories-current-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.catalog-categories-current--root .catalog-categories-current-title {
    color: var(--ink);
    font-size: 1.25rem;
}

.catalog-categories {
    display: flex;
    flex-direction: column;
}

.catalog-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    text-decoration: none;
    color: var(--ink);
    border: none;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.catalog-category-row:hover,
.catalog-category-row:active {
    background: var(--gray-50);
}

.catalog-category-row--all {
    font-weight: 700;
    color: var(--ink);
}

.catalog-category-row--all .catalog-category-name {
    font-weight: 700;
}

.catalog-category-row--promo {
    background: rgba(249, 115, 22, .04);
    border-left: 3px solid #f97316;
}

.catalog-category-row--promo .catalog-category-name {
    font-weight: 600;
    color: #9a3412;
}

.catalog-category-icon--promo {
    color: #ea580c;
    background: rgba(249, 115, 22, .1);
    border-radius: 8px;
}

.catalog-category-row--root {
    gap: 14px;
}

.catalog-category-row--sub {
    justify-content: space-between;
    gap: 16px;
}

.catalog-category-row--sub .catalog-category-name {
    font-size: .94rem;
    font-weight: 400;
    color: var(--ink);
}

.catalog-category-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
}

.catalog-category-name {
    flex: 1;
    min-width: 0;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
}

.catalog-category-arrow {
    flex-shrink: 0;
    color: var(--ink-muted);
    opacity: .45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-category-group.open .catalog-category-arrow--down {
    transform: rotate(180deg);
}

.catalog-category-arrow--down {
    transition: transform .2s var(--ease);
}

.catalog-category-sublist {
    display: block;
    background: #fafafa;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-category-subitem {
    display: block;
    padding: 12px 16px 12px 28px;
    font-size: .9rem;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
}

.catalog-category-subitem:last-child {
    border-bottom: none;
}

.catalog-category-subitem:hover,
.catalog-category-subitem:active {
    background: var(--gray-50);
    color: var(--ink);
}

.catalog-category-subitem--all {
    font-weight: 600;
    color: var(--ink);
}

@media (min-width: 769px) {
    .catalog-view-mobile {
        display: none !important;
    }

    .catalog-view-desktop {
        padding: 36px 0 72px;
    }

    .catalog-view-desktop__inner {
        width: 100%;
    }

    .main-content--catalog-categories {
        padding: 36px 0 72px;
    }

    .catalog-categories-page {
        max-width: var(--max);
        margin: 0 auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        min-height: auto;
        box-shadow: var(--shadow-sm);
    }

    .market-banner {
        padding: 28px 24px 22px;
    }

    .market-banner__logo-wrap {
        width: 96px;
        height: 96px;
        border-radius: 18px;
        padding: 8px;
    }

    .market-banner__title {
        font-size: 1.55rem;
    }

    .market-banner__lead {
        font-size: .88rem;
    }

    .market-banner__phone {
        font-size: .9rem;
        padding: 9px 14px;
    }

    .catalog-categories-back {
        padding: 14px 20px;
    }

    .catalog-categories-current {
        padding: 16px 20px 14px;
    }

    .catalog-category-row {
        padding: 16px 20px;
    }

    .catalog-category-subitem {
        padding-left: 36px;
    }
}

@media (max-width: 768px) {
    .catalog-view-desktop {
        display: none !important;
    }

    .main-content--catalog-categories {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .main-content--catalog-products {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .catalog-view-mobile {
        display: block;
    }

    .catalog-categories-page {
        min-height: auto;
    }

    .catalog-categories .catalog-category-row:first-child {
        border-top: none;
    }

    .main-content--catalog-categories .page-container {
        padding: 0;
    }
}

.catalog-sections {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.catalog-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.catalog-section-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.catalog-section-count {
    font-size: .82rem;
    color: var(--ink-muted);
    font-weight: 600;
    white-space: nowrap;
}

.page-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--ink-muted);
    font-size: .95rem;
    font-weight: 400;
}

.section-label, .home-section-eyebrow.page-eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
    display: block;
}

/* ===== PRODUCT CARD ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--surface);
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
    overflow: hidden;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}

.product-image {
    aspect-ratio: 1;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    margin: 0;
    border-radius: 0;
    position: relative;
    width: 100%;
}

.product-image-wrap {
    position: relative;
    width: 100%;
}

.product-card-share,
.product-image-wrap .product-share-btn--icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    transition: transform .45s var(--ease);
}

.product-image--carousel {
    display: block;
    cursor: grab;
}

.product-image--carousel:active {
    cursor: grabbing;
}

.product-card-slides {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
}

.product-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
}

.product-card-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.product-card:hover .product-image:not(.product-image--carousel) img { transform: scale(1.03); }

.no-image { color: var(--ink-muted); font-size: 2rem; opacity: .4; }

.product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.product-card-price {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
    line-height: 1.15;
}

.product-card-desc {
    margin: 0;
    font-size: .78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 2.2em;
}

.product-card-desc a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color .2s;
}

.product-card-desc a:hover { color: var(--brand); }

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding-top: 2px;
}

.product-card-btn--detail {
    background: #fff;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    text-decoration: none;
}

.product-card-btn--detail:hover {
    background: var(--gray-50);
    color: var(--ink);
    border-color: var(--ink-muted);
    transform: none;
}

.product-card-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: .76rem;
    font-weight: 700;
    border-radius: 10px;
    gap: 6px;
}

.product-card-btn.btn-primary {
    background: #7000ff;
    color: #fff;
}

.product-card-btn.btn-primary:hover {
    background: #5c00d4;
    transform: none;
    box-shadow: none;
}

.product-card-btn.btn-in-cart {
    background: #f3e8ff;
    color: #7000ff;
    border: 1px solid rgba(112, 0, 255, .18);
}

.product-card-btn.btn-in-cart:hover {
    background: #7000ff;
    color: #fff;
    border-color: #7000ff;
}

.product-card-btn__icon {
    flex-shrink: 0;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--line);
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 30px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
    padding: 0;
}

.cart-qty-btn:hover {
    background: var(--line-soft);
}

.cart-qty-input {
    width: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    outline: none;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty--lg .cart-qty-btn {
    width: 44px;
    height: 48px;
    font-size: 1.2rem;
}

.cart-qty--lg .cart-qty-input {
    width: 56px;
    font-size: 1rem;
}

.cart-qty--lg {
    border-radius: var(--radius-sm);
}

.product-add-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.product-add-row .btn {
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}

.product-detail-info .product-add-row .btn {
    max-width: none;
}

/* ===== BUTTONS ===== */
.btn {
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    transition: all .25s var(--ease);
    letter-spacing: .01em;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-in-cart {
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid rgba(30, 64, 175, .2);
    box-shadow: none;
}

.btn-in-cart:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading:disabled {
    opacity: 1;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
}

.btn-in-cart.is-loading::after {
    border-color: rgba(30, 64, 175, 0.2);
    border-top-color: var(--brand);
}

.product-card .btn.is-loading::after {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--gray-50);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .92);
    margin-top: 64px;
}

@media (min-width: 769px) {
    .footer.footer--compact-mobile {
        background: var(--brand-dark);
        color: rgba(255, 255, 255, .92);
        margin-top: 64px;
        padding-bottom: 0;
    }

    .footer.footer--compact-mobile::before {
        display: block;
    }

    .footer.footer--compact-mobile .footer-mobile-wrap {
        display: none !important;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding: 64px 24px 52px;
}

.footer-col h4 {
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(1.05);
}

.footer-logo-icon,
.footer-logo strong,
.footer-logo small { display: none; }

.footer-brand p {
    line-height: 1.75;
    font-size: .9rem;
    color: rgba(255, 255, 255, .88);
    max-width: 300px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.footer-links a:hover,
.footer-links a.is-active {
    color: #fff;
}

.footer-links a.is-active {
    font-weight: 600;
}

.footer-contact { list-style: none; }

.footer-contact li { margin-bottom: 16px; }

.footer-contact li small {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 4px;
}

.footer-contact li a,
.footer-contact li span {
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
}

.footer-contact li a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-bottom p {
    font-size: .8rem;
    color: rgba(255, 255, 255, .72);
    letter-spacing: .02em;
}

.contact-telegram-cta {
    margin: 0 0 14px;
}

.contact-telegram-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.contact-telegram-cta a:hover {
    background: rgba(37, 99, 235, .14);
    color: #1d4ed8;
}

.product-detail-info .contact-telegram-cta {
    margin: 0 0 16px;
}

.footer-brand .contact-telegram-cta {
    margin: 12px 0 14px;
}

.footer-brand .contact-telegram-cta a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}

.footer-brand .contact-telegram-cta a:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.footer .social-link {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.footer .social-link:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.account-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 14px;
    letter-spacing: -.02em;
}

.account-orders {
    margin-top: 8px;
}

.account-verify-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 20px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.account-verify-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.account-verify-step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.account-verify-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .76rem;
    font-weight: 800;
    background: var(--gray-50);
    color: var(--ink-muted);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.account-verify-step.is-active .account-verify-step-num,
.account-verify-step.is-done .account-verify-step-num {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.account-verify-step-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-muted);
    white-space: nowrap;
}

.account-verify-step.is-active .account-verify-step-label {
    color: var(--ink);
}

.account-verify-step-line {
    flex: 0 0 18px;
    height: 1px;
    background: var(--line);
}

.account-verify-panel {
    display: none;
}

.account-verify-panel.is-active {
    display: block;
}

.account-verify-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.account-verify-lead {
    font-size: .86rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 18px;
}

.account-field-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.account-phone-input {
    margin-bottom: 16px;
}

.account-verify-btn,
.account-verify-btn-secondary {
    width: 100%;
}

.account-verify-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.account-verify-actions--phone {
    margin-top: 18px;
}

.otp-code-box {
    margin-bottom: 8px;
}

.otp-input--large {
    width: 100%;
    font-size: 1.35rem;
    letter-spacing: .28em;
    text-align: center;
    padding: 14px 16px;
}

.verify-modal {
    max-width: 420px;
    text-align: center;
}

.verify-modal-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.verify-modal-lead {
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 8px;
}

.verify-modal-phone {
    font-size: .9rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 18px;
}

.verify-modal-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.order-card.status-pending_verify { border-left-color: var(--ink-muted); }

.status-badge.status-pending_verify {
    background: var(--gray-50);
    color: var(--ink-soft);
}

.main-content--account {
    padding-bottom: 24px;
}

@media (max-width: 768px) {
    .footer:not(.footer--compact-mobile) {
        display: none;
    }

    .footer.footer--compact-mobile {
        display: block;
        background: #f4f4f6;
        color: var(--ink);
        margin-top: 20px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .footer.footer--compact-mobile::before {
        display: none;
    }

    .footer.footer--compact-mobile .footer-desktop-wrap {
        display: none;
    }

    .main-content--account {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .home-page {
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }
}

/* ===== MOBILE FOOTER PANEL (bosh sahifa, kabinet) ===== */
.footer-mobile-panel {
    padding: 0 0 8px;
}

.footer-accordion {
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

.footer-accordion__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.footer-accordion__summary::-webkit-details-marker {
    display: none;
}

.footer-accordion__summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
    flex-shrink: 0;
    margin-top: -3px;
}

.footer-accordion[open] .footer-accordion__summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.footer-accordion__body {
    padding: 0 16px 14px;
    font-size: .78rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.footer-accordion__body p {
    margin: 0 0 10px;
}

.footer-accordion__body p:last-child {
    margin-bottom: 0;
}

.footer-faq strong {
    color: var(--ink);
    font-weight: 700;
}

.footer-mobile-panel .social-links {
    margin-top: 4px;
    gap: 10px;
}

.footer-mobile-panel .social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gray-50);
    border: 1px solid var(--line);
    color: var(--ink);
}

.footer-mobile-panel .social-link:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.footer-mobile-legal {
    padding: 16px 16px 8px;
    text-align: center;
}

.footer-mobile-legal p {
    margin: 0 0 8px;
    font-size: .68rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.footer-mobile-legal__org {
    font-weight: 600;
    color: var(--ink-soft);
}

.footer-mobile-legal__copy {
    margin-bottom: 0 !important;
}

.footer-legal-line {
    margin: 4px 0 0;
    font-size: .72rem;
    color: rgba(255, 255, 255, .72);
}

.delivery-notice {
    margin: 0;
    padding: 10px 14px;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--ink-muted);
    background: #f8fafc;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.catalog-categories-note {
    padding: 10px 12px 14px;
    background: var(--surface);
}

.catalog-categories-note .delivery-notice {
    font-size: .74rem;
    padding: 8px 12px;
    text-align: center;
}

.page-contact-bar {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.page-contact-bar .contact-telegram-cta {
    margin-bottom: 12px;
}

.page-contact-bar .social-links {
    justify-content: center;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 250;
        min-height: 60px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 20px rgba(20, 20, 20, .06);
    }

    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 4px 2px;
        text-decoration: none;
        color: var(--ink-muted);
        border-radius: 12px;
        transition: color .2s var(--ease);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav__item.is-active {
        color: var(--brand);
    }

    .mobile-bottom-nav__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
    }

    .mobile-bottom-nav__icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon svg {
        stroke-width: 2.1;
    }

    .mobile-bottom-nav__label {
        font-size: .62rem;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
        font-weight: 600;
    }

    .mobile-bottom-nav__badge {
        position: absolute;
        top: -4px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: .58rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        border: 2px solid var(--surface);
        box-sizing: border-box;
    }

    body:has(.mobile-bottom-nav) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body:has(.mobile-bottom-nav):has(.cart-sticky-bar:not([hidden])),
    body:has(.mobile-bottom-nav):has(.checkout-sticky-bar),
    body:has(.mobile-bottom-nav):has(.product-sticky-bar),
    body:has(.mobile-bottom-nav):has(.mobile-quick-order) {
        padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    }

    .main-content--cart {
        padding-bottom: 8px;
    }

    .cart-page-head {
        margin-bottom: 14px;
    }

    .cart-page-title {
        margin: 0;
    }
}

/* ===== MOBILE FAST UX ===== */
.u-mobile-only { display: none; }
.u-desktop-only { display: block; }

.mobile-quick-order {
    display: none;
}

.cart-sticky-bar,
.product-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .u-mobile-only { display: block; }
    .u-desktop-only { display: none !important; }

    .header-top { display: none; }

    .page-subtitle { display: none; }

    .page-header--compact {
        margin-bottom: 12px;
        padding: 14px 16px;
    }

    .page-header--compact .page-eyebrow { display: none; }
    .page-header--compact .page-title {
        font-size: 1.2rem;
        margin: 0;
    }

    .home-banner-wrap {
        padding-top: 12px;
        margin-bottom: 8px;
    }

    .home-page { padding-bottom: 40px; }

    .home-section-head .home-section-link {
        display: inline-flex;
        padding: 7px 10px;
    }

    .home-section-head .home-section-link-text {
        display: none;
    }

    .home-section-head .home-section-link-icon {
        margin: 0;
    }

    .catalog-sidebar {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 12px;
    }

    .catalog-layout .catalog-sidebar {
        display: none;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-form-wrap { order: 1 !important; }
    .checkout-summary {
        order: 2 !important;
        padding: 10px 12px !important;
    }

    .main-content--checkout .checkout-page {
        max-width: none;
    }

    .main-content--checkout .checkout-page-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 8px;
        padding: 10px 12px;
        border-radius: var(--radius);
    }

    .main-content--checkout .checkout-page-head .checkout-back {
        margin: 0;
        padding: 5px 10px;
        font-size: .72rem;
    }

    .checkout-page-title {
        width: 100%;
        font-size: 1rem;
        margin: 0;
        line-height: 1.2;
    }

    .checkout-form {
        padding: 12px 14px !important;
        border-radius: var(--radius);
    }

    .main-content--checkout .form-group {
        margin-bottom: 10px;
    }

    .main-content--checkout .form-group label {
        margin-bottom: 4px;
        font-size: .72rem;
    }

    .main-content--checkout .form-group input,
    .main-content--checkout .form-group select,
    .main-content--checkout .form-group textarea {
        padding: 9px 10px;
        font-size: .86rem;
        border-radius: 10px;
    }

    .main-content--checkout .address-fields {
        margin-bottom: 10px;
    }

    .main-content--checkout .address-fields legend {
        margin-bottom: 8px;
        padding-bottom: 6px;
        font-size: .78rem;
    }

    .main-content--checkout .phone-prefix {
        padding: 9px 10px;
        font-size: .78rem;
    }

    .main-content--checkout .phone-input-group input {
        font-size: .86rem !important;
        padding: 9px 10px !important;
    }

    .main-content--checkout .form-hint {
        margin-top: 4px;
        font-size: .66rem;
        line-height: 1.35;
    }

    #promoBlock {
        margin-top: 2px;
        padding-top: 10px;
        border-top: 1px dashed var(--line);
    }

    .main-content--checkout .promo-block {
        display: block !important;
        margin: 8px 0 2px;
    }

    .main-content--checkout .promo-toggle {
        gap: 8px;
    }

    .main-content--checkout .promo-toggle-text {
        font-size: .76rem;
    }

    .main-content--checkout .promo-check {
        width: 16px;
        height: 16px;
    }

    .main-content--checkout .promo-input {
        padding: 9px 10px;
        font-size: .82rem;
    }

    .main-content--checkout .promo-apply-btn {
        padding: 9px 12px !important;
        font-size: .76rem !important;
    }

    .main-content--checkout .checkout-order-details > summary {
        padding: 8px 10px;
    }

    .main-content--checkout .checkout-order-summary-text strong {
        font-size: .78rem;
    }

    .main-content--checkout .checkout-order-summary-total {
        font-size: .82rem;
    }

    .checkout-summary-totals,
    .summary-note {
        display: none !important;
    }

    .checkout-sticky-bar {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 260;
        padding: 8px 12px;
        gap: 10px;
    }

    .checkout-sticky-label {
        font-size: .62rem;
    }

    .checkout-sticky-total strong {
        font-size: .9rem;
    }

    .checkout-sticky-btn {
        min-width: 0 !important;
        max-width: 52%;
        padding: 10px 12px !important;
        font-size: .76rem !important;
        font-weight: 700 !important;
    }

    .main-content--checkout {
        padding: 8px 0 calc(72px + 60px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .cart-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 245;
        padding: 10px 16px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(20, 20, 20, .08);
    }

    .cart-sticky-label {
        font-size: .68rem;
        color: var(--ink-muted);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .cart-sticky-total {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-sticky-total strong {
        font-size: clamp(.88rem, 3.8vw, 1rem);
        color: var(--ink);
        white-space: nowrap;
        line-height: 1.2;
    }

    .cart-sticky-btn {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 56%;
        padding: 12px 14px !important;
        font-size: .84rem !important;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .main-content--product {
        padding-top: 0;
        padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
        background: #f3f2ef;
    }

    .main-content--product > .product-detail {
        background: transparent;
    }

    .product-detail {
        padding: 0 !important;
        gap: 0 !important;
        border: none;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        grid-template-columns: 1fr;
    }

    .product-detail-gallery {
        position: relative;
        background: #f5f5f7;
    }

    .product-detail-gallery__stage {
        display: flex;
        flex-direction: column;
        background: #f5f5f7;
    }

    /* 1000x1000 — Uzum uslubi: to'liq kenglik, kvadrat */
    .product-gallery-viewport {
        width: 100%;
        aspect-ratio: 1;
        height: auto;
        max-height: none;
        background: #f5f5f7;
        border: none;
        border-radius: 0;
        box-shadow: none;
        cursor: zoom-in;
    }

    .product-gallery-slide {
        background: #f5f5f7;
    }

    .product-gallery-slide img {
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 0;
        object-fit: contain;
        object-position: center;
        background: #f5f5f7;
    }

    .product-gallery-progress {
        bottom: 0;
        height: 3px;
        background: rgba(15, 23, 42, .08);
    }

    .product-gallery-counter {
        bottom: 12px;
        right: 12px;
        font-size: .68rem;
        padding: 5px 10px;
        border-radius: 8px;
        background: rgba(15, 23, 42, .55);
    }

    .product-gallery-thumbs {
        padding: 10px 12px 12px;
        gap: 8px;
        background: #f5f5f7;
        border-top: none;
    }

    .product-gallery-thumb {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        background: #fff;
        border: 1.5px solid transparent;
        box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
    }

    .product-gallery-thumb.is-active {
        border-color: var(--brand);
    }

    .product-gallery-thumb img {
        object-fit: contain;
        padding: 0;
        box-sizing: border-box;
    }

    .product-detail-gallery-actions .product-share-btn--icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, .96);
        border: none;
        box-shadow: 0 4px 16px rgba(15, 23, 42, .14);
    }

    .no-image.large {
        width: 100%;
        aspect-ratio: 1;
        height: auto;
        font-size: 3rem;
        background: #f5f5f7;
    }

    body.product-lightbox-open {
        overflow: hidden;
    }

    .product-image-lightbox {
        position: fixed;
        inset: 0;
        z-index: 1600;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 12px 24px;
        background: rgba(8, 12, 20, .96);
    }

    .product-image-lightbox[hidden] {
        display: none !important;
    }

    .product-image-lightbox__close {
        position: absolute;
        top: calc(10px + env(safe-area-inset-top, 0px));
        right: 10px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        cursor: pointer;
    }

    .product-image-lightbox__stage {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image-lightbox__img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
    }

    .product-image-lightbox__counter {
        position: absolute;
        top: calc(16px + env(safe-area-inset-top, 0px));
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        padding: 5px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        font-size: .74rem;
        font-weight: 600;
    }

    .product-image-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        cursor: pointer;
    }

    .product-image-lightbox__nav--prev {
        left: 8px;
    }

    .product-image-lightbox__nav--next {
        right: 8px;
    }

    .product-detail-info {
        position: relative;
        z-index: 2;
        margin-top: -16px;
        padding: 20px 16px 22px;
        border-radius: 20px 20px 0 0;
        background: var(--surface);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .04);
    }

    .product-detail-category {
        margin-bottom: 8px;
        font-size: .68rem;
        padding: 5px 10px;
    }

    .product-detail-title {
        font-size: 1.12rem;
        margin: 0 0 10px;
        line-height: 1.32;
        letter-spacing: -.02em;
    }

    .product-detail-price {
        font-size: 1.5rem;
        letter-spacing: -.03em;
    }

    .product-detail-meta {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line-soft);
    }

    .product-detail-stats {
        margin-bottom: 10px;
    }

    .product-detail-orders {
        font-size: .78rem;
        padding: 5px 9px;
    }

    .product-variants {
        margin-bottom: 12px;
    }

    .product-variants__label {
        font-size: .84rem;
    }

    .product-variant-chip {
        padding: 8px 12px;
        font-size: .84rem;
    }

    .product-detail-note {
        margin-bottom: 12px;
        padding: 0;
        font-size: .74rem;
        border-radius: 0;
        background: transparent;
        border: none;
        color: var(--ink-muted);
    }

    .product-detail-desc {
        margin-bottom: 14px;
        padding-top: 0;
        border-top: none;
    }

    .product-detail-desc p,
    .product-detail-desc__content {
        font-size: .86rem;
        line-height: 1.65;
    }

    .product-detail-desc__title {
        margin-bottom: 6px;
    }

    .product-detail-contact {
        margin-top: 0;
    }

    .product-detail-contact .contact-telegram-cta {
        margin: 0 0 0;
    }

    .product-detail-contact .contact-telegram-cta a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        padding: 11px 14px;
        border-radius: 12px;
        font-size: .84rem;
        border: none;
        background: var(--brand-light);
    }

    .product-detail-related {
        margin-top: 0;
        padding: 8px 12px calc(20px + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
    }

    .main-content--product .recommended-section {
        margin-top: 0;
        padding: 20px 0 4px;
        border-top: 1px solid var(--line-soft);
    }

    .main-content--product .recommended-section:first-of-type {
        border-top: none;
        padding-top: 12px;
    }

    .main-content--product .recommended-title {
        font-size: .95rem;
        margin-bottom: 10px;
        padding: 0;
        font-weight: 700;
    }

    .main-content--product .recommended-title::before {
        width: 3px;
        height: 14px;
    }

    .main-content--product .products-grid {
        gap: 10px;
    }

    .main-content--product .product-card {
        border-radius: 12px;
        border: 1px solid var(--line-soft);
        box-shadow: none;
        background: var(--surface);
    }

    .main-content--product .product-card:hover {
        box-shadow: none;
        transform: none;
    }

    .main-content--product .product-image {
        margin: 0;
        border-radius: 0;
        background: var(--surface);
    }

    .main-content--product .product-image img,
    .main-content--product .product-card-slide {
        padding: 0;
    }

    .main-content--product .product-card-body {
        padding: 8px 10px 10px;
        gap: 5px;
    }

    .main-content--product .product-card-actions {
        gap: 5px;
    }

    .main-content--product .product-card-btn {
        border-radius: 10px;
        padding: 8px 10px;
        font-size: .7rem;
    }

    .main-content--product .product-card-btn--detail {
        background: transparent;
        border-color: var(--line);
    }

    .main-content--product .products-carousel,
    .main-content--product .infinite-carousel__viewport {
        padding: 0 0 6px;
    }

    .main-content--product .infinite-carousel__track {
        gap: 10px;
    }

    .main-content--product .products-carousel .product-card {
        flex-basis: min(200px, 44vw);
        max-width: 220px;
    }

    .product-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 245;
        padding: 10px 12px;
        background: var(--surface);
        border-top: 1px solid var(--line-soft);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .06);
    }

    .product-sticky-price-block {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        flex: 1;
    }

    .product-sticky-price-label {
        font-size: .62rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--ink-muted);
        line-height: 1;
    }

    .product-sticky-price-value {
        font-size: 1rem;
        font-weight: 800;
        color: var(--ink);
        letter-spacing: -.02em;
        line-height: 1.2;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
    }

    .product-sticky-price-current {
        color: var(--accent);
    }

    .product-sticky-price-old {
        font-size: .72rem;
        font-weight: 500;
        color: var(--ink-muted);
        text-decoration: line-through;
    }

    .product-sticky-qty {
        display: flex;
        flex-direction: column;
        gap: 0;
        flex-shrink: 0;
    }

    .product-sticky-qty-label {
        display: none;
    }

    .product-sticky-bar .cart-qty {
        height: 42px;
    }

    .product-sticky-bar .cart-qty-btn {
        width: 34px;
        height: 42px;
        font-size: 1rem;
    }

    .product-sticky-bar .cart-qty-input {
        width: 34px;
        font-size: .86rem;
    }

    .product-sticky-price {
        display: none;
    }

    .product-sticky-action {
        flex: 0 0 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-content: center;
    }

    .product-sticky-buy,
    .product-sticky-add,
    .product-sticky-add-more,
    .product-sticky-checkout {
        width: auto;
        min-width: 118px;
        max-width: none;
        padding: 12px 16px !important;
        font-size: .88rem !important;
        font-weight: 700;
        border-radius: 12px !important;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .product-sticky-add,
    .product-sticky-add-more,
    .product-sticky-checkout {
        box-shadow: none;
    }

    .product-sticky-buy {
        display: none;
    }

    .product-add-row { display: none; }

    .product-image-wrap .product-share-btn--icon {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
    }

    .mobile-quick-order {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 244;
        padding: 10px 14px;
        background: var(--brand-dark);
        color: #fff;
        border-radius: 14px;
        text-decoration: none;
        box-shadow: 0 8px 28px rgba(15, 23, 42, .28);
    }

    body:has(.product-sticky-bar) .mobile-quick-order,
    body:has(.cart-sticky-bar:not([hidden])) .mobile-quick-order {
        display: none !important;
    }

    .mobile-quick-order__info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .mobile-quick-order__info strong {
        font-size: .82rem;
        font-weight: 700;
    }

    .mobile-quick-order__info span {
        font-size: .72rem;
        opacity: .82;
    }

    .mobile-quick-order__btn {
        flex-shrink: 0;
        padding: 8px 14px;
        border-radius: 999px;
        background: #fff;
        color: var(--brand-dark);
        font-size: .78rem;
        font-weight: 700;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-item-info h3 {
        font-size: .88rem;
    }

    .main-content--cart .cart-page-head {
        margin-bottom: 10px;
    }

    .main-content--cart .cart-page-title {
        font-size: 1.1rem;
    }

    .main-content--cart .cart-back-link {
        font-size: .78rem;
    }

    .main-content--cart .cart-item {
        display: grid;
        grid-template-columns: 52px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 6px;
        padding: 10px 12px;
        margin-bottom: 6px;
        align-items: center;
    }

    .main-content--cart .cart-item-main,
    .main-content--cart .cart-item-actions {
        display: contents;
    }

    .main-content--cart .cart-item-thumb {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 52px;
        height: 52px;
        align-self: center;
    }

    .main-content--cart .cart-item-info {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .main-content--cart .cart-item-info h3 {
        font-size: .76rem;
        line-height: 1.3;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .main-content--cart .cart-item-variant {
        margin: 3px 0 0;
        font-size: .7rem;
    }

    .main-content--cart .cart-item-info .price {
        display: none;
    }

    .main-content--cart .subtotal {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
        font-size: .78rem;
        text-align: right;
        align-self: start;
    }

    .main-content--cart .qty-control {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        padding: 2px;
    }

    .main-content--cart .cart-item-unit {
        display: none;
    }

    .main-content--cart .qty-btn {
        width: 26px;
        height: 26px;
        font-size: .82rem;
    }

    .main-content--cart .qty-input {
        width: 30px;
        font-size: .76rem;
    }

    .main-content--cart .btn-remove {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        padding: 5px 9px;
        font-size: .72rem;
    }

    .main-content--cart .recommended-section--compact {
        margin-top: 16px;
        padding-top: 14px;
    }

    .main-content--cart .recommended-section--compact .recommended-title {
        font-size: .9rem;
        margin-bottom: 10px;
    }

    .main-content--cart .recommended-section--compact .products-carousel,
    .main-content--cart .recommended-section--compact .infinite-carousel__viewport {
        padding-bottom: 6px;
    }

    .main-content--cart .recommended-section--compact .infinite-carousel__track {
        gap: 10px;
    }

    .main-content--cart .recommended-section--compact .products-carousel .product-card,
    .main-content--cart .recommended-section--compact .infinite-carousel__track > .product-card {
        flex: 0 0 128px;
        max-width: 128px;
        width: 128px;
    }

    .main-content--cart .recommended-section--compact .product-card-price {
        font-size: .84rem;
    }

    .main-content--cart .recommended-section--compact .product-card-desc {
        font-size: .72rem;
        -webkit-line-clamp: 2;
    }

    .main-content--cart .recommended-section--compact .product-card-btn {
        font-size: .72rem;
        padding: 8px 10px;
    }

    .main-content--cart .recommended-section--compact .product-card-promo-badge {
        display: inline-flex;
        font-size: .62rem;
        padding: 2px 6px;
    }

    .toast-with-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        max-width: 100%;
    }

    .toast-action {
        flex-shrink: 0;
        color: #fff;
        font-weight: 700;
        text-decoration: underline;
        white-space: nowrap;
    }
}

/* ===== MOBILE ===== */
@media (min-width: 1280px) {
    .products-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
    .hero__inner { grid-template-columns: 1fr; min-height: auto; }
    .hero__content { padding: 32px 32px 28px; }
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
        z-index: 2;
    }
}

@media (max-width: 1024px) {
    .products-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }

    .container, .page-container {
        padding-left: var(--page-pad);
        padding-right: var(--page-pad);
    }

    .home-banner-wrap {
        padding-top: 8px;
        margin-bottom: 6px;
    }

    .home-section--products {
        padding-top: 16px;
    }

    .home-section--products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-section--products .product-image img {
        padding: 0;
    }

    .home-section--products .product-image {
        margin: 0;
        border-radius: 0;
    }

    .home-section--products .product-card-body {
        padding: 6px 8px 8px;
        gap: 4px;
    }

    .home-section--products .product-card-price {
        font-size: .76rem;
    }

    .home-section--products .product-card-desc {
        font-size: .64rem;
        line-height: 1.3;
        min-height: 1.6em;
    }

    .home-section--products .product-card-btn {
        padding: 7px 6px;
        font-size: .6rem;
        border-radius: 7px;
        gap: 4px;
    }

    .home-section--products .product-card-btn__icon {
        width: 12px;
        height: 12px;
    }

    .home-page { padding-bottom: 40px; }

    .home-section {
        padding: 22px 0 26px;
    }

    .home-section--featured {
        padding-top: 26px;
        padding-bottom: 30px;
    }

    .home-section-head {
        margin-bottom: 16px;
        gap: 10px;
    }

    .home-section-num {
        min-width: 30px;
        height: 30px;
        font-size: .68rem;
        border-radius: 9px;
    }

    .home-section-title {
        font-size: 1.05rem;
        font-weight: 800;
    }

    .home-section-link {
        font-size: .72rem;
        padding: 8px 12px;
    }

    .hero {
        border-radius: 16px;
        border-color: rgba(232, 230, 225, .85);
        background: var(--surface);
        box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    }

    .hero__content {
        align-items: stretch;
        text-align: left;
        padding: 14px 14px 12px;
    }

    .hero__label {
        display: none;
    }

    .hero__brand {
        display: none;
    }

    .hero h1,
    .hero__title {
        font-size: 1.15rem;
        margin-bottom: 10px;
        line-height: 1.25;
        letter-spacing: -.03em;
    }

    .hero__title-line,
    .hero__title-accent {
        display: inline;
    }

    .hero__title-accent::before {
        content: ' ';
    }

    .hero__desc {
        display: none;
    }

    .hero__actions {
        width: 100%;
        max-width: none;
        margin: 0;
        flex-direction: row;
        gap: 8px;
    }

    .btn-hero-primary {
        flex: 1;
        min-height: 40px;
        padding: 10px 14px;
        font-size: .8rem;
        box-shadow: none;
    }

    .btn-hero-secondary {
        flex: 0 0 auto;
        width: auto;
        min-height: 40px;
        padding: 10px 12px;
        font-size: .78rem;
        background: #fff;
        border-color: rgba(232, 230, 225, .95);
    }

    .btn-hero-secondary span {
        display: none;
    }

    .hero__perks {
        display: none;
    }

    .product-card {
        border-radius: var(--radius-sm);
    }

    .header-top {
        padding: 7px 0;
        font-size: .68rem;
    }

    .header-top-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .header-phone {
        font-size: .68rem;
        white-space: nowrap;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-top-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        flex-wrap: nowrap;
    }

    .header-hours {
        padding-left: 8px;
        border-left: 1px solid rgba(255, 255, 255, .12);
        width: auto;
        white-space: nowrap;
        font-size: .62rem;
    }

    .header-main {
        padding: 8px 0 10px;
        background: var(--surface);
        border-bottom: 1px solid var(--line-soft);
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        padding-bottom: 0;
    }

    .logo {
        display: none;
    }

    .header-tools {
        display: none;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: none !important;
    }

    .header-actions {
        gap: 6px;
    }

    .header-action span.action-label { display: none; }

    .header-action {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .header-action-cart {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    .header-action-cart .badge {
        position: absolute;
        top: -5px;
        right: -6px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: .6rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--surface);
        box-sizing: border-box;
    }

    .search-form {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .search-form-control,
    .search-form:not(:has(.search-form-control)) {
        box-shadow: none;
        border: 1px solid var(--line);
    }

    body.page-catalog-categories .catalog-view-mobile,
    body.page-catalog-categories .catalog-categories-page {
        width: 100%;
        min-height: auto;
    }

    body.page-catalog-categories .catalog-categories-page {
        padding-top: 4px;
    }

    .home-page .market-banner {
        border-radius: 16px;
    }

    .market-banner__logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .market-banner__title {
        font-size: 1.2rem;
    }

    .market-banner__phone {
        font-size: .76rem;
        padding: 7px 10px;
        margin-top: 8px;
    }

    .search-form input {
        padding: 12px 8px 12px 16px;
        font-size: .88rem;
    }

    .search-form button[type="submit"],
    .search-form .search-form-submit {
        padding: 0 16px;
        margin: 3px;
        min-height: 36px;
        min-width: 40px;
    }

    .nav-menu {
        display: none;
        border-top: 1px solid var(--line);
        background: var(--surface);
    }

    .nav-menu.open { display: block; }

    .menu-list { flex-direction: column; gap: 0; }

    .menu-list > li {
        width: 100%;
        border-bottom: 1px solid var(--line-soft);
    }

    .menu-item:hover .submenu { display: none; }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 8px 8px;
        background: var(--gray-50);
    }

    .submenu li a,
    .submenu-item > a,
    .submenu-item > .submenu-row > a {
        padding-left: 20px;
    }

    .submenu--nested {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 2px 0 4px;
        margin-top: 2px;
        background: rgba(30, 64, 175, .04);
    }

    .submenu-item.has-children:hover > .submenu--nested {
        display: none;
    }

    .submenu-item.has-children.open > .submenu--nested {
        display: block;
    }

    .submenu--nested .submenu-item > a,
    .submenu--nested .submenu-item > .submenu-row > a {
        padding-left: 32px;
    }

    .submenu--nested .submenu--nested .submenu-item > a,
    .submenu--nested .submenu--nested .submenu-item > .submenu-row > a {
        padding-left: 44px;
    }

    .menu-item.open .submenu { display: block; }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        display: block;
    }

    .product-add-row { flex-direction: column; }
    .product-add-row .btn { max-width: none; width: 100%; }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-image {
        margin: 0;
        border-radius: 0;
        aspect-ratio: 1;
    }

    .product-image img {
        padding: 0;
    }

    .product-card-body { padding: 8px 10px 10px; }

    .product-card-price {
        font-size: .88rem;
    }

    .product-card-desc {
        font-size: .72rem;
        min-height: 2em;
    }

    .product-card-btn {
        padding: 8px 10px;
        font-size: .68rem;
        border-radius: 8px;
    }

    .footer {
        margin-top: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
        padding: 28px 16px 22px;
    }

    .footer-brand,
    .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-logo {
        margin-bottom: 10px;
    }

    .footer-logo-img {
        height: 36px;
        max-width: 130px;
    }

    .footer-brand p {
        font-size: .78rem;
        line-height: 1.5;
        max-width: none;
    }

    .footer-brand .social-links {
        margin-top: 12px;
        gap: 8px;
    }

    .footer .social-link {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .footer .social-link svg {
        width: 14px;
        height: 14px;
    }

    .footer-col h4 {
        margin-bottom: 8px;
        font-size: .64rem;
        letter-spacing: .1em;
    }

    .footer-links li {
        margin-bottom: 5px;
    }

    .footer-links a {
        font-size: .76rem;
        line-height: 1.35;
    }

    .footer-col:nth-child(2) .footer-links {
        columns: 2;
        column-gap: 10px;
    }

    .footer-col:nth-child(2) .footer-links li {
        break-inside: avoid;
    }

    .footer-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
    }

    .footer-contact li {
        margin-bottom: 0;
    }

    .footer-contact li:last-child {
        grid-column: 1 / -1;
    }

    .footer-contact li small {
        font-size: .58rem;
        margin-bottom: 2px;
    }

    .footer-contact li a,
    .footer-contact li span {
        font-size: .76rem;
        line-height: 1.4;
    }

    .footer-bottom {
        padding: 12px 0 14px;
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom p {
        font-size: .66rem;
        line-height: 1.45;
    }
}

@media (max-width: 420px) {
    .header-hours { display: none; }

    .header-phone::before {
        width: 5px;
        height: 5px;
    }

    .logo-img {
        height: 50px;
        max-width: 152px;
    }

    .hero h1,
    .hero__title {
        font-size: 1.08rem;
    }

    .header-action,
    .nav-toggle {
        width: 38px;
        height: 38px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .footer-grid {
        padding: 24px 14px 18px;
        gap: 16px 12px;
    }

    .footer-logo-img {
        height: 32px;
        max-width: 115px;
    }

    .footer-brand p {
        font-size: .74rem;
    }

    .footer-col:nth-child(2) .footer-links {
        columns: 1;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-contact li:last-child {
        grid-column: auto;
    }
}

/* ===== PAGES: breadcrumb, detail, cart, checkout, orders ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--brand); }

.breadcrumb span:last-child {
    color: var(--ink-soft);
    font-weight: 500;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: start;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 44px 48px;
    border: 1px solid rgba(20, 20, 20, .06);
    box-shadow:
        0 1px 2px rgba(20, 20, 20, .04),
        0 24px 48px -12px rgba(20, 20, 20, .08);
}

.product-detail-gallery {
    position: relative;
}

.product-detail-gallery__stage {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-gallery-viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f5f5f7;
    border: none;
    border-radius: 16px;
    box-shadow: none;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.product-gallery-viewport:active {
    cursor: grabbing;
}

.product-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.product-gallery-track.is-dragging {
    cursor: grabbing;
}

.product-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    display: block;
    background: #f5f5f7;
    pointer-events: none;
}

.product-gallery-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 2px;
    background: rgba(15, 23, 42, .06);
    overflow: hidden;
}

.product-gallery-progress__bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #3b82f6);
    border-radius: 0 2px 2px 0;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.product-gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    pointer-events: none;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .2s ease, opacity .2s ease;
}

.product-gallery-thumb.is-active {
    border-color: var(--brand);
    box-shadow: none;
    transform: none;
}

.product-gallery-thumb.is-active::after {
    display: none;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    box-sizing: border-box;
    display: block;
    border-radius: 0;
}

.product-gallery-thumb--more .product-gallery-thumb__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .52);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.product-detail-gallery-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.product-detail-image {
    border-radius: 0;
    overflow: hidden;
    background: var(--surface);
    border: none;
}

.product-detail-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
    background: #f5f5f7;
}

.product-detail-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(239, 246, 255, .95), rgba(239, 246, 255, .65));
    border: 1px solid rgba(30, 64, 175, .12);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .02em;
}

.product-detail-category:hover {
    background: var(--brand-light);
    border-color: rgba(30, 64, 175, .2);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-detail-title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.22;
    letter-spacing: -.035em;
}

.product-detail-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.product-detail-views,
.product-detail-orders {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-muted);
    line-height: 1.2;
}

.product-variants {
    margin: 0 0 16px;
}

.product-variants__label {
    margin: 0 0 8px;
    font-size: .9rem;
    color: var(--ink-muted);
}

.product-variants__label strong {
    color: var(--ink);
    font-weight: 700;
}

.product-variants__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-variant-chip {
    appearance: none;
    margin: 0;
    padding: 9px 14px;
    border: 1.5px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.product-variant-chip:hover {
    border-color: #999;
}

.product-variant-chip.is-selected {
    border-color: #111;
    background: #fff;
    box-shadow: inset 0 0 0 0.5px #111;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.product-detail-price {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.product-detail-note {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fafaf9, #f5f4f1);
    border: 1px solid var(--line-soft);
    font-size: .78rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.product-detail-desc {
    margin: 0 0 18px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
}

.product-detail-desc__title {
    margin: 0 0 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.product-detail-desc p,
.product-detail-desc__content {
    margin: 0;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.product-detail-desc__content p {
    margin: 0 0 .7em;
}

.product-detail-desc__content p:last-child {
    margin-bottom: 0;
}

.product-detail-desc__content br {
    display: block;
    content: '';
    margin-top: .15em;
}

.product-detail-desc__content strong,
.product-detail-desc__content b,
.product-detail-desc-block__content strong,
.product-detail-desc-block__content b {
    font-weight: 700;
    color: var(--ink);
}

.product-detail-desc__content em,
.product-detail-desc__content i,
.product-detail-desc-block__content em,
.product-detail-desc-block__content i {
    font-style: italic;
}

.product-detail-desc__content ul,
.product-detail-desc__content ol,
.product-detail-desc-block__content ul,
.product-detail-desc-block__content ol {
    margin: 0 0 .7em;
    padding-left: 1.25em;
}

.product-detail-contact {
    margin-top: 2px;
}

.product-detail-info .contact-telegram-cta a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, .14);
    background: linear-gradient(180deg, rgba(239, 246, 255, .95), rgba(239, 246, 255, .55));
    font-size: .86rem;
}

.product-detail-info .contact-telegram-cta a:hover {
    background: rgba(239, 246, 255, 1);
    border-color: rgba(30, 64, 175, .22);
}

.product-detail-desc-block {
    margin: 18px 0 0;
    padding: 20px 22px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--brand);
    box-shadow: var(--shadow-sm);
}

.product-detail-desc-block__title {
    margin: 0 0 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.product-detail-desc-block p,
.product-detail-desc-block__content {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: .92rem;
}

.product-detail-desc-block__content p {
    margin: 0 0 .7em;
}

.product-detail-desc-block__content p:last-child {
    margin-bottom: 0;
}

.product-detail-desc-block__content br {
    display: block;
    content: '';
    margin-top: .15em;
}

.product-detail-info .product-add-row {
    margin-top: 4px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fafaf9, #f5f4f1);
    border: 1px solid var(--line-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.product-add-row__qty {
    width: 100%;
}

.product-add-row__qty .cart-qty {
    width: 100%;
    max-width: 160px;
}

.product-add-row__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.product-detail-info .product-add-row .btn {
    min-height: 50px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    max-width: none;
    width: 100%;
}

.product-detail-info .product-add-row .btn-primary,
.product-detail-info .product-add-row .btn-in-cart {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}

.product-detail-info .product-add-row .buy-now {
    min-height: 48px;
    box-shadow: none;
}

.product-detail-related {
    margin-top: 12px;
    padding-bottom: 12px;
}

.product-detail-related .recommended-section {
    margin-top: 36px;
    padding-top: 28px;
}

.product-detail-related .recommended-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    margin-bottom: 14px;
}

.product-detail-related .recommended-title::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), #3b82f6);
}

.product-detail-related .recommended-section + .recommended-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.products-carousel {
    align-items: flex-start;
    padding: 2px 2px 10px;
}

.products-carousel.infinite-carousel__viewport,
.infinite-carousel__viewport {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.products-carousel.infinite-carousel__viewport::-webkit-scrollbar,
.infinite-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.infinite-carousel__viewport:active,
.infinite-carousel__track:active {
    cursor: grabbing;
}

.infinite-carousel__track {
    display: flex;
    width: max-content;
    will-change: transform;
    gap: 12px;
}

.products-carousel .product-card,
.recommended-section:not(.recommended-section--compact) .infinite-carousel__track > .product-card {
    flex: 0 0 min(240px, 72vw);
    scroll-snap-align: none;
    max-width: 280px;
}

.recommended-section--carousel .recommended-title {
    margin-bottom: 12px;
}

.recommended-section--compact {
    margin-top: 24px;
    padding-top: 18px;
}

.recommended-section--compact .recommended-title {
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink-soft);
}

.recommended-section--compact .products-carousel,
.recommended-section--compact .infinite-carousel__viewport {
    padding-bottom: 4px;
}

.recommended-section--compact .infinite-carousel__track {
    gap: 10px;
}

.recommended-section--compact .product-card {
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(15, 23, 42, .06);
}

.recommended-section--compact .product-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}

.recommended-section--compact .products-carousel .product-card,
.recommended-section--compact .infinite-carousel__track > .product-card {
    flex: 0 0 132px;
    max-width: 132px;
    width: 132px;
}

.main-content--cart .recommended-section--compact .product-card-promo-badge {
    display: inline-flex;
}

.recommended-section--compact .product-image-wrap .product-share-btn--icon,
.recommended-section--compact .product-card-share {
    display: none;
}

.recommended-section--compact .product-image {
    margin: 0;
    border-radius: 0;
}

.recommended-section--compact .product-image img,
.recommended-section--compact .product-card-slide {
    padding: 0;
}

.recommended-section--compact .product-card-body {
    padding: 6px 8px 8px;
    gap: 4px;
}

.recommended-section--compact .product-card-price {
    font-size: .78rem;
    font-weight: 700;
}

.recommended-section--compact .product-card-promo-badge {
    display: none;
}

.recommended-section--compact .product-card-desc {
    font-size: .64rem;
    min-height: 0;
    -webkit-line-clamp: 1;
}

.recommended-section--compact .product-card-actions {
    gap: 4px;
}

.recommended-section--compact .product-card-btn--detail {
    display: none;
}

.recommended-section--compact .product-card-btn {
    padding: 6px 8px;
    font-size: .64rem;
    border-radius: 8px;
    min-height: 0;
}

.recommended-section--compact .product-card-btn__icon {
    width: 13px;
    height: 13px;
}

.product-related-load-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.product-related-load-more .btn {
    min-width: 180px;
}

@media (min-width: 769px) {
    .product-detail-gallery__stage + .product-detail-desc-block {
        margin-top: 20px;
    }
}

@media (min-width: 769px) {
    .main-content--product {
        padding-top: 8px;
    }

    .main-content--product > .product-detail {
        max-width: var(--max);
        margin: 0 auto;
        width: calc(100% - 48px);
    }

    .product-detail-gallery__stage {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .product-detail-gallery__stage:has(.product-gallery-thumbs) {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .product-detail-gallery__stage .product-gallery-viewport {
        grid-column: 1;
        grid-row: 1;
        min-height: 420px;
        border-radius: 16px;
        background: #f5f5f7;
    }

    .product-detail-gallery__stage:has(.product-gallery-thumbs) .product-gallery-viewport {
        grid-column: 2;
    }

    .product-gallery-thumbs {
        flex-direction: column;
        grid-column: 1;
        grid-row: 1;
        padding: 4px 0 0;
        gap: 10px;
        overflow: visible;
        max-height: none;
    }

    .product-gallery-thumb {
        width: 72px;
        height: 72px;
    }

    .product-detail-info {
        position: sticky;
        top: calc(var(--header-h) + 20px);
        align-self: start;
        padding-left: 4px;
    }

    .product-detail-share .product-share-btn--icon {
        width: 40px;
        height: 40px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    }

    .products-carousel .product-card,
    .recommended-section:not(.recommended-section--compact) .infinite-carousel__track > .product-card {
        flex-basis: 220px;
    }

    .recommended-section--compact .products-carousel .product-card,
    .recommended-section--compact .infinite-carousel__track > .product-card {
        flex-basis: 132px;
        max-width: 132px;
        width: 132px;
    }
}

.no-image.large {
    aspect-ratio: 1;
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.product-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.product-share-btn:hover {
    background: var(--gray-50);
    border-color: var(--ink-muted);
    color: var(--ink);
}

.product-share-btn--icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    color: var(--ink-muted);
}

.product-share-btn--icon:hover {
    background: #fff;
    color: var(--ink);
}

.product-share-btn__icon {
    flex-shrink: 0;
}

.product-share-menu {
    position: absolute;
    z-index: 1200;
    min-width: 210px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.product-share-menu__title {
    margin: 0;
    padding: 8px 10px 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.product-share-menu__item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.product-share-menu__item:hover {
    background: var(--gray-50);
}

.price.large {
    font-size: 2rem;
    margin: 20px 0 28px;
    color: var(--brand-dark);
}

.product-description {
    margin: 0 0 18px;
    padding: 20px 22px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--brand);
    box-shadow: var(--shadow-sm);
}

.product-description h3 {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.product-description p {
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: .92rem;
}

.loading, .empty {
    text-align: center;
    color: var(--ink-muted);
    padding: 60px 20px;
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line);
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: .5;
}

.cart-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    gap: 12px;
    flex-wrap: wrap;
    transition: box-shadow .2s;
}

.cart-item:hover { box-shadow: var(--shadow-card); }

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.cart-item-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--gray-50);
    display: block;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.cart-item-thumb .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.cart-item-info h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.cart-item-variant {
    margin: 0 0 4px;
    font-size: .78rem;
    color: var(--ink-muted);
    line-height: 1.3;
}

.cart-item-variant strong {
    color: var(--ink);
    font-weight: 700;
}

.cart-item-unit {
    font-size: .78rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

.cart-item-info h3 a {
    color: inherit;
    text-decoration: none;
}

.cart-item-info h3 a:hover { color: var(--brand); }

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-50);
    border-radius: 100px;
    padding: 4px;
    border: 1px solid var(--line);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    transition: all .15s;
}

.qty-btn:hover {
    background: var(--ink);
    color: #fff;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    outline: none;
}

.btn-remove {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--red);
    font-size: .85rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 100px;
    font-weight: 600;
    transition: all .2s;
}

.btn-remove:hover {
    background: #fef2f2;
    border-color: var(--red);
}

.subtotal {
    font-weight: 700;
    min-width: 110px;
    text-align: right;
    color: var(--ink);
}

.cart-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cart-page-title {
    margin: 0;
}

.cart-back-link {
    display: inline-flex;
    flex-shrink: 0;
}

.cart-footer {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 16px;
    border: 1px solid var(--line);
}

.cart-footer .checkout-back {
    flex-shrink: 0;
}

.cart-footer .cart-total {
    margin: 0 auto 0 0;
}

.cart-total { font-size: 1.1rem; color: var(--ink-soft); }

.cart-total strong {
    font-size: 1.35rem;
    color: var(--ink);
}

.btn-checkout {
    width: auto !important;
    padding: 14px 36px !important;
    min-width: 200px;
}

.main-content--checkout {
    padding: 20px 0 48px;
}

.checkout-page {
    max-width: 920px;
    margin: 0 auto;
}

.checkout-page-head {
    margin-bottom: 20px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.checkout-page-head .checkout-back {
    margin-bottom: 4px;
}

.checkout-page-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.03em;
    margin: 8px 0 6px;
}

.checkout-page-lead {
    margin: 0;
    color: var(--ink-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.checkout-order-details {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}

.checkout-order-details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: var(--gray-50);
}

.checkout-order-details > summary::-webkit-details-marker {
    display: none;
}

.checkout-order-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-order-summary-text strong {
    font-size: .88rem;
    color: var(--ink);
}

.checkout-order-summary-hint {
    font-size: .72rem;
    color: var(--ink-muted);
}

.checkout-order-summary-total {
    font-size: .95rem;
    color: var(--ink);
    white-space: nowrap;
}

.checkout-summary-items {
    padding: 0 12px 8px;
}

.checkout-summary-totals {
    border-top: 1px solid var(--line-soft);
    padding-top: 10px;
}

.checkout-sticky-bar {
    display: none;
}

.promo-check {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--brand);
}

.promo-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-toggle input:not(.promo-check) {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.summary-item-name {
    min-width: 0;
    line-height: 1.35;
}

.summary-item-variant {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid var(--line-soft);
    font-size: .78em;
    font-weight: 700;
    color: var(--ink);
    vertical-align: middle;
}

.summary-item-price {
    flex-shrink: 0;
    font-weight: 600;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.checkout-form-wrap {
    grid-column: 1;
    grid-row: 1;
}

.checkout-summary {
    grid-column: 2;
    grid-row: 1;
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--surface);
    transition: all .2s var(--ease);
}

.checkout-back:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--gray-50);
}

.checkout-form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--line);
}

.checkout-form h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    letter-spacing: -.02em;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: .82rem;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: all .2s;
    background: var(--gray-50);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2357534e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.form-group select:disabled {
    opacity: .65;
    cursor: not-allowed;
    background-color: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--ink);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px rgba(20, 20, 20, .06);
}

.address-fields {
    border: none;
    margin: 0 0 20px;
    padding: 0;
}

.address-fields legend {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.address-fields .form-group:last-child {
    margin-bottom: 0;
}

.form-group small {
    display: block;
    color: var(--ink-muted);
    font-size: .78rem;
    margin-top: 6px;
}

.btn-submit {
    width: 100%;
    padding: 16px !important;
    font-size: 1rem !important;
    margin-top: 8px;
}

.checkout-summary {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.checkout-summary h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
    gap: 12px;
}

.summary-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.summary-item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--gray-50);
    display: block;
}

.summary-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-thumb .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .9rem;
    color: var(--ink-muted);
}

.summary-discount {
    color: var(--accent);
    font-weight: 600;
}

.promo-block {
    margin: 20px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.checkout-form .promo-block {
    margin: 8px 0 4px;
    padding-top: 16px;
}

.promo-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.promo-toggle input:not(.promo-check) {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.promo-toggle-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s var(--ease);
}

.promo-toggle-box::after {
    content: '';
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform .15s var(--ease);
}

.promo-toggle input:checked + .promo-toggle-box {
    background: var(--ink);
    border-color: var(--ink);
}

.promo-toggle input:checked + .promo-toggle-box::after {
    transform: rotate(45deg) scale(1);
}

.promo-toggle input:focus-visible + .promo-toggle-box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.promo-toggle-text {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
}

.promo-fields {
    margin-top: 14px;
}

.promo-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.promo-input {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
}

.promo-input::placeholder {
    color: var(--ink-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.promo-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(28, 25, 23, .08);
}

.promo-apply-btn {
    width: auto !important;
    min-width: 96px;
    padding: 14px 20px !important;
    white-space: nowrap;
    border-radius: var(--radius-sm) !important;
}

.promo-message {
    margin-top: 8px;
    font-size: .82rem;
    line-height: 1.5;
}

.promo-message--success { color: #15803d; }
.promo-message--error { color: #b91c1c; }

.promo-remove {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--ink-muted);
    font-size: .8rem;
    text-decoration: underline;
    cursor: pointer;
}

.promo-remove:hover {
    color: var(--ink);
}

.otp-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.otp-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    letter-spacing: .18em;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    background: var(--surface);
}

.otp-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .1);
}

.otp-send-btn {
    white-space: nowrap;
    padding: 12px 14px !important;
}

.otp-group .form-hint {
    margin-top: 8px;
}

.track-form-wrap .otp-input-row {
    margin-top: 10px;
}

.track-form-wrap .form-hint {
    margin: 8px 0 12px;
}

.summary-note {
    color: var(--ink-muted);
    font-size: .82rem;
    margin-top: 12px;
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-50);
    transition: all .2s;
}

.phone-input-group:focus-within {
    border-color: var(--ink);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(20, 20, 20, .06);
}

.phone-prefix {
    background: var(--ink);
    padding: 14px 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    font-size: .9rem;
}

.phone-input-group input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    padding: 14px 16px;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: .95rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 16px;
}

.modal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.order-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin: 12px 0 16px;
    letter-spacing: .08em;
}

.modal-text {
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.modal-content .btn { max-width: 280px; margin: 0 auto; }

.track-form-wrap {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: stretch;
}

.track-form-wrap .phone-input-group { flex: 1; min-width: 240px; }

.track-form-wrap .btn {
    width: auto;
    padding: 14px 32px;
    align-self: stretch;
}

.orders-count {
    color: var(--ink-muted);
    margin-bottom: 16px;
    font-size: .9rem;
    font-weight: 500;
}

.account-orders-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 18px 8px;
    box-shadow: var(--shadow-sm);
    margin-top: 8px;
}

.account-orders-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.account-orders-panel-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}

.account-orders-panel-meta {
    margin: 0;
    font-size: .82rem;
    color: var(--ink-muted);
}

.account-orders-panel-meta strong {
    color: var(--ink);
}

.account-orders-toolbar {
    margin-bottom: 14px;
}

.account-filter-shell {
    position: relative;
}

.account-filter-fade {
    display: none;
}

.account-orders-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 4px 2px 10px;
}

.account-filter-btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--gray-50);
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}

.account-filter-btn:hover:not(:disabled) {
    border-color: rgba(30, 64, 175, .18);
    color: var(--ink);
    background: #fff;
}

.account-filter-btn:active:not(:disabled) {
    transform: scale(.98);
}

.account-filter-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.account-filter-btn.is-active {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.account-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink-muted);
}

.account-filter-btn--all .account-filter-dot { background: var(--brand); }
.account-filter-btn--active .account-filter-dot { background: var(--accent); }

.account-filter-btn--all.is-active {
    border-color: rgba(30, 64, 175, .24);
    color: var(--brand);
}

.account-filter-btn--active.is-active {
    border-color: rgba(234, 88, 12, .28);
    color: var(--orange-dark);
}

.account-filter-label {
    line-height: 1.1;
}

.account-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 100px;
    background: rgba(15, 23, 42, .07);
    font-size: .68rem;
    font-weight: 800;
}

.account-filter-btn.is-active .account-filter-count {
    background: rgba(15, 23, 42, .1);
}

.account-filter-btn--all.is-active .account-filter-count {
    background: var(--brand-light);
    color: var(--brand);
}

.account-filter-btn--active.is-active .account-filter-count {
    background: var(--accent-soft);
    color: var(--orange-dark);
}

.account-orders-list {
    padding-bottom: 10px;
}

.account-orders-list .order-card:last-child {
    margin-bottom: 8px;
}

.account-orders-empty-filter {
    display: grid;
    gap: 8px;
    justify-items: center;
    background: var(--gray-50);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    color: var(--ink-soft);
    font-size: .9rem;
    margin-bottom: 10px;
}

.account-orders-empty-filter strong {
    color: var(--ink);
    font-size: .94rem;
}

.account-orders-empty-filter p {
    margin: 0;
    font-size: .82rem;
    color: var(--ink-muted);
    max-width: 28ch;
}

.account-orders-empty-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.account-orders-list:empty {
    display: none;
}

.order-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    transition: box-shadow .2s;
}

.order-card:hover { box-shadow: var(--shadow-card); }

.order-card.status-new       { border-left-color: var(--accent); }
.order-card.status-confirmed { border-left-color: var(--brand); }
.order-card.status-completed { border-left-color: var(--success); }
.order-card.status-cancelled { border-left-color: var(--red); }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.order-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    letter-spacing: .04em;
}

.order-date { font-size: .82rem; color: var(--ink-muted); }

.status-badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-new       { background: var(--accent-soft); color: var(--orange-dark); }
.status-badge.status-confirmed { background: var(--brand-light); color: var(--brand); }
.status-badge.status-completed { background: #dcfce7; color: #166534; }
.status-badge.status-cancelled { background: #fef2f2; color: var(--red-dark); }

.order-items-list { list-style: none; padding: 0; margin: 0 0 14px; }

.order-items-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
    color: var(--ink-soft);
}

.order-card-footer {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 10px;
    color: var(--ink);
}

.order-address {
    font-size: .84rem;
    color: var(--ink-soft);
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.toast {
    padding: 12px 20px;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: var(--shadow-lg);
    text-align: center;
    white-space: nowrap;
}

#toastContainer {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
}

#toastContainer .toast {
    position: relative;
    pointer-events: auto;
    width: auto;
    max-width: 100%;
    margin: 0;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--red); }

@media (min-width: 769px) {
    #toastContainer {
        top: auto;
        left: auto;
        right: 24px;
        bottom: 24px;
        align-items: flex-end;
        width: auto;
        max-width: min(400px, calc(100vw - 48px));
    }

    #toastContainer .toast {
        transform: translateY(12px);
        white-space: normal;
    }
}

.recommended-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.recommended-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .checkout-form-wrap,
    .checkout-summary {
        grid-column: auto;
        grid-row: auto;
    }
    .checkout-summary {
        order: -1;
        position: static;
        padding: 16px;
    }
    .checkout-form {
        padding: 16px;
    }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .checkout-form-wrap .btn-submit {
        display: none;
    }
    .checkout-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 120;
        padding: 10px 14px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(20, 20, 20, .08);
    }
    .checkout-sticky-total {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .checkout-sticky-label {
        font-size: .68rem;
        color: var(--ink-muted);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .checkout-sticky-discount {
        font-size: .72rem;
        font-weight: 600;
        color: var(--accent);
        line-height: 1.2;
    }

    .checkout-sticky-total strong {
        font-size: clamp(.88rem, 3.8vw, 1rem);
        color: var(--ink);
        white-space: nowrap;
        line-height: 1.2;
    }
    .checkout-sticky-btn {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 56%;
        width: auto !important;
        padding: 12px 14px !important;
        font-size: .84rem !important;
        white-space: nowrap;
    }
    .main-content--checkout {
        padding-bottom: calc(72px + 60px + env(safe-area-inset-bottom, 0px));
    }
    .checkout-page-head {
        margin-bottom: 8px;
        padding: 10px 12px;
    }
    .checkout-page-title {
        font-size: 1.05rem;
        margin-top: 4px;
    }
    .checkout-page-lead {
        font-size: .82rem;
    }
    .checkout-back {
        padding: 8px 14px;
        font-size: .78rem;
    }
    .checkout-summary h3 {
        display: none;
    }
    .checkout-order-details > summary {
        padding: 10px 12px;
    }
    .summary-note {
        display: none;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-group label {
        margin-bottom: 6px;
        font-size: .78rem;
    }
    .form-group input,
    .form-group select {
        padding: 11px 12px;
        font-size: .9rem;
    }
    .form-hint {
        display: block;
        margin-top: 6px;
        font-size: .72rem;
        color: var(--ink-muted);
        line-height: 1.4;
    }
    .address-fields legend {
        font-size: .82rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--line-soft);
        width: 100%;
    }
    .checkout-address {
        margin-top: 4px;
        padding: 0;
        border: none;
    }
    .phone-prefix {
        padding: 11px 12px;
        font-size: .84rem;
    }
    .phone-input-group input {
        padding: 11px 12px !important;
        font-size: .9rem !important;
    }
    .promo-block {
        margin: 12px 0 8px;
        padding-top: 12px;
    }
    .promo-input {
        padding: 11px 12px;
        font-size: .88rem;
    }
    .promo-apply-btn {
        padding: 11px 14px !important;
    }
    .promo-input-row {
        grid-template-columns: 1fr auto;
    }
    .summary-item-thumb {
        width: 40px;
        height: 40px;
    }
    .summary-item {
        padding: 8px 0;
        font-size: .8rem;
    }
    .summary-total {
        font-size: 1rem;
        padding-top: 8px;
    }
}

@media (min-width: 901px) {
    .checkout-order-details > summary {
        display: none;
    }

    .checkout-order-details .checkout-summary-items {
        display: block;
        padding: 0;
        margin-bottom: 12px;
    }

    .checkout-order-details {
        border: none;
        margin-bottom: 0;
    }

    .checkout-summary::before {
        content: 'Buyurtma xulosasi';
        display: block;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }

    .checkout-summary-totals {
        margin-top: 4px;
    }

    .checkout-form-wrap .btn-submit {
        display: flex;
    }

    .checkout-sticky-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cart-footer { flex-direction: column; align-items: stretch; }
    .cart-footer .cart-total { margin: 0; text-align: center; }
    .cart-footer .checkout-back { align-self: flex-start; }
    .btn-checkout { width: 100% !important; }

    .account-verify-card {
        padding: 18px 16px 20px;
        border-radius: var(--radius-lg);
    }

    .account-verify-step-label {
        display: none;
    }

    .account-verify-step-line {
        flex-basis: 12px;
    }

    .account-verify-lead {
        font-size: .84rem;
        margin-bottom: 14px;
    }

    .account-section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .account-orders-panel {
        padding: 14px 12px 6px;
        border-radius: var(--radius);
    }

    .account-orders-panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .account-filter-btn {
        padding: 8px 12px;
        border-radius: 10px;
    }

    .track-form-wrap { flex-direction: column; }
    .track-form-wrap .btn { width: 100%; }
}

@media (max-width: 380px) {
    .home-section--products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .home-section--products .product-card-price {
        font-size: .7rem;
    }

    .home-section--products .product-card-desc {
        font-size: .58rem;
        -webkit-line-clamp: 2;
    }

    .home-section--products .product-card-btn {
        padding: 6px 4px;
        font-size: .56rem;
    }

    .home-section--products .product-card-btn__text {
        font-size: .56rem;
    }

    .main-content--checkout .checkout-page-head {
        padding: 8px 10px;
    }

    .main-content--checkout .checkout-page-title {
        font-size: .92rem;
    }

    .main-content--checkout .checkout-form {
        padding: 10px 12px !important;
    }

    .main-content--checkout .form-group {
        margin-bottom: 8px;
    }

    .main-content--checkout .form-group input,
    .main-content--checkout .form-group select {
        padding: 8px 9px;
        font-size: .82rem;
    }

    .main-content--checkout .phone-prefix {
        padding: 8px 9px;
        font-size: .74rem;
    }

    .main-content--checkout .checkout-sticky-total strong {
        font-size: .82rem;
    }

    .main-content--checkout .checkout-sticky-btn {
        font-size: .7rem !important;
        padding: 9px 10px !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .menu-item:hover .submenu { display: none; }
    .menu-item.open .submenu { display: block; }
}

/* Catalog toolbar, search suggest, pagination */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.catalog-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.catalog-result-count {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.catalog-sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.catalog-filters-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.catalog-price-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-filter-label,
.catalog-sort-label {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}

.catalog-price-input {
    width: 110px;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 9px 14px;
    background: var(--gray-50);
    font: inherit;
    font-size: .84rem;
    color: var(--ink);
}

.catalog-price-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .1);
    background: var(--surface);
}

.catalog-price-sep {
    color: var(--muted);
    font-size: .9rem;
}

.catalog-filter-apply {
    white-space: nowrap;
}

.catalog-listing-live {
    transition: opacity .2s ease;
}

.catalog-listing-live.is-loading {
    opacity: .55;
    pointer-events: none;
}

.catalog-search-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(30, 64, 175, .14);
    background: linear-gradient(180deg, rgba(239, 246, 255, .9) 0%, rgba(255, 255, 255, .95) 100%);
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.5;
}

.catalog-search-notice strong {
    color: var(--ink);
}

.catalog-search-notice--popular {
    border-color: rgba(245, 158, 11, .22);
    background: linear-gradient(180deg, rgba(255, 251, 235, .95) 0%, rgba(255, 255, 255, .98) 100%);
}

.catalog-search-notice--category {
    border-color: rgba(16, 185, 129, .22);
    background: linear-gradient(180deg, rgba(236, 253, 245, .95) 0%, rgba(255, 255, 255, .98) 100%);
}

.catalog-search-notice--category a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.catalog-search-notice--category a:hover {
    text-decoration: underline;
}

.search-suggest-hint {
    margin: 0;
    padding: 8px 12px 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.search-suggest-queries {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.search-suggest-query-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
}

.search-suggest-query {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(30, 64, 175, .16);
    background: rgba(239, 246, 255, .75);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggest-query:hover,
.search-suggest-query:focus-visible {
    background: var(--brand-light);
    outline: none;
}

.catalog-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 20px;
}

.catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--brand-light);
    border: 1px solid rgba(30, 64, 175, .15);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.catalog-filter-chip:hover {
    background: #dbeafe;
    border-color: rgba(30, 64, 175, .25);
}

.catalog-filter-chip-x {
    font-size: 1rem;
    line-height: 1;
    opacity: .7;
}

.catalog-filter-clear {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.catalog-filter-clear:hover {
    color: var(--ink);
    text-decoration: underline;
}

.catalog-sort-label {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}

.catalog-sort-select {
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 9px 14px;
    background: var(--gray-50);
    font: inherit;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.catalog-sort-select:hover {
    border-color: #d4d1cb;
}

.catalog-sort-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .1);
    background: var(--surface);
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    padding: 8px 0 4px;
}

.catalog-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

a.catalog-pagination-num:hover {
    background: var(--gray-50);
}

.catalog-pagination-num.is-active {
    border-color: var(--ink);
    background: var(--surface);
    box-shadow: 0 0 0 1px rgba(20, 20, 20, .04);
}

.catalog-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 42px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-muted);
    user-select: none;
}

.catalog-page-link {
    display: none;
}

.catalog-page-status {
    display: none;
}

.catalog-main .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.catalog-main .product-card-actions {
    width: 100%;
}

.catalog-main .product-card-btn {
    width: 100%;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow: auto;
    padding: 6px 0;
    animation: suggest-in .2s var(--ease);
}

@keyframes suggest-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-suggest-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--ink);
    transition: background .15s;
}

.search-suggest-row:hover,
.search-suggest-row:focus-visible {
    background: var(--gray-50);
    outline: none;
}

.search-suggest-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.search-suggest-text {
    font-size: .9rem;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggest-text strong {
    font-weight: 700;
    color: var(--ink);
}

.search-suggest-match {
    font-weight: 400;
    color: var(--ink-soft);
}

@media (min-width: 900px) {
    .catalog-main .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 18px;
        margin-bottom: 20px;
        border-radius: var(--radius);
    }

    .catalog-toolbar {
        padding: 12px 14px;
    }

    .catalog-filters-form,
    .catalog-sort-form {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .catalog-price-filters {
        width: 100%;
    }

    .catalog-price-input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .catalog-filter-apply {
        width: 100%;
    }

    .catalog-sort-select {
        flex: 1;
        max-width: 200px;
    }

    .catalog-toolbar-meta {
        width: 100%;
    }

    .catalog-pagination {
        margin-top: 20px;
        padding-bottom: 8px;
    }

    .catalog-pagination-num {
        min-width: 40px;
        height: 40px;
        font-size: .9rem;
        border-radius: 8px;
    }

    .catalog-pagination-pages {
        gap: 4px;
    }
}

/* ===== RESPONSIVE: kichik va katta telefonlar ===== */
@media (max-width: 768px) {
    .header {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .search-form input,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .catalog-price-input,
    .catalog-sort-select,
    .phone-input-group input,
    .autocomplete-input {
        font-size: 16px;
    }

    .products-grid,
    .home-section--products .products-grid,
    .catalog-main .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card,
    .catalog-toolbar,
    .page-header,
    .product-detail,
    .checkout-form,
    .cart-table-wrap {
        max-width: 100%;
        min-width: 0;
    }
}

/* Katta telefonlar: iPhone Pro Max, Galaxy Ultra va hokazo */
@media (min-width: 430px) and (max-width: 768px) {
    :root {
        --page-pad: clamp(16px, 4vw, 24px);
    }

    .home-section--products .products-grid,
    .products-grid {
        gap: 10px;
    }

    .home-section--products .product-card-price {
        font-size: .8rem;
    }

    .home-section--products .product-card-desc {
        font-size: .68rem;
    }

    .mobile-bottom-nav__label {
        font-size: .66rem;
    }

    .search-form input {
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

/* O'rta telefonlar */
@media (max-width: 429px) and (min-width: 361px) {
    .home-section--products .products-grid,
    .products-grid {
        gap: 8px;
    }
}

/* Juda kichik ekranlar */
@media (max-width: 360px) {
    :root {
        --page-pad: 10px;
    }

    .search-form input {
        padding-left: 14px;
        font-size: 16px;
    }

    .search-form button[type="submit"],
    .search-form .search-form-submit {
        min-width: 38px;
        padding: 0 12px;
    }

    .home-section--products .product-card-btn__text {
        font-size: .54rem;
    }

    .mobile-bottom-nav__label {
        font-size: .58rem;
    }
}

@media (max-width: 320px) {
    :root {
        --page-pad: 8px;
    }

    .home-section-title {
        font-size: .98rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
