:root {
    --content-shell-width: calc(100% - 32px);
    --page-section-gap: 28px;
    --header-content-gap: var(--page-section-gap);
    --page-title-inset: 14px;
    --outer: #dfe6ef;
    --cream: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef4ff;
    --surface-border: color-mix(in srgb, var(--primary-color), #ffffff 84%);
    --ink: #172033;
    --muted: #6d7688;
    --muted-2: #9ba5b5;
    --line: #e6ebf2;
    --blue: var(--primary-color);
    --blue-dark: var(--primary-hover-color);
    --solid-bg: #172033;
    --solid-text: #ffffff;
    --accent-ink: #ffffff;
    --cyan: #35d4ff;
    --lime: var(--primary-color);
    --green: #13c98b;
    --orange: #ff9f2d;
    --danger: #f04452;
    --shadow: 0 18px 55px rgba(23, 32, 51, 0.08);
    --soft-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
    --button-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color), transparent 86%);
    --shell-shadow: 0 30px 90px rgba(8, 18, 35, 0.18);
    --header-bg: rgba(245, 247, 251, 0.92);
    --pill-bg: rgba(255,255,255,0.68);
    --hero-copy-bg: radial-gradient(circle at 82% 14%, rgba(53, 212, 255, .22), transparent 28%), linear-gradient(145deg, #ffffff, #eef5ff);
    --hero-badge-bg: rgba(255,255,255,.78);
    --button-light-bg: #ffffff;
    --input-bg: #fbfcff;
    --table-head: #f8faff;
    --policy-text: #354054;
    --wish-bg: rgba(255,255,255,.92);
    --success-bg: rgba(19,201,139,.12);
    --success-text: #087a54;
    --danger-bg: rgba(240,68,82,.12);
    --danger-text: #b62030;
    --mobile-nav-bg: rgba(255,255,255,.92);
    --mobile-nav-border: rgba(255,255,255,.7);
    --radius-sm: 14px;
    --radius: 14px;
    --radius-lg: 14px;
    --radius-xl: 14px;
    --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-title: "Lexend Deca", "Open Sans", system-ui, sans-serif;
    --font-display: var(--font-title);
    --font-entities: var(--font-title);
    --font-secondary: var(--font-title);
    --header-font-size: 13px;
    --header-font-weight: 600;
    --widget-title-size: 16px;
    font-family: var(--font-body);
}

.editable-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
    align-items: center;
    gap: 28px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.editable-page-hero-clean {
    background: var(--surface);
}

.editable-page-hero-soft {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary-color), transparent 86%), transparent 46%),
        var(--surface);
}

.editable-page-hero-dark {
    background: #121b2d;
    color: #ffffff;
}

.editable-page-hero-accent {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary-color), #ffffff 8%), color-mix(in srgb, var(--primary-color), #111827 34%));
    color: #ffffff;
}

.editable-page-hero-copy {
    min-width: 0;
}

.editable-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 0 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color), transparent 88%);
    color: var(--primary-color);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.editable-page-hero-dark .editable-page-eyebrow,
.editable-page-hero-accent .editable-page-eyebrow {
    background: rgba(255, 255, 255, .13);
    color: #ffffff;
}

.editable-page-hero h1 {
    margin: 0;
    max-width: 820px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.editable-page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.editable-page-hero-dark p,
.editable-page-hero-accent p {
    color: rgba(255, 255, 255, .78);
}

.editable-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.editable-page-hero-media {
    width: 100%;
    aspect-ratio: 1.15 / .78;
    margin: 0;
    border-radius: 18px;
    background: color-mix(in srgb, var(--primary-color), #ffffff 90%);
    overflow: hidden;
}

.editable-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editable-page-body,
.editable-page-cards {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.editable-page-body h2,
.editable-page-cards h2 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    letter-spacing: 0;
}

.editable-page-rich {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.82;
}

.editable-page-rich > *:first-child {
    margin-top: 0;
}

.editable-page-rich > *:last-child {
    margin-bottom: 0;
}

.editable-page-rich p,
.editable-page-rich ul,
.editable-page-rich ol,
.editable-page-rich blockquote {
    margin: 0 0 16px;
}

.editable-page-rich h1,
.editable-page-rich h2,
.editable-page-rich h3,
.editable-page-rich h4,
.editable-page-rich h5,
.editable-page-rich h6 {
    margin: 22px 0 10px;
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.2;
}

.editable-page-rich pre,
.editable-page-rich code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.editable-page-rich pre {
    overflow-x: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface), var(--ink) 4%);
}

.editable-page-rich ul,
.editable-page-rich ol {
    padding-left: 22px;
}

.editable-page-rich ul {
    list-style: disc;
}

.editable-page-rich ol {
    list-style: decimal;
}

.editable-page-rich a {
    color: var(--primary-color);
    font-weight: 800;
}

.editable-page-rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px 0;
    border-radius: 14px;
}

.editable-page-rich img[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
}

.editable-page-rich img[data-align="right"] {
    margin-left: auto;
}

.editable-page-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.editable-page-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface), var(--cream) 36%);
}

.editable-page-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color), transparent 86%);
    color: var(--primary-color);
}

.editable-page-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.28;
}

.editable-page-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

.editable-page-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: .86rem;
}

.dark .editable-page-hero,
.dark .editable-page-body,
.dark .editable-page-cards {
    background: var(--surface);
    border-color: var(--line);
}

.dark .editable-page-hero-clean,
.dark .editable-page-hero-soft {
    background: #131c2d;
}

.dark .editable-page-card {
    background: #10192a;
}

@media (max-width: 900px) {
    .editable-page-hero,
    .editable-page-card-grid {
        grid-template-columns: 1fr;
    }

    .editable-page-hero {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .editable-page-hero,
    .editable-page-body,
    .editable-page-cards {
        padding: 18px;
        border-radius: 16px;
    }
}

.dark {
    --outer: #050914;
    --cream: #0b1018;
    --surface: #182130;
    --surface-2: #101827;
    --surface-border: rgba(203,213,225,.18);
    --ink: #f8fafc;
    --muted: #a7b0be;
    --muted-2: #8792a3;
    --solid-bg: #f8fafc;
    --solid-text: #0b1018;
    --accent-ink: #ffffff;
    --line: rgba(203,213,225,.20);
    --shadow: 0 22px 64px rgba(0,0,0,.46);
    --soft-shadow: 0 16px 42px rgba(0,0,0,.38);
    --button-shadow: 0 14px 32px rgba(0,0,0,.34);
    --shell-shadow: 0 30px 90px rgba(0,0,0,.42);
    --header-bg: rgba(20, 27, 39, 0.94);
    --pill-bg: rgba(255,255,255,.06);
    --hero-copy-bg: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--primary-color), transparent 68%), transparent 30%), linear-gradient(145deg, #141b27, #0f172a);
    --hero-badge-bg: rgba(255,255,255,.08);
    --button-light-bg: #111827;
    --input-bg: #0f172a;
    --table-head: #101827;
    --policy-text: #cbd5e1;
    --wish-bg: rgba(20,27,39,.92);
    --success-bg: rgba(19,201,139,.16);
    --success-text: #62e6b7;
    --danger-bg: rgba(240,68,82,.16);
    --danger-text: #ff9aa5;
    --mobile-nav-bg: rgba(20,27,39,.94);
    --mobile-nav-border: rgba(148,163,184,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.dark { color-scheme: dark; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 400;
    line-height: 1.55;
}

html.searchable-modal-open,
body.searchable-modal-open {
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.section-head h2,
.page-title h1,
.hero h1,
.promo-band h2,
.newsletter h2,
.detail-card h1,
.auth-card h1,
.product-body h3,
.site-footer h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0;
}
main {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-top: var(--header-content-gap);
}

.site-shell {
    width: 100%;
    margin: 0;
    background: var(--cream);
    border-radius: 0;
    min-height: 100vh;
    overflow: visible;
    box-shadow: none;
    padding-bottom: var(--page-section-gap);
}

.main-header {
    width: var(--content-shell-width);
    max-width: none;
    margin: 16px auto 0;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px;
    background: #DCEBF7;
    border: 1px solid color-mix(in srgb, var(--primary-color), #ffffff 62%);
    border-radius: var(--radius-lg);
    box-shadow: none;
    backdrop-filter: blur(24px);
    transition: background .22s ease, border-color .22s ease, padding .24s cubic-bezier(.2,.8,.2,1);
}

.main-header-spacer {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.main-header-spacer.is-active {
    display: block;
}

.site-shell .main-header.is-stuck {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 12px;
    left: 0;
    right: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    animation: header-sticky-enter .28s cubic-bezier(.2,.8,.2,1);
}

.site-shell .main-header.is-stuck .brand {
    font-size: 1.42rem;
}

.site-shell .main-header.is-stuck .brand-mark {
    width: 36px;
    height: 36px;
}

.site-shell .main-header.is-stuck .nav-search input {
    min-height: 44px;
    padding-right: 52px;
}

.site-shell .main-header.is-stuck .nav-search button {
    width: 34px;
    height: 34px;
    right: 6px;
}

.site-shell .main-header.is-stuck .round-action {
    width: 42px;
    height: 42px;
}

.site-shell .main-header.is-stuck .auth-chip {
    min-height: 42px;
    padding: 4px 6px 4px 14px;
}

.site-shell .main-header.is-stuck .auth-chip-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: font-size .24s cubic-bezier(.2,.8,.2,1);
}
.trex-logo { flex-shrink: 0; }
.trex-logo-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}
.trex-logo-copy strong,
.trex-logo-copy em {
    font-style: normal;
    font-weight: 500;
}

.main-header,
.main-header input,
.main-header button,
.main-header .trust-pill,
.main-header .auth-chip {
    font-family: var(--font-body);
    font-size: var(--header-font-size);
    font-weight: var(--header-font-weight);
}

.main-header .trust-pill,
.main-header .auth-chip,
.main-header button {
    text-transform: capitalize;
}

.main-header .brand,
.main-header .trex-logo-copy strong,
.main-header .trex-logo-copy em {
    font-family: var(--font-title);
    font-weight: 500;
    text-transform: none;
}
.trex-logo-copy em { color: var(--blue); }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--solid-bg);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09);
    transition: width .24s cubic-bezier(.2,.8,.2,1), height .24s cubic-bezier(.2,.8,.2,1);
}
.brand-mark span {
    width: 17px;
    height: 17px;
    background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue), #fff 42%));
    border-radius: 5px;
    transform: rotate(45deg);
}

.nav-search {
    position: relative;
    display: block;
    flex: 1;
    width: 100%;
    max-width: 448px;
    margin: 0 16px;
}
.nav-search input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    outline: 0;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
    padding: 0 58px 0 24px;
    font-size: var(--header-font-size);
    font-weight: 400;
    transition: min-height .24s cubic-bezier(.2,.8,.2,1), padding .24s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease;
}
.nav-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    border: 1px solid color-mix(in srgb, var(--blue), #fff 22%);
    box-shadow: none;
    transform: translateY(-50%);
    transition: width .24s cubic-bezier(.2,.8,.2,1), height .24s cubic-bezier(.2,.8,.2,1), right .24s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-search button:hover {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-50%);
    box-shadow: none;
}
.nav-search button i { font-size: 1.15rem; }
.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 10px;
    z-index: 80;
}
.search-suggest a {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: var(--radius);
}
.search-suggest a:hover { background: var(--surface-2); }
.search-suggest img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); }
.search-suggest strong { color: var(--blue-dark); }

.header-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--surface);
    padding: 8px 16px;
    box-shadow: none;
}
.trust-pill i {
    color: var(--ink);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.round-action {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: none;
    color: var(--ink);
    position: relative;
    transition: width .24s cubic-bezier(.2,.8,.2,1), height .24s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease, border-color .2s ease;
}
.round-action:not(.theme-toggle):hover {
    transform: none;
    background: var(--blue);
    color: #ffffff;
}
.theme-toggle:hover {
    background: var(--surface);
    color: var(--ink);
    transform: none;
}
.dark .theme-toggle:hover {
    background: var(--surface);
    color: var(--ink);
    transform: none;
}
.round-action i { font-size: 1.25rem; }
.mobile-search-trigger {
    display: none;
    background: var(--blue);
    color: #ffffff;
}
.mobile-menu-toggle {
    display: none;
}
.theme-toggle {
    overflow: hidden;
    isolation: isolate;
}
.theme-toggle::before,
.theme-toggle::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    pointer-events: none;
}
.theme-toggle::before {
    background: radial-gradient(circle, rgba(245, 158, 11, .18), transparent 68%);
    transform: scale(.78);
    opacity: .9;
    transition: background .34s ease, opacity .34s ease, transform .34s ease;
    z-index: 0;
}
.theme-toggle::after {
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--blue) 95deg, transparent 190deg);
    opacity: 0;
    transform: rotate(0deg) scale(.78);
    z-index: 0;
}
.theme-toggle .theme-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .28s ease, transform .42s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}
.theme-toggle .theme-sun {
    color: #f59e0b;
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}
.theme-toggle .theme-moon {
    color: var(--blue);
    opacity: 0;
    transform: translateY(12px) rotate(-70deg) scale(.72);
}
.dark .theme-toggle::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color), transparent 72%), transparent 70%);
    transform: scale(1);
}
.dark .theme-toggle .theme-sun {
    opacity: 0;
    transform: translateY(-12px) rotate(80deg) scale(.72);
}
.dark .theme-toggle .theme-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}
.theme-toggle.is-animating {
    animation: theme-toggle-bounce .64s cubic-bezier(.2,.8,.2,1);
}
.theme-toggle.is-animating::after {
    animation: theme-toggle-orbit .64s ease;
}
.theme-toggle.is-animating .theme-icon i {
    animation: theme-icon-pop .64s cubic-bezier(.2,.8,.2,1);
}
.wishlist-link i { color: #ef4444; }
.wishlist-link:hover {
    background: #fee2e2;
    color: #ef4444;
}
.main-header .round-action.wishlist-link:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    box-shadow: none;
    transform: none;
}
.main-header .round-action.wishlist-link:hover i {
    color: #ef4444;
}
.dark .wishlist-link:hover {
    background: rgba(239, 68, 68, .16);
    color: #ff6b6b;
}
.dark .main-header .round-action.wishlist-link:hover {
    background: rgba(239, 68, 68, .16);
    color: #ff6b6b;
    border-color: rgba(248, 113, 113, .34);
}
.dark .main-header .round-action.wishlist-link:hover i {
    color: #ff6b6b;
}
.cart-count {
    position: absolute;
    right: -6px;
    top: -8px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border: 2px solid var(--surface);
    overflow: visible;
    flex: 0 0 24px;
}
.cart-count-number {
    position: relative;
    display: block;
    line-height: 1;
    padding: 0;
    transform: none;
}
.cart-count-plus {
    position: absolute;
    right: -7px;
    top: -3px;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 0 var(--surface), 1px 0 0 var(--surface), 0 -1px 0 var(--surface), -1px 0 0 var(--surface);
    pointer-events: none;
}
.auth-chip {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--blue), var(--surface) 94%));
    color: var(--ink);
    padding: 6px 8px 6px 18px;
    box-shadow: none;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: min-height .24s cubic-bezier(.2,.8,.2,1), padding .24s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease, border-color .2s ease;
}
.auth-chip-label {
    font-weight: 500;
}
.auth-chip:hover {
    background: var(--blue);
    color: #ffffff;
    border-color: color-mix(in srgb, var(--blue), #ffffff 24%);
    transform: none;
}
.auth-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #ffffff;
    box-shadow: none;
    flex: 0 0 34px;
    transition: width .24s cubic-bezier(.2,.8,.2,1), height .24s cubic-bezier(.2,.8,.2,1), flex-basis .24s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease;
}
.auth-chip:hover .auth-chip-icon {
    background: #ffffff;
    color: var(--blue);
}
.auth-chip-icon i {
    font-size: 1.12rem;
    line-height: 1;
}

.mobile-scroll-search,
.mobile-search-overlay,
.mobile-menu {
    display: none;
}
.mobile-scroll-search {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-130%);
    transition: opacity 240ms ease, transform 240ms ease;
}
.mobile-scroll-search.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.mobile-search-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 220ms ease, transform 220ms ease;
}
.mobile-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    pointer-events: none;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 18, 35, .42);
    opacity: 0;
    transition: opacity .24s ease;
}
.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(88vw, 360px);
    height: 100%;
    padding: 18px;
    background: var(--surface);
    color: var(--ink);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    box-shadow: 26px 0 70px rgba(8, 18, 35, .22);
    transform: translateX(-104%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    overflow-y: auto;
}
.mobile-menu.is-open {
    pointer-events: auto;
}
.mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}
.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.mobile-menu-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #ffffff;
    margin-bottom: 18px;
}
.mobile-menu-account strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.1;
}
.mobile-menu-account small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.76);
    font-size: .78rem;
    font-weight: 600;
}
.mobile-menu-account i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 1.45rem;
    flex: 0 0 42px;
}
.mobile-menu-theme {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--blue), var(--surface) 92%);
    border: 1px solid var(--surface-border);
    margin-bottom: 18px;
}
.mobile-menu-theme strong {
    display: block;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.1;
}
.mobile-menu-theme small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 500;
}
.mobile-menu-theme-toggle {
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--surface-border);
    flex: 0 0 46px;
}
.mobile-menu-links {
    display: grid;
    gap: 9px;
}
.mobile-menu-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--header-font-size);
    font-weight: var(--header-font-weight);
    text-transform: capitalize;
    border: 1px solid var(--surface-border);
}
.mobile-menu-links a:hover {
    background: var(--blue);
    color: #ffffff;
    border-color: color-mix(in srgb, var(--blue), #ffffff 22%);
}
.mobile-menu-links i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: var(--surface);
    flex: 0 0 28px;
}
.mobile-menu-links a:hover i {
    color: var(--blue);
    background: #ffffff;
}
.mobile-menu-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
}
.mobile-menu-trust span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--blue), var(--surface) 91%);
    color: var(--muted);
    font-size: var(--header-font-size);
    font-weight: var(--header-font-weight);
}
.mobile-menu-trust i {
    color: var(--blue);
    font-size: 1.15rem;
}
.mobile-search-card,
.mobile-search-panel {
    background: color-mix(in srgb, var(--surface), transparent 4%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}
.mobile-search-card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 8px;
}
.mobile-search-form,
.mobile-overlay-search {
    position: relative;
}
.mobile-search-form input,
.mobile-overlay-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
    outline: 0;
    font-weight: 400;
}
.mobile-search-form input {
    min-height: 46px;
    padding: 0 50px 0 20px;
    font-size: .9rem;
}
.mobile-overlay-search input {
    min-height: 58px;
    padding: 0 62px 0 22px;
    font-size: 1rem;
}
.mobile-search-form button,
.mobile-overlay-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--solid-bg);
    color: var(--solid-text);
    transform: translateY(-50%);
}
.mobile-search-form button {
    width: 38px;
    height: 38px;
}
.mobile-overlay-search button {
    width: 46px;
    height: 46px;
}
.mobile-search-panel {
    min-height: 100%;
    border-bottom: 8px solid var(--blue);
    border-radius: var(--radius-xl);
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.mobile-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.mobile-overlay-search { margin-bottom: 20px; }
.mobile-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.mobile-quick-grid a {
    min-height: 76px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-lg);
    background: var(--cream);
    padding: 16px;
    color: var(--ink);
    font-family: var(--font-entities);
    font-weight: 500;
}
.mobile-quick-grid a.is-active {
    background: var(--solid-bg);
    color: var(--solid-text);
}
.popular-searches {
    margin-top: auto;
    border-radius: var(--radius-lg);
    background: var(--cream);
    padding: 16px;
}
.popular-searches p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.popular-searches div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.popular-searches a {
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 400;
}

.category-strip { display: none; }
.category-strip a {
    color: var(--muted);
}

.container {
    width: var(--content-shell-width);
    max-width: none;
    margin: 0 auto;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 30px;
    align-items: stretch;
    padding-top: 8px;
}
.hero-copy {
    position: relative;
    padding: 46px;
    border-radius: var(--radius-lg);
    min-height: 560px;
    background: var(--hero-copy-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-copy:after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -70px;
    bottom: -70px;
    border-radius: 58px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color), transparent 76%), color-mix(in srgb, var(--primary-color), #ffffff 76%));
    transform: rotate(18deg);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hero-badge-bg);
    color: var(--muted);
    padding: 10px 15px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: var(--soft-shadow);
}
.hero h1 {
    max-width: 720px;
    margin: 24px 0 20px;
    font-size: clamp(3.4rem, 6vw, 6.8rem);
    line-height: .98;
    letter-spacing: 0;
}
.hero p {
    max-width: 530px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: var(--radius);
    border: 1px solid var(--surface-border);
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: none; box-shadow: none; }
.btn-primary { background: var(--blue); color: white; border-color: color-mix(in srgb, var(--blue), #fff 18%); box-shadow: none; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: none; }
.btn-dark { background: var(--solid-bg); color: var(--solid-text); border-color: color-mix(in srgb, var(--solid-bg), #fff 16%); }
.btn-light { background: var(--button-light-bg); color: var(--ink); border-color: var(--surface-border); }
.btn-soft { background: color-mix(in srgb, var(--primary-color), #ffffff 88%); color: var(--primary-color); border-color: color-mix(in srgb, var(--primary-color), #ffffff 72%); }
.btn-lime { background: var(--blue); color: #ffffff; border-color: color-mix(in srgb, var(--blue), #fff 18%); box-shadow: none; }
.btn-block { width: 100%; }

.home-section-action {
    min-height: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-color), #ffffff 82%);
    background: color-mix(in srgb, var(--primary-color), #ffffff 88%);
    color: var(--primary-color);
    box-shadow: none;
    font-family: var(--font-body);
    font-size: .84rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.home-section-action i {
    font-size: .95rem;
    line-height: 1;
}

.home-section-action:hover {
    background: color-mix(in srgb, var(--primary-color), #ffffff 82%);
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 72%);
    color: var(--primary-hover-color);
    transform: none;
}

.home-design-shell .home-section-action,
.home-design-shell button.home-section-action {
    min-height: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--primary-color), #ffffff 82%) !important;
    background: color-mix(in srgb, var(--primary-color), #ffffff 88%) !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
    font-family: var(--font-body) !important;
    font-size: .84rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.home-design-shell .home-section-action:hover,
.home-design-shell button.home-section-action:hover {
    background: color-mix(in srgb, var(--primary-color), #ffffff 82%) !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 72%) !important;
    color: var(--primary-hover-color) !important;
    box-shadow: none !important;
}

.home-design-shell button.product-card-cart-btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 26%) !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: .84rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

.home-design-shell button.product-card-cart-btn:hover {
    background: var(--primary-hover-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-hover-color) !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-design-shell button.home-hero-cta,
.home-design-shell a.home-hero-cta {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 18px 0 6px !important;
    gap: 10px !important;
    border-radius: 999px !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 24%) !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-size: .84rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

.home-design-shell button.home-hero-cta span,
.home-design-shell a.home-hero-cta span {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    background: var(--solid-bg) !important;
    color: var(--primary-color) !important;
    border-radius: 999px !important;
}

.home-design-shell button.home-hero-cta i,
.home-design-shell a.home-hero-cta i {
    display: inline-block !important;
    font-size: 1rem !important;
    animation: none;
    transform: translateX(0);
    will-change: auto;
}

.home-design-shell button.home-hero-cta:hover i,
.home-design-shell a.home-hero-cta:hover i {
    animation: home-hero-arrow-float .8s ease-in-out infinite;
    will-change: transform;
}

.home-design-shell button.home-hero-cta:hover,
.home-design-shell a.home-hero-cta:hover {
    background: var(--primary-hover-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-hover-color) !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-hero-carousel {
    position: relative;
}

.home-hero-slides,
.home-hero-slide {
    position: absolute;
    inset: 0;
}

.home-hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}

.home-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
}

.home-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .94) 0%, rgba(17, 24, 39, .76) 45%, rgba(17, 24, 39, .18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, .34), rgba(17, 24, 39, .08));
    pointer-events: none;
}

.home-hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .74;
    transition: transform 6s ease;
}

.home-hero-slide.is-active .home-hero-slide-image {
    transform: scale(1.04);
}

.home-hero-slide-content {
    position: relative;
    z-index: 5;
    width: min(100%, 680px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}

.home-hero-badge {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    font-size: .82rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.home-hero-badge i {
    color: var(--primary-color);
    font-size: 1rem;
}

.home-hero-carousel-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-design-shell .home-hero-carousel-control {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .14) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    transform: none !important;
}

.home-design-shell .home-hero-carousel-control:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: none !important;
}

.home-design-shell .home-hero-carousel-control i {
    font-size: 1rem !important;
}

.home-design-shell button.home-promo-btn,
.home-design-shell a.home-promo-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 112px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 26%) !important;
    box-shadow: none !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

.home-design-shell button.home-promo-btn.bg-white,
.home-design-shell a.home-promo-btn.bg-white {
    background: #ffffff !important;
    color: #172033 !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 82%) !important;
}

.home-design-shell button.home-promo-btn.bg-brandDark,
.home-design-shell a.home-promo-btn.bg-brandDark {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.home-design-shell button.home-promo-btn:hover,
.home-design-shell a.home-promo-btn:hover {
    background: var(--primary-hover-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-hover-color) !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-design-shell button.home-promo-btn.bg-white:hover,
.home-design-shell a.home-promo-btn.bg-white:hover {
    background: #edf2f7 !important;
    color: #172033 !important;
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 76%) !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-design-shell button.home-hero-cta,
.home-design-shell a.home-hero-cta,
.home-design-shell button.home-promo-btn,
.home-design-shell a.home-promo-btn,
.home-design-shell .home-section-action,
.home-design-shell button.home-section-action,
.home-design-shell button.product-card-cart-btn {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
}

.home-design-shell button.home-promo-btn,
.home-design-shell a.home-promo-btn {
    font-weight: 700 !important;
}

@keyframes home-hero-arrow-float {
    0%, 100% {
        transform: translate(0, 0);
    }
    45% {
        transform: translateX(4px);
    }
    70% {
        transform: translateX(1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-design-shell button.home-hero-cta i,
    .home-design-shell a.home-hero-cta i {
        animation: none !important;
        transform: none !important;
    }
}

.hero-panel {
    border-radius: var(--radius-lg);
    background: #101928;
    color: white;
    overflow: hidden;
    position: relative;
    min-height: 560px;
    box-shadow: var(--shadow);
}
.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
}
.hero-panel-content {
    position: absolute;
    inset: auto 24px 24px 24px;
    display: grid;
    gap: 14px;
}
.hero-panel-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.hero-panel-card strong { display: block; font-size: 2.2rem; }
.hero-panel-card span { color: rgba(255,255,255,.74); }

.trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.trust-item {
    display: flex;
    gap: 13px;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--soft-shadow);
}
.trust-item i { font-size: 1.8rem; color: var(--blue); }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: .88rem; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 24px;
}
.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1;
    font-weight: 500;
    max-width: 860px;
    text-wrap: balance;
}
.section-head p,
.page-title p {
    color: var(--muted);
    margin: 12px 0 0;
    max-width: min(680px, 100%);
    line-height: 1.5;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.category-card {
    min-height: 190px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--blue);
    font-size: 1.8rem;
}
.category-card strong {
    font-family: var(--font-entities);
    font-size: 1.18rem;
    font-weight: 500;
}
.category-card span { color: var(--muted); font-size: .9rem; }

.home-popular-categories {
    padding-block: 0;
}

.home-popular-categories-head {
    margin-bottom: 34px;
}

.home-popular-categories-head h2 {
    margin: 0;
}

.home-category-carousel {
    --home-category-gap: clamp(20px, 1.35vw, 28px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-category-rail {
    display: flex;
    gap: var(--home-category-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 4px;
}

.home-category-rail::-webkit-scrollbar {
    display: none;
}

.home-category-rail.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.home-category-rail.is-dragging .home-category-card {
    pointer-events: none;
}

.home-category-card {
    flex: 0 0 clamp(160px, 10.2vw, 196px) !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #333333;
    text-align: center;
}

.home-category-card:hover {
    color: #333333;
}

.home-category-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
}

.home-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    mix-blend-mode: normal;
    transition: transform .45s ease;
}

.home-category-card:hover .home-category-media img {
    transform: scale(1.03);
}

.home-category-card h3 {
    width: 100%;
    min-height: 2.42em;
    margin: 2px 0 -6px;
    color: #343434;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.02vw, 1.22rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: 0;
}

.home-category-card p {
    margin: 0;
    color: #777777;
    font-size: clamp(.86rem, .9vw, 1rem);
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .home-category-card {
        flex-basis: calc((100% - (var(--home-category-gap) * 6)) / 7) !important;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--surface);
    border: 0 !important;
    border-radius: 14px;
    padding: 18px;
    box-shadow: none;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: background-color .18s ease, border-color .18s ease;
}
.product-card:hover { transform: none; box-shadow: none; }
.product-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 0 !important;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.02); }
.product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: .64rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wish-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--muted-2);
    background: var(--wish-bg);
    border: 1px solid var(--surface-border);
    display: grid;
    place-items: center;
    box-shadow: none;
}
.wish-btn.is-active,
.wish-btn:hover { color: var(--danger); box-shadow: none; transform: none; }
.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.product-brand {
    margin: 0 0 13px;
    font-family: var(--font-body);
    color: #9a9a9a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}
.product-body h3 {
    margin: 0 0 10px;
    min-height: 0;
    max-height: 2.5em;
    color: #3b3b3b;
    font-family: var(--font-title);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title {
    margin: 0 0 10px !important;
    min-height: 0 !important;
    max-height: 2.5em !important;
    color: #3b3b3b;
    font-family: var(--font-title);
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0;
    display: -webkit-box !important;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-body p {
    min-height: 0;
}
.product-foot {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
}
.product-foot strong {
    font-family: var(--font-body);
    font-size: 1.22rem;
    font-weight: 700;
}
.product-foot del {
    display: block;
    color: var(--muted-2);
    font-size: .82rem;
}
.icon-add {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #ffffff;
    border: 1px solid color-mix(in srgb, var(--blue), #fff 18%);
    box-shadow: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-add:hover { background: var(--blue-dark); color: #ffffff; box-shadow: none; transform: none; }

.product-category-line {
    margin: 0 0 12px;
    color: #9a9a9a;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.25;
}

.product-card .product-card-cart-btn {
    width: 100%;
    min-height: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease;
}

.product-card .product-card-cart-btn:hover {
    background: var(--blue-dark);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.home-design-shell article.home-product-card {
    padding: 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: background-color .18s ease, border-color .18s ease !important;
}

.home-design-shell article.home-product-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.home-design-shell .home-product-card .product-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

.home-design-shell .home-product-card .product-media img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    padding: 0 !important;
    mix-blend-mode: normal !important;
}

.home-design-shell .home-product-card .home-product-media {
    aspect-ratio: 1 / 1 !important;
}

.home-design-shell .home-product-card .home-product-image {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
}

.home-design-shell .home-product-card .product-card-title {
    font-size: .92rem !important;
    line-height: 1.22 !important;
    max-height: 2.44em !important;
    margin-bottom: 8px !important;
}

.home-design-shell .home-product-card:hover .product-media img {
    transform: scale(1.02) !important;
}

.home-design-shell .home-product-card .mt-auto {
    display: grid;
    gap: 18px;
    margin-top: auto !important;
}

.home-design-shell .home-product-card .product-card-cart-btn {
    margin-top: 0 !important;
}

.promo-band {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 85% 20%, rgba(53,212,255,.2), transparent 25%),
        linear-gradient(135deg, #101928, #1a2b48);
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.promo-band h2 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: .96;
    margin: 16px 0;
}
.promo-band p { color: rgba(255,255,255,.72); max-width: 570px; line-height: 1.65; }
.promo-band img {
    width: min(100%, 480px);
    margin-left: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 22px 60px rgba(0,0,0,.3);
}

.brand-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.brand-pill {
    min-height: 86px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    display: grid;
    place-items: center;
    font-family: var(--font-entities);
    font-weight: 500;
    color: var(--muted);
}

.newsletter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    border-radius: var(--radius-xl);
    padding: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.newsletter h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter form {
    width: min(520px, 100%);
    display: flex;
    gap: 10px;
    background: var(--cream);
    border-radius: 999px;
    padding: 7px;
}
.newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 16px;
    color: var(--ink);
}
.newsletter input::placeholder,
.nav-search input::placeholder,
.mobile-search-form input::placeholder,
.mobile-overlay-search input::placeholder,
.search-bar input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: .78;
}

.page-title {
    padding: 0 var(--page-title-inset);
}
.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

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

.filter-panel,
.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    padding: 22px;
}
.filter-panel {
    position: sticky;
    top: 50vh;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    transform: translateY(-50%);
    scrollbar-width: thin;
}

body.searchable-modal-open .filter-panel {
    z-index: 2000;
}

.filter-panel h3 { margin: 0 0 18px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.required-star {
    color: var(--danger);
    font-weight: 700;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 46px;
    padding: 0 13px;
    outline: 0;
    background: var(--input-bg);
    color: var(--ink);
}

.field select,
.sort-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: right 18px center;
    padding-left: 18px;
    padding-right: 48px;
}

.dark .field select,
.dark .sort-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.field textarea { min-height: 120px; padding-top: 12px; resize: vertical; }
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-trigger {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--ink);
    text-align: left;
    font-weight: 600;
}

.searchable-select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-trigger i {
    flex: 0 0 auto;
    font-size: 1.05rem;
    transition: transform .18s ease;
}

.searchable-select.is-open .searchable-select-trigger i {
    transform: rotate(180deg);
}

.searchable-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 35;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.searchable-select[data-searchable-popup] .searchable-select-menu {
    position: fixed;
    left: var(--searchable-popup-left, 12px);
    right: auto;
    top: var(--searchable-popup-top, 80px);
    width: var(--searchable-popup-width, 320px);
    max-height: var(--searchable-popup-max-height, 420px);
    z-index: 80;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(23, 32, 51, .18);
}

.dark .searchable-select[data-searchable-popup] .searchable-select-menu {
    box-shadow: 0 28px 74px rgba(0, 0, 0, .46);
}

.searchable-select-menu[hidden] {
    display: none;
}

.searchable-select-modal-head {
    display: none;
}

.searchable-select-search {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--muted);
}

.searchable-select-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
}

.searchable-select-options {
    max-height: 270px;
    overflow-y: auto;
    padding-right: 3px;
}

.searchable-select[data-searchable-popup] .searchable-select-options {
    max-height: calc(var(--searchable-popup-max-height, 420px) - 70px);
}

.searchable-select-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px 0 calc(12px + (var(--depth, 0) * 14px));
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-weight: 600;
}

.searchable-select-option:hover,
.searchable-select-option.is-selected {
    background: var(--primary-soft-color);
    color: var(--blue-dark);
}

.searchable-select-option[hidden],
.searchable-select-empty[hidden] {
    display: none;
}

.searchable-select-empty {
    margin: 10px 0 4px;
    color: var(--muted);
    text-align: center;
    font-weight: 600;
}

.sort-searchable-select {
    width: min(220px, 100%);
    min-width: 0;
}

.sort-form {
    flex: 0 0 auto;
}

.sort-searchable-select .searchable-select-trigger {
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    gap: 8px;
}

.sort-searchable-select .searchable-select-trigger i {
    font-size: .95rem;
}

.sort-searchable-select .searchable-select-menu {
    left: auto;
    right: 0;
    width: max-content;
    min-width: 190px;
    max-width: min(240px, calc(100vw - 32px));
}

.sort-searchable-select .searchable-select-option {
    white-space: nowrap;
}

.sort-searchable-select .searchable-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-menu {
    position: fixed;
    inset: 0;
    z-index: 2001;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    padding: clamp(18px, 3vw, 34px);
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--blue), transparent 88%), transparent 34%),
        var(--cream);
    box-shadow: none;
    overflow: hidden;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-menu[hidden] {
    display: none;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-modal-head,
.searchable-select[data-searchable-fullscreen] .searchable-select-search,
.searchable-select[data-searchable-fullscreen] .searchable-select-options,
.searchable-select[data-searchable-fullscreen] .searchable-select-empty {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-modal-head strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.8rem);
    font-weight: 600;
    line-height: 1.15;
}

.searchable-select-modal-close {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 1.15rem;
    box-shadow: var(--soft-shadow);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.searchable-select-modal-close:hover {
    border-color: color-mix(in srgb, var(--blue), transparent 52%);
    background: var(--primary-soft-color);
    color: var(--blue-dark);
}

.searchable-select[data-searchable-fullscreen] .searchable-select-search {
    min-height: 52px;
    margin-bottom: 0;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.searchable-select[data-searchable-fullscreen] .searchable-select-search input {
    min-height: 50px;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-options {
    min-height: 0;
    max-height: none;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    overflow-y: auto;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-option {
    min-height: 46px;
}

.searchable-select[data-searchable-fullscreen] .searchable-select-empty {
    padding: 18px 10px;
}

.price-range-control {
    display: grid;
    gap: 14px;
    padding: 6px 2px 0;
}

.price-range-slider {
    position: relative;
    height: 34px;
}

.price-range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--line), transparent 18%) 0 var(--range-start, 0%),
        var(--blue) var(--range-start, 0%) var(--range-end, 100%),
        color-mix(in srgb, var(--line), transparent 18%) var(--range-end, 100%) 100%
    );
}

.field .price-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    appearance: none;
    pointer-events: none;
    background: transparent;
}

.field .price-range-input::-webkit-slider-runnable-track {
    height: 4px;
    border: 0;
    background: transparent;
}

.field .price-range-input::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    appearance: none;
    background: var(--blue);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--blue), transparent 70%);
    cursor: pointer;
    pointer-events: auto;
}

.field .price-range-input::-moz-range-track {
    height: 4px;
    border: 0;
    background: transparent;
}

.field .price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--blue), transparent 70%);
    cursor: pointer;
    pointer-events: auto;
}

.field .price-range-input[data-price-min] {
    z-index: 3;
}

.field .price-range-input[data-price-max] {
    z-index: 4;
}

.price-range-value {
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 500;
}

.price-range-value strong {
    color: var(--ink);
    font-weight: 800;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.view-toggle {
    display: inline-flex;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: none;
}
.view-toggle button {
    width: 40px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--surface-border);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.view-toggle button:hover,
.view-toggle button.is-active { background: var(--blue); color: #ffffff; border-color: color-mix(in srgb, var(--blue), #fff 18%); }
.sort-form select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: var(--input-bg);
    color: var(--ink);
    padding-top: 0;
    padding-bottom: 0;
    outline: 0;
    font-weight: 600;
}
.product-grid.is-list {
    grid-template-columns: 1fr;
}
.product-grid.is-list .product-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
}
.product-grid.is-list .product-media { height: 220px; }

.catalog-pagination {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 30px 0 0;
}

.catalog-pagination-summary {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
}

.catalog-pagination-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface), #ffffff 24%);
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.catalog-pagination-list::-webkit-scrollbar {
    display: none;
}

.catalog-page-link,
.catalog-page-ellipsis {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.catalog-page-link {
    background: transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.catalog-page-link:hover {
    background: color-mix(in srgb, var(--primary-color), transparent 88%);
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color), transparent 68%);
    transform: none;
}

.catalog-page-link.is-current {
    background: var(--solid-bg);
    color: var(--solid-text);
    border-color: var(--solid-bg);
}

.catalog-page-link.is-disabled {
    color: var(--muted-2);
    pointer-events: none;
    opacity: .52;
}

.catalog-page-control {
    min-width: 96px;
}

.catalog-page-control i {
    font-size: .95rem;
    line-height: 1;
}

.catalog-page-ellipsis {
    min-width: 30px;
    padding: 0 4px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .catalog-pagination-list {
        justify-content: flex-start;
        width: 100%;
        border-radius: 18px;
    }

    .catalog-page-link,
    .catalog-page-ellipsis {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: .84rem;
    }

    .catalog-page-control {
        min-width: 38px;
    }

    .catalog-page-control span {
        display: none;
    }
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}
.gallery {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.gallery-main {
    height: 520px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.thumb-row img {
    height: 82px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: var(--surface-2);
}
.detail-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}
.detail-card h1 {
    margin: 10px 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 500;
}
.price-line {
    margin: 22px 0;
}

.product-stock-line,
.product-body .product-stock-line,
.stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #303030;
    font-family: var(--font-body);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.product-stock-line i,
.stock i {
    color: var(--blue);
    font-size: 1.08em;
    line-height: 1;
}

.product-stock-line.is-out,
.stock.out,
.stock.out i {
    color: var(--danger);
}

.product-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: 0;
}

strong.product-price-current,
.product-foot strong.product-price-current,
.price-line strong.product-price-current {
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
}

.price-line strong.product-price-current {
    font-size: 2rem;
}

.detail-card .price-line strong.product-price-current {
    font-size: 2rem;
}

.product-price-old,
.product-foot del.product-price-old,
.price-line del.product-price-old {
    display: inline;
    color: #a7a7a7;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    text-decoration-line: line-through;
    text-decoration-thickness: 1.5px;
}

.price-line del.product-price-old {
    font-size: 1.05rem;
}

.detail-card .price-line del.product-price-old {
    font-size: 1.05rem;
}

.product-price-line-compact {
    gap: 6px;
}

.product-price-line-compact strong.product-price-current {
    font-size: 1rem;
}

.product-price-line-compact .product-price-old {
    font-size: .78rem;
}

.dark .product-price-old,
.dark .product-foot del.product-price-old,
.dark .price-line del.product-price-old {
    color: #9aa6b7;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}
.spec-table th,
.spec-table td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}
.spec-table th {
    width: 34%;
    color: var(--muted);
    background: var(--table-head);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th,
.cart-table td {
    text-align: left;
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
}
.cart-product {
    display: flex;
    gap: 14px;
    align-items: center;
}
.cart-product img {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.qty-input {
    width: 78px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    background: var(--input-bg);
    color: var(--ink);
}
.checkout-grid,
.account-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.summary-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.summary-line.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 0;
}

.cart-page .checkout-grid .btn {
    min-height: 42px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    gap: 8px;
}

.cart-page .checkout-grid .summary-card .btn {
    min-height: 42px;
    height: 42px;
}

.cart-page .checkout-grid .cart-table .btn {
    min-height: 34px;
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: .82rem;
}

.cart-page .checkout-grid .content-card > .btn {
    margin-top: 10px;
}

.auth-wrap {
    width: var(--content-shell-width);
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    gap: 22px;
    align-items: stretch;
}
.auth-side {
    position: relative;
    min-height: 640px;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--surface-border);
    background: linear-gradient(145deg, #0d1728 0%, #121c2d 46%, #07111e 100%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.auth-side::before,
.auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.auth-side::before {
    z-index: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--primary-color), transparent 88%) 1px, transparent 1px),
        linear-gradient(0deg, color-mix(in srgb, var(--primary-color), transparent 91%) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: .34;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.22));
}
.auth-side::after {
    inset: -28%;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 18%, rgba(20, 110, 180, .34), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(53, 212, 255, .16), transparent 24%),
        linear-gradient(112deg, transparent 0 38%, rgba(20, 110, 180, .18) 48%, transparent 58% 100%);
    filter: blur(2px);
    opacity: .58;
    mix-blend-mode: normal;
}
.auth-side > * {
    position: relative;
    z-index: 2;
}
.auth-side .eyebrow {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.82);
    box-shadow: none;
}
.auth-side h2 {
    position: relative;
    z-index: 3;
    max-width: 500px;
    margin: 26px 0 14px;
    font-size: clamp(1.55rem, 2.1vw, 1.95rem);
    line-height: 1.2;
    font-weight: 500;
}
.auth-side p {
    position: relative;
    z-index: 3;
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: .88rem;
    line-height: 1.58;
}
.auth-side-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}
.auth-side-grid div {
    min-height: 132px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary-color), transparent 78%), transparent 34%);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}
.auth-side-grid div::after {
    content: none;
}
.auth-side-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color), #ffffff 22%));
    color: #ffffff;
    font-size: 1.28rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.auth-side-grid strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.15;
}
.auth-side-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.66);
    font-size: .9rem;
    line-height: 1.35;
}
.auth-side-device {
    display: none;
}
.auth-device-screen {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
        radial-gradient(circle at 74% 26%, var(--primary-color), transparent 28%);
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
    padding: 18px;
}
.auth-device-screen span {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
    margin-bottom: 10px;
}
.auth-device-screen span:nth-child(1) { width: 62%; }
.auth-device-screen span:nth-child(2) { width: 82%; opacity: .72; }
.auth-device-screen span:nth-child(3) { width: 46%; opacity: .52; }
.auth-device-base {
    width: 46%;
    height: 12px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
}
.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.auth-card h1 {
    margin: 0 0 18px;
    font-size: clamp(1.55rem, 2.1vw, 1.95rem);
    font-weight: 500;
    line-height: 1.2;
}
.auth-card h1 span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}
.auth-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    margin: 0 0 22px;
    border-radius: var(--radius);
    background: var(--cream);
    border: 1px solid var(--surface-border);
}
.auth-toggle button {
    min-height: 44px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.auth-toggle button.is-active {
    background: var(--blue);
    color: #ffffff;
    border-color: color-mix(in srgb, var(--blue), #ffffff 20%);
}
.auth-panel {
    display: none;
}
.auth-panel.is-active {
    display: block;
}
.auth-panel p {
    margin: 16px 0 0;
    color: var(--muted);
}
.auth-maintenance-box {
    display: grid;
    gap: 14px;
    place-items: center;
    padding: 28px;
    border: 1px solid var(--surface-border);
    border-radius: calc(var(--radius) + 8px);
    background: color-mix(in srgb, var(--primary-soft-color), var(--card-bg) 72%);
    text-align: center;
}
.auth-maintenance-box > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft-color);
    color: var(--primary-color);
    font-size: 1.7rem;
}
.auth-maintenance-box h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}
.auth-maintenance-box p {
    max-width: 360px;
    margin: 0;
    line-height: 1.55;
}

.checkout-maintenance {
    width: var(--content-shell-width);
    max-width: none;
    min-height: min(560px, calc(100vh - 240px));
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.checkout-maintenance-card {
    width: min(100%, 720px);
    padding: clamp(26px, 4vw, 48px);
    display: grid;
    justify-items: center;
    text-align: center;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary-color), transparent 82%), transparent 48%),
        var(--surface);
    box-shadow: var(--soft-shadow);
}

.checkout-maintenance-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft-color);
    color: var(--blue);
    font-size: 1.7rem;
}

.checkout-maintenance-kicker {
    margin: 16px 0 10px;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.checkout-maintenance-card h1 {
    max-width: 620px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    line-height: 1.08;
}

.checkout-maintenance-card > p:last-child {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.65;
}

.checkout-maintenance-body .site-footer {
    margin-top: 0;
}

@media (max-width: 640px) {
    .checkout-maintenance {
        padding: 18px 0;
        min-height: 360px;
    }

    .checkout-maintenance-card {
        padding: 24px 18px;
    }
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--muted);
    overflow: hidden;
    transition: border-color .18s ease, background .18s ease;
}
.auth-input-wrap:focus-within {
    border-color: color-mix(in srgb, var(--primary-color), #ffffff 42%);
    background: color-mix(in srgb, var(--input-bg), var(--primary-color) 3%);
}
.auth-input-wrap > i {
    width: 46px;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 1.05rem;
    flex: 0 0 46px;
}
.auth-input-wrap input {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
    padding: 0 14px 0 0;
}
.auth-input-wrap input::placeholder {
    color: var(--muted-2);
    opacity: 1;
}
.auth-password-wrap input {
    padding-right: 50px;
}
.auth-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.auth-password-toggle:hover {
    background: var(--surface-2);
    color: var(--primary-color);
    transform: translateY(-50%) !important;
}
.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary-color), var(--surface) 94%);
    cursor: pointer;
}
.auth-remember-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex: 0 0 18px;
}
.auth-remember-row strong {
    display: block;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
}
.auth-remember-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
}
.auth-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
}
.auth-social-divider::before,
.auth-social-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}
.google-login-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: var(--radius);
    border: 1px solid var(--surface-border);
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface), var(--blue) 3%));
    color: var(--ink);
    font-weight: 600;
    box-shadow: none;
    transition: border-color .22s ease, background .22s ease, color .22s ease;
}
.google-login-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 0 34%, rgba(255,255,255,.72) 48%, transparent 62% 100%);
    transform: translateX(-120%);
    transition: none;
}
.google-login-btn:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--blue), #ffffff 36%);
    background: color-mix(in srgb, var(--blue), var(--surface) 92%);
    box-shadow: none;
}
.google-login-btn:hover::before {
    transform: translateX(-120%);
}
.google-login-btn.is-pulsing {
    animation: google-button-pop .48s cubic-bezier(.2,.8,.2,1);
}
.google-login-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(23,32,51,.08);
    flex: 0 0 28px;
}
.google-login-icon svg {
    width: 18px;
    height: 18px;
}
.link-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 500;
}
.link-button:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.link-blue { color: var(--blue-dark); font-weight: 800; }

.policy-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
    color: var(--policy-text);
    line-height: 1.75;
}

.policy-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px 0;
    border-radius: 12px;
}

.policy-card img[data-align="center"] {
    margin-left: auto;
    margin-right: auto;
}

.policy-card img[data-align="right"] {
    margin-left: auto;
    margin-right: 0;
}

.not-found-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: stretch;
}

.not-found-copy,
.not-found-visual,
.not-found-links {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.not-found-copy {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.not-found-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--primary-soft-color);
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.not-found-copy h1 {
    max-width: 620px;
    margin: 18px 0 12px;
    font-size: 2.35rem;
    line-height: 1.12;
}

.not-found-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.not-found-search {
    width: min(100%, 680px);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--input-bg);
}

.not-found-search i {
    color: var(--blue);
    font-size: 1.2rem;
    margin-left: 8px;
}

.not-found-search input {
    min-width: 0;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.not-found-search .btn {
    min-height: 42px;
    padding: 0 18px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.not-found-actions .btn {
    min-height: 44px;
}

.not-found-visual {
    position: relative;
    min-height: 420px;
    padding: 30px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--blue), var(--surface) 16%), var(--surface) 64%),
        var(--surface);
}

.not-found-display {
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.not-found-display span {
    font-family: var(--font-display);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue);
}

.not-found-display i {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--solid-bg);
    color: var(--solid-text);
    font-size: 1.45rem;
}

.not-found-chip {
    position: absolute;
    z-index: 2;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--surface-border);
    box-shadow: var(--soft-shadow);
    font-weight: 700;
}

.not-found-chip i {
    color: var(--blue);
    font-size: 1.2rem;
}

.chip-one {
    top: 42px;
    left: 34px;
}

.chip-two {
    right: 32px;
    top: 112px;
}

.chip-three {
    left: 54px;
    bottom: 54px;
}

.not-found-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.not-found-links a {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    color: var(--ink);
    font-weight: 700;
    border-right: 1px solid var(--line);
}

.not-found-links a:last-child {
    border-right: 0;
}

.not-found-links i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft-color);
    color: var(--blue);
    font-size: 1.15rem;
}

.not-found-links a:hover {
    background: var(--surface-2);
}

.flash {
    width: var(--content-shell-width);
    max-width: none;
    margin: var(--header-content-gap) auto 0;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-weight: 700;
}
.flash + .flash { margin-top: 10px; }
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-danger { background: var(--danger-bg); color: var(--danger-text); }
.flash-info { background: var(--primary-soft-color); color: var(--blue-dark); }

.site-footer {
    width: var(--content-shell-width);
    max-width: none;
    margin: var(--page-section-gap) auto 0;
    padding: 34px 44px 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    border-top: 4px solid var(--blue);
    position: relative;
    overflow: hidden;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
    gap: 34px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand-col p,
.footer-app p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
    margin: 0 0 18px;
}
.footer-brand-col p { max-width: 320px; }
.footer-app p { margin-bottom: 16px; }
.site-footer h3 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: var(--widget-title-size);
    font-weight: 500;
    text-transform: capitalize;
}
.site-footer section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-links a {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 400;
    margin-bottom: 10px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.footer-app img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.footer-bottom img {
    height: 20px;
    width: auto;
    object-fit: contain;
}
.social-row {
    display: flex;
    gap: 12px;
    color: var(--ink);
}
.social-row a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-size: 1.25rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-row a:hover {
    background: var(--blue);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.mobile-bottom-nav {
    display: none;
}

.main-header,
.site-footer,
.trust-item,
.category-card,
.product-card,
.filter-panel,
.content-card,
.detail-card,
.summary-card,
.auth-card,
.policy-card,
.newsletter,
.category-card i,
.newsletter form,
.qty-input,
.round-action,
.auth-chip,
.trust-pill,
.social-row a,
.popular-searches a {
    border: 1px solid var(--surface-border);
}

.main-header { border: 1px solid color-mix(in srgb, var(--primary-color), #ffffff 62%); }
.site-footer { border-top: 4px solid var(--blue); }
.mobile-search-panel {
    border: 1px solid var(--surface-border);
    border-bottom: 8px solid var(--blue);
}

.dark .main-header,
.dark .site-footer,
.dark .trust-item,
.dark .category-card,
.dark .product-card,
.dark .filter-panel,
.dark .content-card,
.dark .detail-card,
.dark .summary-card,
.dark .auth-card,
.dark .policy-card,
.dark .newsletter,
.dark .search-suggest,
.dark .mobile-search-card,
.dark .mobile-search-panel,
.dark .mobile-menu-panel {
    border: 1px solid var(--surface-border);
    box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255,255,255,.035);
}

.dark .mobile-menu-backdrop {
    background: rgba(0, 0, 0, .62);
}

.dark .mobile-menu-links a {
    background: var(--surface-2);
    border-color: var(--surface-border);
}

.dark .auth-toggle {
    background: var(--surface-2);
    border-color: var(--surface-border);
}

.dark .auth-side {
    background: linear-gradient(145deg, #0d1728 0%, #121c2d 46%, #07111e 100%);
    border-color: var(--surface-border);
    color: #ffffff;
}

.dark .auth-side::before {
    background:
        linear-gradient(90deg, rgba(20, 110, 180, .12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(20, 110, 180, .09) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: .34;
}

.dark .auth-side::after {
    background:
        radial-gradient(circle at 20% 18%, rgba(20, 110, 180, .34), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(53, 212, 255, .16), transparent 24%),
        linear-gradient(112deg, transparent 0 38%, rgba(20, 110, 180, .18) 48%, transparent 58% 100%);
    opacity: .58;
    mix-blend-mode: normal;
}

.dark .auth-side .eyebrow {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
    color: rgba(255,255,255,.82);
}

.dark .auth-side p {
    color: rgba(255,255,255,.72);
}

.dark .auth-side-grid div {
    border-color: rgba(255,255,255,.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
        radial-gradient(circle at 100% 0%, rgba(20, 110, 180, .22), transparent 34%);
}

.dark .auth-side-grid span {
    color: rgba(255,255,255,.66);
}

.dark .mobile-menu-theme {
    background: rgba(255,255,255,.06);
    border-color: var(--surface-border);
}

.dark .mobile-menu-theme-toggle {
    background: var(--surface-2);
    border-color: var(--surface-border);
}

.dark .mobile-menu-links i {
    background: rgba(255,255,255,.07);
}

.dark .mobile-menu-trust span {
    background: rgba(255,255,255,.06);
    color: var(--muted);
}

.dark .main-header {
    background: #141b27;
    border: 1px solid rgba(148, 163, 184, .28);
    color: #f8fafc;
    box-shadow: none;
}

.dark .main-header .brand,
.dark .main-header .round-action,
.dark .main-header .auth-chip,
.dark .main-header .nav-search input {
    color: #f8fafc;
}

.dark .site-footer {
    border-top: 4px solid var(--blue);
}

.dark .mobile-search-panel {
    border-bottom: 8px solid var(--blue);
}

.dark .category-card i,
.dark .newsletter form,
.dark .qty-input {
    border: 1px solid var(--surface-border);
}

.dark .btn-light,
.dark .btn-soft,
.dark .round-action,
.dark .auth-chip,
.dark .trust-pill,
.dark .social-row a,
.dark .popular-searches a {
    border: 1px solid var(--surface-border);
}

.dark .auth-chip {
    background: linear-gradient(135deg, rgba(255,255,255,.07), color-mix(in srgb, var(--blue), #101827 78%));
    color: var(--ink);
}

.dark .btn-soft {
    background: color-mix(in srgb, var(--primary-color), #101827 78%);
    color: #ffffff;
}

.dark .auth-chip:hover {
    background: var(--blue);
    color: #ffffff;
}

.dark .round-action {
    box-shadow: none;
}

.dark .main-header .nav-search input,
.dark .main-header .round-action,
.dark .main-header .auth-chip {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(148, 163, 184, .22);
    color: #f8fafc;
}

.dark .main-header .auth-chip-icon,
.dark .main-header .nav-search button {
    background: var(--blue);
    color: #ffffff;
}

.dark .main-header .round-action:not(.theme-toggle):hover,
.dark .main-header .auth-chip:hover {
    background: var(--blue);
    color: #ffffff;
}

.dark .main-header .round-action.wishlist-link:hover {
    background: rgba(239, 68, 68, .16);
    color: #ff6b6b;
    border-color: rgba(248, 113, 113, .34);
}

.dark .main-header .round-action.wishlist-link:hover i {
    color: #ff6b6b;
}

.main-header .theme-toggle:hover {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--surface-border);
    transform: none;
}

.dark .main-header .theme-toggle:hover {
    background: rgba(255, 255, 255, .06);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, .22);
    transform: none;
}

button,
.btn,
.round-action,
.auth-chip,
.icon-add,
.wish-btn,
.google-login-btn,
.home-section-action,
.product-card-cart-btn,
.view-toggle button,
.link-button,
.social-row a,
.mobile-menu-links a,
.mobile-menu-theme-toggle,
.mobile-search-form button,
.mobile-overlay-search button,
.nav-search button {
    box-shadow: none !important;
}

button:hover,
.btn:hover,
.round-action:hover,
.auth-chip:hover,
.icon-add:hover,
.wish-btn:hover,
.google-login-btn:hover,
.home-section-action:hover,
.product-card-cart-btn:hover,
.view-toggle button:hover,
.link-button:hover,
.social-row a:hover,
.mobile-menu-links a:hover,
.mobile-menu-theme-toggle:hover {
    box-shadow: none !important;
}

button:hover:not(.nav-search button):not(.mobile-search-form button):not(.mobile-overlay-search button),
.btn:hover,
.round-action:hover,
.auth-chip:hover,
.icon-add:hover,
.wish-btn:hover,
.google-login-btn:hover,
.home-section-action:hover,
.product-card-cart-btn:hover,
.view-toggle button:hover,
.link-button:hover,
.social-row a:hover,
.mobile-menu-links a:hover,
.mobile-menu-theme-toggle:hover {
    transform: none !important;
}

.nav-search button:hover,
.mobile-search-form button:hover,
.mobile-overlay-search button:hover {
    transform: translateY(-50%) !important;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    background: var(--solid-bg);
    color: var(--solid-text);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(12px);
    opacity: 0;
    transition: .2s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes theme-toggle-bounce {
    0% { transform: scale(1) rotate(0deg); }
    42% { transform: scale(1.1) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes header-sticky-enter {
    0% { opacity: .94; }
    100% { opacity: 1; }
}

@keyframes theme-toggle-orbit {
    0% { opacity: 0; transform: rotate(0deg) scale(.78); }
    36% { opacity: .55; transform: rotate(115deg) scale(.98); }
    100% { opacity: 0; transform: rotate(260deg) scale(1.14); }
}

@keyframes theme-icon-pop {
    0% { transform: scale(.82) rotate(-18deg); }
    52% { transform: scale(1.2) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes google-button-pop {
    0% { transform: scale(1); }
    44% { transform: scale(.985); }
    100% { transform: scale(1); }
}

@media (min-width: 640px) {
    :root {
        --content-shell-width: calc(100% - 64px);
        --page-section-gap: 30px;
        --header-content-gap: var(--page-section-gap);
        --page-title-inset: 18px;
    }
}

@media (min-width: 1024px) {
    :root {
        --content-shell-width: calc(100% - 96px);
        --page-section-gap: 32px;
        --header-content-gap: var(--page-section-gap);
        --page-title-inset: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle,
    .theme-toggle::before,
    .theme-toggle::after,
    .theme-toggle .theme-icon,
    .theme-toggle .theme-icon i,
    .auth-side::before,
    .auth-side::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 1100px) {
    .header-trust { display: none; }
    .nav-search {
        max-width: 420px;
        margin: 0 12px;
    }
    .hero, .promo-band, .detail-grid, .checkout-grid, .account-grid { grid-template-columns: 1fr; }
    .hero-copy, .hero-panel { min-height: auto; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .brand-row { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-panel {
        position: static;
        max-height: none;
        overflow: visible;
        transform: none;
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        max-width: 620px;
    }
    .auth-side {
        display: none;
    }
    .auth-card {
        min-height: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    :root {
        --page-section-gap: 24px;
        --header-content-gap: var(--page-section-gap);
    }
    body { background: var(--cream); }
    main { gap: 42px; }
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        padding-bottom: var(--page-section-gap);
    }
    .main-header {
        width: var(--content-shell-width);
        margin-top: 16px;
        position: sticky;
        top: 0;
        padding: 12px;
        border-radius: var(--radius-lg);
    }
    .site-shell .main-header.is-stuck {
        padding: 8px 12px;
    }
    .site-shell .main-header.is-stuck .brand {
        font-size: 1.05rem;
    }
    .site-shell .main-header.is-stuck .brand-mark {
        width: 31px;
        height: 31px;
    }
    .site-shell .main-header.is-stuck .round-action {
        width: 36px;
        height: 36px;
    }
    .brand { font-size: 1.18rem; }
    .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .trex-logo-copy { gap: 3px; }
    .nav-search { display: none; }
    .header-grid { gap: 10px; }
    .header-actions { gap: 8px; }
    .round-action {
        width: 40px;
        height: 40px;
    }
    .round-action i { font-size: 1.2rem; }
    .mobile-menu-toggle {
        display: grid;
        order: 10;
    }
    .mobile-search-trigger { display: grid; }
    .header-actions > .theme-toggle {
        display: none;
    }
    .header-actions .auth-chip,
    .header-actions .wishlist-link {
        display: none;
    }
    .auth-chip {
        min-height: 40px;
        padding: 4px 5px 4px 12px;
        gap: 7px;
    }
    .auth-chip-label { display: none; }
    .auth-chip-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .mobile-scroll-search {
        position: fixed;
        top: 8px;
        left: 16px;
        right: 16px;
        z-index: 50;
        display: block;
    }
    .mobile-search-overlay {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        background: color-mix(in srgb, var(--cream), transparent 5%);
        backdrop-filter: blur(28px);
        padding: 16px;
    }
    .mobile-menu { display: block; }
    .container { width: var(--content-shell-width); }
    .hero-copy { padding: 26px; border-radius: var(--radius); }
    .hero h1 { font-size: clamp(3rem, 17vw, 4.6rem); }
    .hero-panel { min-height: 420px; border-radius: var(--radius); }
    .trust-row, .category-grid, .product-grid, .brand-row, .newsletter { grid-template-columns: 1fr; }
    .home-popular-categories {
        padding-bottom: 0;
    }
    .home-popular-categories-head {
        margin-bottom: 22px;
    }
    .home-category-rail {
        gap: 16px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }
    .home-category-card {
        flex-basis: 146px !important;
        gap: 12px;
    }
    .home-category-media {
        border-radius: 12px;
    }
    .home-category-media img {
        width: 100%;
        height: 100%;
    }
    .product-grid.is-list .product-card { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .promo-band { padding: 26px; border-radius: var(--radius); }
    .newsletter { padding: 24px; }
    .newsletter form { border-radius: var(--radius); flex-direction: column; }
    .newsletter input { min-height: 46px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .cart-table td { border: 0; padding: 8px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 18px;
    }
    .site-footer {
        width: var(--content-shell-width);
        margin-top: var(--page-section-gap);
        padding: 26px 20px 22px;
        border-radius: var(--radius-lg);
    }
    .mobile-bottom-nav { display: none; }
}

@media (max-width: 420px) {
    .main-header {
        width: var(--content-shell-width);
        padding: 10px;
    }
    .header-grid { gap: 8px; }
    .brand {
        gap: 8px;
        font-size: 1.05rem;
    }
    .brand-mark {
        width: 32px;
        height: 32px;
    }
    .header-actions { gap: 6px; }
    .round-action {
        width: 36px;
        height: 36px;
    }
    .auth-chip {
        min-height: 36px;
        padding: 3px;
    }
    .auth-chip-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

@media (max-width: 380px) {
    .brand {
        gap: 6px;
        font-size: .98rem;
    }
    .brand-mark {
        width: 31px;
        height: 31px;
    }
    .header-actions { gap: 5px; }
}

@media (max-width: 340px) {
    .brand {
        gap: 6px;
        font-size: .9rem;
    }
    .header-actions { gap: 5px; }
    .round-action {
        width: 34px;
        height: 34px;
    }
    .auth-chip {
        min-height: 34px;
        padding: 2px;
    }
    .auth-chip-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

/* Frontend compact sizing */
:root {
    --page-section-gap: 22px;
    --header-content-gap: var(--page-section-gap);
    --page-title-inset: 10px;
    --radius-sm: 10px;
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 12px;
    --widget-title-size: 14px;
}

body {
    font-size: 13px;
    line-height: 1.5;
}

main {
    gap: 36px;
}

.main-header {
    margin-top: 10px;
    padding: 8px 10px;
}

.header-grid {
    gap: 10px;
    min-height: 42px;
}

.brand {
    gap: 8px;
    font-size: 1.28rem;
    flex: 0 0 auto;
}

.brand-mark {
    width: 36px;
    height: 36px;
}

.brand-mark span {
    width: 15px;
    height: 15px;
}

.nav-search {
    max-width: 430px;
    margin: 0 12px;
    min-width: 180px;
}

.nav-search input {
    min-height: 42px;
    padding: 0 48px 0 20px;
}

.nav-search button {
    right: 5px;
    width: 32px;
    height: 32px;
}

.nav-search button i {
    font-size: 1rem;
}

.header-actions {
    gap: 8px;
}

.round-action {
    width: 40px;
    height: 40px;
}

.round-action i {
    font-size: 1.08rem;
}

.auth-chip {
    min-height: 40px;
    gap: 7px;
    padding: 4px 6px 4px 13px;
}

.auth-chip-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}

.auth-chip-icon i {
    font-size: 1rem;
}

.site-shell .main-header.is-stuck {
    padding: 7px 10px;
}

.site-shell .main-header.is-stuck .brand {
    font-size: 1.22rem;
}

.site-shell .main-header.is-stuck .brand-mark {
    width: 34px;
    height: 34px;
}

.site-shell .main-header.is-stuck .nav-search input {
    min-height: 40px;
    padding-right: 46px;
}

.site-shell .main-header.is-stuck .nav-search button {
    right: 5px;
    width: 30px;
    height: 30px;
}

.site-shell .main-header.is-stuck .round-action {
    width: 38px;
    height: 38px;
}

.site-shell .main-header.is-stuck .auth-chip {
    min-height: 38px;
    padding: 4px 5px 4px 12px;
}

.site-shell .main-header.is-stuck .auth-chip-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.hero {
    gap: 20px;
    padding-top: 4px;
}

.hero-copy {
    min-height: 420px;
    padding: 30px;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
}

.hero p {
    font-size: .98rem;
    line-height: 1.55;
}

.hero-actions {
    gap: 10px;
    margin-top: 24px;
}

.eyebrow {
    padding: 7px 12px;
    font-size: .76rem;
}

.btn,
.google-login-btn,
.product-card-cart-btn {
    min-height: 40px;
    padding: 0 16px;
    gap: 8px;
    font-size: .86rem;
}

.section-head {
    gap: 12px;
    margin-bottom: 16px;
}

.section-head h2,
.page-title h1,
.newsletter h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.section-head p,
.page-title p {
    margin-top: 8px;
    font-size: .9rem;
}

.trust-row,
.category-grid,
.product-grid,
.brand-row {
    gap: 12px;
}

.trust-item,
.category-card,
.product-card,
.content-card,
.filter-panel,
.detail-card,
.summary-card,
.policy-card,
.newsletter,
.auth-card,
.auth-side {
    box-shadow: var(--soft-shadow);
}

.trust-item {
    gap: 10px;
    padding: 12px;
}

.trust-item i {
    font-size: 1.35rem;
}

.category-card {
    min-height: 150px;
    padding: 14px;
}

.category-card i {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
}

.category-card strong {
    font-size: 1rem;
}

.category-card span {
    font-size: .82rem;
}

.product-card {
    padding: 18px;
}

.product-media {
    height: auto;
    aspect-ratio: 1 / 1;
}

.product-badge {
    top: 24px;
    left: 24px;
    min-height: 22px;
    padding: 0 8px;
    font-size: .64rem;
}

.wish-btn {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
}

.product-body {
    padding: 0;
}

.product-body h3 {
    font-size: 1rem;
}

.product-body p {
    min-height: 0;
}

.product-foot {
    gap: 14px;
    padding-top: 0;
}

.product-foot strong {
    font-size: 1.18rem;
}

.icon-add {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.promo-band {
    gap: 20px;
    padding: 28px;
}

.promo-band h2 {
    font-size: clamp(1.8rem, 3.5vw, 3.4rem);
    margin: 10px 0;
}

.brand-pill {
    min-height: 64px;
}

.newsletter {
    gap: 14px;
    padding: 24px;
}

.newsletter form {
    padding: 5px;
}

.page-title {
    gap: 16px;
}

.shop-layout,
.detail-grid,
.checkout-grid,
.account-grid {
    gap: 18px;
}

.filter-panel,
.content-card,
.summary-card {
    padding: 16px;
}

.field {
    gap: 6px;
    margin-bottom: 12px;
}

.field label {
    font-size: .82rem;
}

.field input,
.field select,
.field textarea,
.sort-form select {
    min-height: 40px;
    padding: 0 11px;
}

.field select,
.sort-form select {
    padding-left: 18px;
    padding-right: 48px;
}

.field textarea {
    min-height: 92px;
    padding-top: 9px;
}

.view-toggle button {
    width: 36px;
    height: 32px;
}

.product-grid.is-list .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
}

.product-grid.is-list .product-media {
    height: 180px;
}

.gallery {
    padding: 12px;
}

.gallery-main {
    height: 400px;
}

.thumb-row {
    gap: 8px;
    margin-top: 10px;
}

.thumb-row img {
    height: 64px;
}

.detail-card {
    padding: 22px;
}

.detail-card h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.7rem);
}

.price-line {
    margin: 16px 0;
}

.price-line strong.product-price-current {
    font-size: 1.55rem;
}

.price-line del.product-price-old {
    font-size: .92rem;
}

.stock {
    padding: 0;
}

.product-card .product-category-line,
.home-product-card .product-category-line {
    font-size: .82rem !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
}

.product-card .product-stock-line,
.home-product-card .product-stock-line {
    font-size: .86rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

.product-card .product-price-current,
.home-product-card .product-price-current {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.product-card .product-price-old,
.home-product-card .product-price-old {
    font-size: .8rem !important;
    font-weight: 600 !important;
}

.spec-table th,
.spec-table td,
.cart-table th,
.cart-table td {
    padding: 10px 11px;
}

.cart-product {
    gap: 10px;
}

.cart-product img {
    width: 58px;
    height: 58px;
}

.qty-input {
    width: 64px;
    min-height: 36px;
}

.summary-line {
    padding: 9px 0;
}

.summary-line.total {
    font-size: 1.05rem;
}

.auth-wrap {
    gap: 16px;
}

.auth-side {
    min-height: 520px;
    padding: 24px;
}

.auth-card {
    padding: 22px;
}

.auth-side h2,
.auth-card h1 {
    font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

.auth-side p,
.auth-card h1 span {
    font-size: .84rem;
}

.auth-side-grid {
    gap: 10px;
}

.auth-side-grid div {
    padding: 14px;
}

.auth-input-wrap {
    min-height: 42px;
}

.auth-input-wrap input {
    min-height: 40px;
}

.policy-card {
    padding: 24px;
    line-height: 1.65;
}

.site-footer {
    padding: 26px 32px 22px;
}

.footer-grid {
    gap: 22px;
    margin-bottom: 20px;
}

.footer-brand-col p,
.footer-app p,
.footer-links a,
.footer-bottom {
    font-size: .84rem;
}

.social-row a {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
}

.home-design-shell {
    gap: clamp(44px, 4.2vw, 64px) !important;
}

.home-design-shell > section {
    margin: 0 !important;
}

.home-design-shell .home-popular-categories {
    padding-block: 0 !important;
}

.home-design-shell .text-7xl,
.home-design-shell .lg\:text-7xl,
.home-design-shell .text-6xl,
.home-design-shell .lg\:text-6xl,
.home-design-shell .sm\:text-6xl {
    font-size: clamp(2.25rem, 4.2vw, 3.7rem) !important;
}

.home-design-shell .text-5xl,
.home-design-shell .md\:text-5xl {
    font-size: clamp(2rem, 3.2vw, 3rem) !important;
}

.home-design-shell .text-4xl,
.home-design-shell .md\:text-4xl {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem) !important;
}

.home-design-shell .p-6,
.home-design-shell .md\:p-8 {
    padding: 20px !important;
}

.home-design-shell .md\:p-10,
.home-design-shell .lg\:p-14 {
    padding: 26px !important;
}

.home-design-shell [class*="min-h-[420px]"] {
    min-height: 330px !important;
}

.home-design-shell [class*="min-h-[220px]"] {
    min-height: 170px !important;
}

.home-design-shell [class*="h-56"] {
    height: 12rem !important;
}

.home-design-shell article,
.home-design-shell section.bg-white,
.home-design-shell .shadow-card,
.home-design-shell .shadow-soft {
    box-shadow: var(--soft-shadow) !important;
}

@media (min-width: 1024px) {
    .home-design-shell {
        padding: 0 36px !important;
    }
}

@media (max-width: 900px) {
    .hero-copy {
        min-height: auto;
    }

    .gallery-main {
        height: 340px;
    }
}

@media (max-width: 720px) {
    :root {
        --page-section-gap: 18px;
        --header-content-gap: var(--page-section-gap);
        --page-title-inset: 8px;
    }

    body {
        font-size: 12.5px;
    }

    main {
        gap: 28px;
    }

    .main-header {
        margin-top: 10px;
        padding: 8px;
    }

    .header-grid {
        gap: 7px;
        min-height: 34px;
    }

    .brand {
        gap: 7px;
        font-size: 1rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .brand-mark span {
        width: 13px;
        height: 13px;
    }

    .header-actions {
        gap: 6px;
    }

    .round-action {
        width: 34px;
        height: 34px;
    }

    .round-action i {
        font-size: 1rem;
    }

    .auth-chip {
        min-height: 34px;
        padding: 2px;
    }

    .auth-chip-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .site-shell .main-header.is-stuck {
        padding: 7px 8px;
    }

    .site-shell .main-header.is-stuck .brand {
        font-size: .98rem;
    }

    .site-shell .main-header.is-stuck .brand-mark {
        width: 28px;
        height: 28px;
    }

    .site-shell .main-header.is-stuck .round-action {
        width: 32px;
        height: 32px;
    }

    .hero-copy,
    .promo-band,
    .newsletter,
    .content-card,
    .detail-card,
    .summary-card,
    .policy-card,
    .auth-card {
        padding: 18px;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .section-head h2,
    .page-title h1,
    .newsletter h2 {
        font-size: clamp(1.35rem, 8vw, 1.9rem);
    }

    .product-media {
        height: 160px;
    }

    .site-footer {
        padding: 22px 18px 20px;
    }

    .home-design-shell {
        gap: 36px !important;
        padding: 0 16px !important;
    }
}

/* Frontend width alignment */
.main-header,
.container,
.auth-wrap,
.flash,
.site-footer,
.home-design-shell {
    width: var(--content-shell-width);
    max-width: var(--content-shell-width);
}

.home-design-shell {
    margin-inline: auto;
    padding-inline: 0 !important;
    overflow-x: clip;
}

.home-design-shell > section,
.home-design-shell > div:not(.absolute),
.home-design-shell .grid,
.container,
.checkout-grid,
.detail-grid,
.account-grid,
.shop-layout,
.content-card,
.policy-card,
.summary-card,
.product-card,
.category-card {
    min-width: 0;
    max-width: 100%;
}

.home-design-shell article,
.home-design-shell section,
.home-design-shell img,
.home-design-shell .product-media {
    max-width: 100%;
}

/* Homepage square image boxes */
.home-design-shell div.product-media {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

.home-design-shell div.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

.home-design-shell img.product-media {
    object-fit: contain !important;
}

.home-design-shell .motherboard-sale-section article {
    min-height: 82px !important;
    padding: 8px 10px !important;
    gap: 10px !important;
    border-radius: 12px !important;
}

.home-design-shell .motherboard-sale-section img.product-media {
    width: 88px !important;
    height: 56px !important;
    aspect-ratio: auto !important;
    flex: 0 0 88px;
    object-fit: contain !important;
    padding: 2px !important;
    border-radius: 10px !important;
}

.home-design-shell .motherboard-sale-section article h3 {
    font-size: .76rem !important;
    line-height: 1.14 !important;
    margin-bottom: 3px !important;
}

.home-design-shell .motherboard-sale-section article p {
    margin: 0 !important;
    line-height: 1.18 !important;
}

.home-design-shell .motherboard-sale-section article .text-sm {
    font-size: .82rem !important;
}

.home-design-shell .motherboard-sale-section article .text-\[11px\] {
    font-size: .68rem !important;
}

.home-design-shell .home-motherboard-product-grid {
    align-items: start !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

.home-design-shell .home-motherboard-product-card {
    min-height: 92px !important;
    padding: 10px 12px !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 14px !important;
}

.home-design-shell .home-motherboard-product-card img.product-media {
    width: 84px !important;
    height: 64px !important;
    aspect-ratio: auto !important;
    flex: 0 0 84px !important;
    align-self: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 3px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.home-design-shell .home-motherboard-product-card h3 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px !important;
    font-size: .72rem !important;
    line-height: 1.12 !important;
}

.home-design-shell .home-motherboard-product-card .product-price-line-compact {
    margin: 0 !important;
    gap: 5px !important;
    line-height: 1.1 !important;
}

.home-design-shell .home-motherboard-product-card .product-price-current {
    font-size: .9rem !important;
}

.home-design-shell .home-motherboard-product-card .product-price-old {
    font-size: .68rem !important;
}

/* Homepage software promo cards */
.home-design-shell .home-software-promos article {
    display: block !important;
    min-height: 136px !important;
    padding: 18px 28px 64px !important;
    border-radius: 14px !important;
    isolation: isolate;
}

.home-design-shell .home-software-promos {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.home-design-shell .home-software-promos article > img {
    position: absolute !important;
    inset: 0 0 0 auto !important;
    z-index: -1;
    width: 52% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

.home-design-shell .home-software-promos h3,
.home-design-shell .home-software-promos p,
.home-design-shell .home-software-promos button {
    position: relative;
    z-index: 1;
    max-width: 100%;
    min-width: 0;
}

.home-design-shell .home-software-promos h3 {
    margin-bottom: 8px !important;
    max-width: 56%;
    font-size: clamp(1.18rem, 1.55vw, 1.45rem) !important;
    line-height: 1.08 !important;
}

.home-design-shell .home-software-promos p {
    margin-bottom: 0 !important;
    max-width: 56%;
    font-size: clamp(.82rem, 1vw, .98rem) !important;
    line-height: 1.28 !important;
    color: rgba(255, 255, 255, .82) !important;
}

.home-design-shell .home-software-promos button.home-promo-btn,
.home-design-shell .home-software-promos a.home-promo-btn {
    position: absolute !important;
    left: 28px;
    bottom: 18px;
    min-width: 112px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: .9rem !important;
}

@media (max-width: 520px) {
    .home-design-shell .home-software-promos {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .home-design-shell .home-software-promos article {
        min-height: 170px !important;
        padding: 24px !important;
    }

    .home-design-shell .home-software-promos article > img {
        width: 50% !important;
    }

    .home-design-shell .home-software-promos h3,
    .home-design-shell .home-software-promos p {
        max-width: 54%;
    }

    .home-design-shell .home-software-promos button.home-promo-btn,
    .home-design-shell .home-software-promos a.home-promo-btn {
        left: 24px;
        bottom: 24px;
        min-height: 40px !important;
        height: 40px !important;
        min-width: 112px !important;
    }
}

/* Homepage final spacing and flat-card overrides */
.home-design-shell {
    --home-section-gap: 56px;
    gap: var(--home-section-gap) !important;
}

.home-design-shell > section {
    margin: 0 !important;
}

.home-design-shell .home-accessories-software-section {
    row-gap: var(--home-section-gap) !important;
}

.home-design-shell .home-accessories-software-section > .home-software-promos {
    margin: 0 !important;
}

.home-design-shell .home-popular-categories {
    padding-block: 0 !important;
}

.home-design-shell article,
.home-design-shell section.bg-white,
.home-design-shell .bg-white,
.home-design-shell .bg-white\/80,
.home-design-shell .bg-white\/90,
.home-design-shell .bg-white\/95,
.home-design-shell .shadow-card,
.home-design-shell .shadow-soft,
.home-design-shell .shadow-2xl,
.home-design-shell .home-product-card,
.home-design-shell .home-category-card,
.home-design-shell .motherboard-sale-section,
.home-design-shell .home-software-promos article {
    box-shadow: none !important;
}

.home-design-shell .drop-shadow-2xl {
    filter: none !important;
}

@media (max-width: 720px) {
    .home-design-shell {
        --home-section-gap: 36px;
    }
}

@media (max-width: 900px) {
    .not-found-page {
        grid-template-columns: 1fr;
    }

    .not-found-copy,
    .not-found-visual {
        min-height: 0;
    }

    .not-found-visual {
        min-height: 340px;
    }

    .not-found-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .not-found-links a:nth-child(2) {
        border-right: 0;
    }

    .not-found-links a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 640px) {
    .not-found-copy {
        padding: 24px;
    }

    .not-found-copy h1 {
        font-size: 1.85rem;
    }

    .not-found-search {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 10px;
    }

    .not-found-search .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .not-found-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .not-found-visual {
        min-height: 300px;
        padding: 22px;
    }

    .not-found-display {
        width: min(100%, 230px);
    }

    .not-found-display span {
        font-size: 3.6rem;
    }

    .not-found-display i {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .not-found-chip {
        min-height: 38px;
        padding: 0 11px;
        font-size: .82rem;
    }

    .chip-one {
        top: 18px;
        left: 18px;
    }

    .chip-two {
        right: 18px;
        top: 72px;
    }

    .chip-three {
        left: 22px;
        bottom: 24px;
    }

    .not-found-links {
        grid-template-columns: 1fr;
    }

    .not-found-links a {
        justify-content: flex-start;
        min-height: 76px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .not-found-links a:last-child {
        border-bottom: 0;
    }
}
