:root {
    --dark: oklch(0.11 0.035 279);
    --dark-2: oklch(0.16 0.055 281);
    --ink-dark: oklch(0.98 0.008 285);
    --page: oklch(0.975 0.008 260);
    --surface: oklch(1 0 0);
    --surface-2: oklch(0.955 0.012 260);
    --ink: oklch(0.19 0.035 265);
    --muted: oklch(0.48 0.04 265);
    --line: oklch(0.89 0.018 260);
    --primary: oklch(0.61 0.26 300);
    --primary-dark: oklch(0.48 0.25 300);
    --cyan: oklch(0.76 0.16 230);
    --magenta: oklch(0.66 0.29 333);
    --mint: oklch(0.72 0.16 168);
    --gold: oklch(0.82 0.17 86);
    --danger: oklch(0.62 0.25 25);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 8px oklch(0.18 0.035 265 / 0.08);
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-meta: 0.875rem;
    --text-body: 1rem;
    --text-lead: 1.25rem;
    --text-title: 1.6875rem;
    --text-promo: 1.875rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-body);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

body.admin-body {
    background: oklch(0.955 0.012 260);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

h1,
h2,
h3 {
    overflow-wrap: break-word;
    text-wrap: balance;
}

p {
    overflow-wrap: break-word;
    text-wrap: pretty;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: oklch(0.095 0.03 278 / 0.97);
    color: var(--ink-dark);
    border-bottom: 1px solid oklch(0.34 0.1 285 / 0.36);
}

.header-main {
    display: grid;
    grid-template-columns: 220px minmax(240px, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--magenta), var(--primary), var(--cyan));
    color: white;
    font-size: var(--text-meta);
    font-weight: 900;
}

.brand strong,
.brand em {
    display: block;
    font-style: normal;
}

.brand em {
    color: var(--magenta);
}

.search {
    display: flex;
    align-items: center;
    min-width: 0;
    background: oklch(0.19 0.045 280);
    border: 1px solid oklch(0.38 0.08 285);
    border-radius: 8px;
    overflow: hidden;
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink-dark);
    padding: 14px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    outline: 0;
}

.search input::placeholder {
    color: oklch(0.83 0.02 275);
}

.search button {
    width: 48px;
    border: 0;
    color: white;
    background: transparent;
}

.search svg {
    width: 22px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-action {
    position: relative;
    display: grid;
    min-width: 70px;
    gap: 2px;
    justify-items: center;
    border: 0;
    background: transparent;
    color: oklch(0.91 0.02 280);
    font-size: var(--text-xs);
    line-height: 1.2;
}

.action-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.icon-action b {
    position: absolute;
    top: -6px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.6875rem;
    line-height: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 0 14px;
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.018em;
    text-transform: uppercase;
    scrollbar-width: none;
}

.main-nav a {
    color: oklch(0.86 0.025 280);
    white-space: nowrap;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--magenta);
}

.category-trigger {
    margin-right: 28px;
    padding: 12px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--magenta), var(--primary));
    color: white !important;
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--dark);
}

.hero-picture,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, oklch(0.07 0.025 275) 0%, oklch(0.08 0.03 280 / 0.88) 34%, oklch(0.08 0.03 280 / 0.2) 78%),
        linear-gradient(180deg, transparent 75%, var(--page) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0 132px;
    color: white;
}

.hero-line {
    margin: 0 0 18px;
    color: var(--cyan);
    font-size: var(--text-sm);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 38rem;
    margin: 0;
    font-size: clamp(3.15rem, 6.8vw, 5.55rem);
    line-height: 0.96;
    letter-spacing: -0.028em;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--magenta);
    font-style: italic;
}

.hero p:not(.hero-line) {
    max-width: 30rem;
    margin: 22px 0 0;
    color: oklch(0.91 0.02 280);
    font-size: var(--text-lead);
    font-weight: 500;
    line-height: 1.48;
}

.hero-actions,
.detail-actions,
.thank-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: 0;
    padding: 0 18px;
    font-size: var(--text-sm);
    font-weight: 900;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--magenta), var(--primary));
    color: white;
}

.btn-ghost {
    border: 1px solid oklch(0.9 0.02 280);
    color: white;
    background: oklch(0.1 0.035 280 / 0.45);
}

.btn-soft {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-outline {
    border: 1px solid oklch(0.76 0.06 286);
    color: var(--primary-dark);
    background: white;
}

.btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: var(--text-xs);
}

.btn-wide {
    width: 100%;
}

.trust-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: -54px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.trust-strip div {
    background: white;
    padding: 22px;
}

.trust-strip b,
.trust-strip span {
    display: block;
}

.trust-strip b {
    font-size: var(--text-meta);
    line-height: 1.25;
}

.trust-strip span {
    margin-top: 3px;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.35;
}

.section {
    padding: 40px 0 0;
}

.section,
.promo-grid,
.brand-rail,
.stat-strip,
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.section-head,
.results-bar,
.admin-title,
.admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.section-head h2,
.admin-title h1,
.compact-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-title);
    line-height: 1.18;
    letter-spacing: -0.018em;
}

.section-head > span,
.results-bar span,
.admin-title p,
.compact-hero p {
    color: var(--muted);
}

.category-section {
    margin-top: 40px;
    padding: 72px 0 76px;
    background:
        radial-gradient(circle at 50% 0%, oklch(1 0 0 / 0.7), transparent 40%),
        linear-gradient(180deg, oklch(0.982 0.008 260), oklch(0.952 0.018 260));
}

.category-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.category-head {
    margin-bottom: 46px;
}

.category-all-link {
    min-height: 54px;
    padding: 0 24px;
    border-color: oklch(0.84 0.03 260);
    background: white;
    color: oklch(0.28 0.11 265);
    box-shadow: 0 4px 8px oklch(0.18 0.035 265 / 0.08);
}

.category-all-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.category-rail {
    position: relative;
    padding: 0;
}

.category-rail::before,
.category-rail::after {
    display: none;
}

.category-grid {
    --category-gap: 14px;
    --category-visible: 7;
    display: grid;
    grid-auto-columns: calc((100% - ((var(--category-visible) - 1) * var(--category-gap))) / var(--category-visible));
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: var(--category-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-grid::-webkit-scrollbar {
    display: none;
}

.category-tile {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    justify-items: center;
    min-height: 226px;
    min-width: 0;
    padding: 18px 14px 22px;
    border: 1px solid oklch(0.86 0.02 260);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 4px 8px oklch(0.18 0.035 265 / 0.08);
    scroll-snap-align: start;
    text-align: center;
    transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), border-color 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.category-tile:hover,
.category-tile:focus-visible {
    transform: translateY(-2px);
    border-color: oklch(0.78 0.08 300);
}

.category-tile img {
    width: 100%;
    max-width: 136px;
    height: 118px;
    padding: 16px;
    aspect-ratio: 1.2;
    border-radius: 10px;
    background: oklch(0.975 0.01 260);
    object-fit: contain;
}

.category-tile strong {
    font-size: var(--text-xs);
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.category-tile span {
    color: var(--muted);
    font-size: var(--text-meta);
    line-height: 1.25;
}

.category-nav,
.product-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid oklch(0.9 0.016 260);
    border-radius: 999px;
    background: white;
    color: oklch(0.3 0.12 265);
    box-shadow: 0 4px 8px oklch(0.18 0.035 265 / 0.08);
    transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), opacity 180ms cubic-bezier(0.25, 1, 0.5, 1), color 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.category-nav:hover,
.product-nav:hover {
    transform: translateY(-50%) scale(1.04);
    color: var(--primary-dark);
}

.category-nav:disabled,
.product-nav:disabled {
    cursor: default;
    opacity: 0.45;
}

.category-nav:disabled:hover,
.product-nav:disabled:hover {
    transform: translateY(-50%);
    color: oklch(0.3 0.12 265);
}

.category-nav svg,
.product-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-nav-prev {
    left: clamp(-72px, -4vw, -42px);
}

.category-nav-next {
    right: clamp(-72px, -4vw, -42px);
}

.product-tabs div {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    font-size: var(--text-sm);
    font-weight: 900;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.product-tabs a {
    position: relative;
    color: oklch(0.45 0.025 265);
    padding-bottom: 14px;
}

.product-tabs a.active {
    color: var(--primary);
}

.product-tabs a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.product-rail {
    position: relative;
    margin-top: 20px;
}

.product-rail .product-grid {
    --product-gap: 14px;
    --product-visible: 4;
    display: grid;
    grid-auto-columns: calc((100% - ((var(--product-visible) - 1) * var(--product-gap))) / var(--product-visible));
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: var(--product-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-top: 0;
    padding: 2px;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-rail .product-grid::-webkit-scrollbar {
    display: none;
}

.product-rail .product-card {
    scroll-snap-align: start;
}

.product-rail .product-media {
    min-height: 248px;
}

.product-rail .product-media img {
    width: 96%;
    height: 218px;
}

.product-nav-prev {
    left: clamp(-72px, -4vw, -42px);
}

.product-nav-next {
    right: clamp(-72px, -4vw, -42px);
}

.small-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid oklch(0.88 0.018 260);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 4px 8px oklch(0.18 0.035 265 / 0.08);
    transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1), border-color 180ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: oklch(0.82 0.03 265);
    box-shadow: 0 6px 12px oklch(0.18 0.035 265 / 0.1);
}

.product-media {
    position: relative;
    display: grid;
    min-height: 188px;
    place-items: center;
    background: linear-gradient(180deg, white 0%, oklch(0.985 0.006 260) 100%);
}

.product-media img {
    width: 88%;
    height: 158px;
    object-fit: contain;
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    border-radius: 6px;
    padding: 7px 10px;
    color: white;
    font-size: var(--text-xs);
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1;
    text-transform: uppercase;
}

.badge-red {
    background: linear-gradient(135deg, var(--primary), oklch(0.54 0.28 300));
}

.badge-blue {
    background: linear-gradient(135deg, oklch(0.7 0.18 232), oklch(0.58 0.2 252));
}

.media-old-price {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    padding: 7px 10px;
    border-radius: 8px;
    background: oklch(0.58 0.23 25);
    color: white;
    font-size: var(--text-xs);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 8px oklch(0.33 0.16 25 / 0.18);
}

.media-old-price::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: white;
    transform: translateY(-50%) rotate(-5deg);
}

.product-body {
    display: grid;
    gap: 11px;
    padding: 18px;
}

.product-meta {
    color: oklch(0.48 0.035 265);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.3;
}

.product-card h3 {
    display: -webkit-box;
    min-height: 2.55rem;
    margin: 0;
    overflow: hidden;
    color: oklch(0.17 0.035 265);
    font-size: var(--text-body);
    font-weight: 900;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-wrap: pretty;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 6px;
}

.price-row strong,
.detail-price strong {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.old-price,
.detail-price span {
    color: oklch(0.56 0.025 265);
    font-size: var(--text-sm);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.price-row .old-price {
    flex-basis: 100%;
    line-height: 1.15;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.card-actions-icon-quote {
    grid-template-columns: repeat(3, 44px);
    justify-content: start;
}

.card-actions .add-to-quote {
    min-height: 44px;
    border: 0;
    background: linear-gradient(135deg, var(--primary), oklch(0.53 0.28 300));
    color: white;
    box-shadow: 0 4px 8px oklch(0.49 0.24 300 / 0.2);
}

.quote-button-icon {
    width: 44px;
    padding: 0;
    border-radius: 8px;
    gap: 0;
}

.quote-button-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid oklch(0.84 0.025 265);
    border-radius: 8px;
    background: white;
    color: oklch(0.42 0.035 265);
    transition: border-color 180ms cubic-bezier(0.25, 1, 0.5, 1), color 180ms cubic-bezier(0.25, 1, 0.5, 1), background 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.icon-button:hover {
    border-color: oklch(0.72 0.08 300);
    color: var(--primary-dark);
    background: oklch(0.98 0.01 300);
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button.active {
    border-color: var(--primary);
    color: var(--primary);
    background: oklch(0.96 0.03 300);
}

.wishlist-toggle.active svg {
    fill: currentColor;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    padding: 28px 0 0;
}

.promo-panel {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 28px;
}

.promo-panel h2 {
    margin: 0;
    font-size: var(--text-promo);
    line-height: 1.05;
    letter-spacing: -0.018em;
    text-transform: uppercase;
}

.promo-panel h2 span {
    color: oklch(0.58 0.22 255);
    font-style: italic;
}

.promo-panel p {
    max-width: 340px;
    color: var(--muted);
    line-height: 1.55;
}

.builder-panel {
    background: linear-gradient(110deg, white 0%, oklch(0.94 0.04 292) 55%, oklch(0.89 0.07 230) 100%);
}

.builder-panel img {
    max-width: 230px;
}

.deal-panel {
    background: linear-gradient(120deg, oklch(0.98 0.012 260), oklch(0.91 0.06 300));
}

.stat-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
}

.brand-rail {
    position: relative;
    margin-top: 28px;
    overflow: hidden;
    padding: 16px 0;
}

.brand-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
}

.brand-marquee-track {
    --brand-gap: 34px;
    display: flex;
    width: max-content;
    gap: var(--brand-gap);
    animation: brandMarquee 26s linear infinite;
    will-change: transform;
}

.brand-marquee:hover .brand-marquee-track,
.brand-marquee:focus-within .brand-marquee-track {
    animation-play-state: paused;
}

.brand-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--brand-gap);
}

.brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    height: 42px;
    white-space: nowrap;
    color: oklch(0.18 0.04 265);
    font-size: 1.1875rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

@keyframes brandMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-50% - (var(--brand-gap) / 2)), 0, 0);
    }
}

.stat-strip {
    margin-bottom: 22px;
    padding: 20px 28px;
    border-radius: var(--radius);
    background: var(--dark-2);
    color: white;
}

.stat-strip div {
    min-width: 0;
}

.stat-strip strong,
.stat-strip span {
    display: block;
}

.stat-strip strong {
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.stat-strip span {
    color: oklch(0.82 0.02 275);
    font-size: var(--text-xs);
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
}

.site-footer {
    margin-top: 40px;
    padding: 38px 0 18px;
    border-top: 1px solid var(--line);
    background: oklch(0.965 0.008 260);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-grid h3 {
    margin: 0 0 12px;
    font-size: var(--text-meta);
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-size: var(--text-meta);
}

.footer-brand {
    color: var(--ink);
}

.newsletter {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.newsletter input {
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 12px;
}

.newsletter button {
    width: 48px;
    border: 0;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
}

.footer-bottom {
    margin-top: 24px;
    color: var(--muted);
    font-size: var(--text-sm);
}

.page-hero {
    background: radial-gradient(circle at 15% 0%, oklch(0.28 0.16 302), transparent 34%), var(--dark);
    color: white;
}

.compact-hero .shell {
    padding: 48px 0;
}

.compact-hero h1 {
    color: white;
}

.compact-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: oklch(0.86 0.025 280);
}

.catalog-layout,
.quote-layout,
.builder-layout,
.product-detail,
.thank-you,
.quote-admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 34px 0;
}

.filters,
.checkout-form,
.builder-summary,
.admin-panel,
.success-panel,
.quote-summary,
.quote-cart,
.admin-form .form-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.filters,
.checkout-form,
.builder-summary,
.success-panel,
.quote-summary,
.quote-cart {
    padding: 22px;
}

.filters form,
.checkout-form,
.admin-form,
.admin-search,
.contact-card {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-line input,
.flag-row input {
    width: auto;
}

.results-bar {
    margin-bottom: 18px;
}

.product-detail {
    grid-template-columns: minmax(320px, 0.92fr) 1.08fr;
}

.gallery,
.detail-copy {
    min-width: 0;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1.12;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumbs button {
    width: 76px;
    height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crumb {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 900;
    text-transform: uppercase;
}

.detail-copy p {
    max-width: 65ch;
    color: var(--muted);
    font-size: 1.0625rem;
}

.detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 10px;
}

.detail-price strong {
    font-size: 1.875rem;
}

.detail-price em {
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--danger);
    color: white;
    font-style: normal;
    font-weight: 900;
}

.stock-line {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 11px;
    background: oklch(0.94 0.04 168);
    color: oklch(0.34 0.11 165);
    font-size: var(--text-sm);
    font-weight: 900;
    text-transform: capitalize;
}

.stock-line.out_of_stock {
    background: oklch(0.94 0.04 25);
    color: oklch(0.42 0.16 25);
}

.spec-box,
.description {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.spec-box h2,
.description h2,
.checkout-form h2,
.builder-summary h2,
.admin-panel h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.spec-box dl,
.contact-card {
    margin: 0;
}

.spec-box dl div,
.contact-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.spec-box dt,
.contact-card dt {
    color: var(--muted);
}

.spec-box dd,
.contact-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.quote-layout {
    grid-template-columns: 1fr 390px;
    align-items: start;
}

.quote-items {
    display: grid;
    gap: 12px;
}

.quote-line,
.summary-row,
.builder-option {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

.quote-line img,
.summary-row img,
.builder-option img,
.product-cell img {
    width: 76px;
    height: 64px;
    object-fit: contain;
}

.quote-line h3,
.builder-option h3 {
    margin: 0;
    font-size: 0.9375rem;
}

.quote-line span,
.summary-row span,
.builder-option span,
.admin-table span {
    color: var(--muted);
    font-size: var(--text-xs);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    font-weight: 900;
}

.quote-empty {
    display: none;
    padding: 34px;
    border: 1px dashed oklch(0.76 0.06 270);
    border-radius: var(--radius);
    text-align: center;
}

.quote-empty.active {
    display: block;
}

.quote-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.quote-total strong {
    font-size: 1.5rem;
}

.form-errors {
    border-radius: 10px;
    background: oklch(0.96 0.035 25);
    color: oklch(0.42 0.16 25);
    padding: 12px 14px;
    font-weight: 800;
}

.form-errors p,
.field-error {
    margin: 0;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
}

.thank-you {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.success-panel {
    text-align: center;
}

.success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--mint);
    color: oklch(0.16 0.04 165);
    font-size: 1.75rem;
    font-weight: 900;
}

.builder-layout {
    align-items: start;
}

.builder-summary {
    position: sticky;
    top: 128px;
}

.builder-progress {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.builder-progress a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    font-weight: 800;
}

.builder-groups {
    display: grid;
    gap: 22px;
}

.builder-group {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.builder-options {
    display: grid;
    gap: 12px;
}

.builder-option {
    grid-template-columns: 80px 1fr 72px;
}

.site-footer + .toast,
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    max-width: 320px;
    transform: translateY(16px);
    border-radius: 10px;
    background: var(--dark-2);
    color: white;
    padding: 12px 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--dark);
    color: white;
}

.admin-bar {
    padding: 14px 0;
}

.admin-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: var(--text-meta);
    font-weight: 800;
}

.admin-main {
    padding: 28px 0 48px;
}

.flash {
    margin-bottom: 16px;
    border-radius: 10px;
    background: oklch(0.93 0.05 168);
    color: oklch(0.32 0.11 165);
    padding: 12px 14px;
    font-weight: 800;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.admin-stats div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 18px;
    box-shadow: var(--shadow);
}

.admin-stats span {
    color: var(--muted);
}

.admin-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 1.75rem;
}

.admin-panel {
    padding: 20px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-actions a,
.row-actions button,
.admin-table a {
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 900;
}

.status-pill,
.mini-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: var(--text-xs);
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill.new {
    background: oklch(0.94 0.04 300);
    color: var(--primary-dark);
}

.status-pill.contacted {
    background: oklch(0.94 0.04 230);
    color: oklch(0.38 0.14 236);
}

.status-pill.confirmed,
.status-pill.converted {
    background: oklch(0.94 0.04 168);
    color: oklch(0.34 0.11 165);
}

.status-pill.cancelled {
    background: oklch(0.95 0.03 25);
    color: oklch(0.42 0.16 25);
}

.mini-pill {
    margin: 2px;
    background: var(--surface-2);
    color: var(--muted);
}

.admin-search {
    grid-template-columns: 1fr auto;
    margin-bottom: 16px;
}

.admin-form {
    max-width: 980px;
}

.admin-form .form-section {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.admin-login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 0, oklch(0.32 0.17 300), transparent 42%), var(--dark);
}

.admin-login {
    width: min(420px, calc(100% - 32px));
    display: grid;
    gap: 16px;
    border-radius: 14px;
    background: white;
    padding: 28px;
}

.admin-login h1,
.admin-login p {
    margin: 0;
}

.quote-admin-grid {
    grid-template-columns: 1fr 360px;
    padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .category-grid {
        scroll-behavior: auto;
    }

    .product-rail .product-grid {
        scroll-behavior: auto;
    }

    .brand-marquee-track {
        animation: none;
        transform: none;
    }
}

@media (max-width: 960px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: space-between;
    }

    .main-nav {
        overflow-x: auto;
        gap: 18px;
    }

    .category-grid {
        --category-visible: 4;
    }

    .category-shell {
        width: min(100% - 32px, 1180px);
    }

    .category-rail {
        padding: 0 48px;
    }

    .product-rail {
        padding: 0 48px;
    }

    .product-rail .product-grid {
        --product-visible: 3;
    }

    .product-nav-prev {
        left: 0;
    }

    .product-nav-next {
        right: 0;
    }

    .category-nav-prev {
        left: 0;
    }

    .category-nav-next {
        right: 0;
    }

    .trust-strip,
    .promo-grid,
    .footer-grid,
    .catalog-layout,
    .quote-layout,
    .builder-layout,
    .product-detail,
    .thank-you,
    .quote-admin-grid {
        grid-template-columns: 1fr;
    }

    .builder-summary {
        position: static;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 58px;
    }

    .hero-line {
        font-size: var(--text-xs);
        letter-spacing: 0.07em;
    }

    .hero h1 {
        font-size: clamp(2.85rem, 12vw, 3.45rem);
        line-height: 1;
        letter-spacing: -0.025em;
    }

    .hero p:not(.hero-line) {
        max-width: 27rem;
        font-size: 1.0625rem;
        line-height: 1.5;
    }

    .trust-strip {
        margin-top: -36px;
    }

    .brand-rail {
        padding: 12px 0;
    }

    .brand-marquee-track {
        --brand-gap: 28px;
        animation-duration: 22s;
    }

    .brand-logo {
        height: 38px;
        font-size: 1rem;
    }

    .section-head,
    .admin-title,
    .results-bar,
    .admin-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2,
    .admin-title h1,
    .compact-hero h1,
    .detail-copy h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .category-grid {
        --category-visible: 2;
        --category-gap: 12px;
    }

    .product-rail {
        padding: 0 28px;
    }

    .product-rail .product-grid {
        --product-visible: 1;
        --product-gap: 12px;
    }

    .product-rail .product-media {
        min-height: 152px;
    }

    .product-rail .product-media img {
        height: 124px;
    }

    .category-section {
        margin-top: 32px;
        padding: 36px 0 48px;
    }

    .category-shell {
        width: min(100% - 20px, 1180px);
    }

    .category-head {
        margin-bottom: 22px;
    }

    .category-all-link {
        min-height: 42px;
        padding: 0 14px;
    }

    .category-rail {
        padding: 0 28px;
    }

    .category-tile {
        min-height: 188px;
        padding: 12px 10px 16px;
    }

    .category-tile img {
        height: 92px;
        padding: 12px;
    }

    .category-tile span {
        font-size: var(--text-xs);
    }

    .category-nav,
    .product-nav {
        width: 38px;
        height: 38px;
    }

    .category-nav-prev,
    .product-nav-prev {
        left: -4px;
    }

    .category-nav-next,
    .product-nav-next {
        right: -4px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    }

    .product-body {
        gap: 8px;
        padding: 12px;
    }

    .product-card h3 {
        min-height: 2.25rem;
        font-size: var(--text-sm);
        line-height: 1.3;
    }

    .product-media {
        min-height: 152px;
    }

    .product-media img {
        height: 124px;
    }

    .card-actions {
        grid-template-columns: 1fr 34px;
    }

    .card-actions .compare-toggle {
        grid-column: 2;
    }

    .card-actions.card-actions-icon-quote {
        grid-template-columns: repeat(3, 40px);
        gap: 8px;
    }

    .card-actions.card-actions-icon-quote .compare-toggle {
        grid-column: auto;
    }

    .card-actions.card-actions-icon-quote .add-to-quote {
        width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .product-rail .card-actions {
        grid-template-columns: 1fr 40px 40px;
        gap: 8px;
    }

    .product-rail .card-actions .compare-toggle {
        grid-column: auto;
    }

    .product-rail .card-actions .add-to-quote {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 0.6875rem;
    }

    .product-rail .icon-button {
        width: 40px;
        height: 40px;
    }

    .promo-panel,
    .stat-strip,
    .quote-line,
    .summary-row,
    .builder-option {
        grid-template-columns: 1fr;
    }

    .promo-panel {
        align-items: flex-start;
    }

    .stat-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid,
    .admin-search {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}
