/* ============================================================
   NEREVIX — Design Tokens
============================================================ */
:root {
    /* Color */
    --c-abyss: #060e17;
    --c-abyss-deep: #030810;
    --c-panel: #0d1b2a;
    --c-panel-light: #142638;
    --c-cyan: #2de1e8;
    --c-cyan-dim: rgba(45, 225, 232, 0.14);
    --c-marine: #1b5c82;
    --c-marine-soft: #275f83;
    --c-foam: #e8f1f5;
    --c-foam-dim: rgba(232, 241, 245, 0.62);
    --c-foam-faint: rgba(232, 241, 245, 0.32);
    --c-nozzle: #ff5a3c;
    --c-border: rgba(45, 225, 232, 0.12);

    /* Type */
    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1240px;
    --rail-width: 52px;
    --header-height: 76px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & base
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--c-abyss);
    color: var(--c-foam);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-left: var(--rail-width);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.01em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

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

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

/* ============================================================
   Depth-gauge rail — signature element (fixed left edge)
============================================================ */
.depth-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-width);
    background: linear-gradient(180deg, var(--c-abyss-deep), var(--c-panel) 60%, var(--c-abyss-deep));
    border-right: 1px solid var(--c-border);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.depth-rail__track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-mono);
}

.depth-rail__label {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--c-foam-faint);
}

.depth-rail__value {
    font-size: 12px;
    color: var(--c-cyan);
    text-shadow: 0 0 8px var(--c-cyan-dim);
    letter-spacing: 0.05em;
}

.depth-rail__line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--c-marine), transparent);
}

/* ============================================================
   Header / Nav
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(6, 14, 23, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--c-border);
    transition: background 0.3s var(--ease-out);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand__mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--c-abyss);
    background: var(--c-cyan);
    border-radius: 6px;
    box-shadow: 0 0 20px var(--c-cyan-dim);
}

.brand__name {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.brand__accent { color: var(--c-cyan); }

.main-nav {
    display: flex;
    gap: 32px;
    font-size: 14.5px;
    font-weight: 500;
}

.main-nav a {
    color: var(--c-foam-dim);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: var(--c-cyan);
    transition: width 0.25s var(--ease-out);
}

.main-nav a:hover { color: var(--c-foam); }
.main-nav a:hover::after { width: 100%; }

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

/* ============================================================
   Language switcher (flags)
============================================================ */
.lang-switch { position: relative; }

.lang-switch__current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 5px;
    padding: 6px 10px;
    color: var(--c-foam-dim);
    font-family: var(--font-mono);
    font-size: 12px;
    transition: border-color 0.2s, color 0.2s;
}
.lang-switch__current:hover { border-color: var(--c-cyan); color: var(--c-foam); }
.lang-switch__flag { display: inline-flex; align-items: center; line-height: 0; border-radius: 2px; overflow: hidden; }
.lang-switch__flag svg { display: block; }
.lang-switch__code { letter-spacing: 0.05em; }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 60;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.lang-switch__menu.is-open { display: flex; }

.lang-switch__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--c-foam-dim);
}
.lang-switch__menu a:hover { background: var(--c-panel-light); color: var(--c-foam); }
.lang-switch__menu a.is-active { color: var(--c-cyan); }

.cart-link { position: relative; display: flex; color: var(--c-foam-dim); transition: color 0.2s; }
.cart-link:hover { color: var(--c-cyan); }

.account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-foam-dim);
    transition: color 0.2s;
}
.account-link:hover { color: var(--c-cyan); }
.account-link__label {
    font-size: 13px;
    font-weight: 500;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .account-link__label { display: none; }
}

.cart-link__count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--c-nozzle);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px; height: 24px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--c-foam);
    border-radius: 2px;
}

/* ============================================================
   Hero
============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 80% at 50% -10%, var(--c-marine) 0%, var(--c-abyss) 55%);
}

.hero__layer {
    position: absolute;
    inset: -10% -10%;
    pointer-events: none;
}

.hero__layer--grid {
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 75%);
    opacity: 0.5;
}

.hero__layer--mesh {
    background: radial-gradient(circle at 30% 30%, var(--c-cyan-dim), transparent 45%),
                radial-gradient(circle at 75% 60%, rgba(27, 92, 130, 0.35), transparent 50%);
    animation: meshPulse 10s ease-in-out infinite;
}

@keyframes meshPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.hero__bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero__bubbles span {
    position: absolute;
    bottom: -40px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-cyan-dim);
    border: 1px solid var(--c-border);
    animation: rise linear infinite;
}
.hero__bubbles span:nth-child(1) { left: 8%;  width: 5px; height: 5px; animation-duration: 14s; animation-delay: 0s; }
.hero__bubbles span:nth-child(2) { left: 22%; width: 9px; height: 9px; animation-duration: 18s; animation-delay: 2s; }
.hero__bubbles span:nth-child(3) { left: 38%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 1s; }
.hero__bubbles span:nth-child(4) { left: 55%; width: 7px; height: 7px; animation-duration: 16s; animation-delay: 4s; }
.hero__bubbles span:nth-child(5) { left: 68%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 3s; }
.hero__bubbles span:nth-child(6) { left: 82%; width: 10px; height: 10px; animation-duration: 20s; animation-delay: 0.5s; }
.hero__bubbles span:nth-child(7) { left: 92%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 5s; }

@keyframes rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-105vh) translateX(20px); opacity: 0; }
}

.hero__content { position: relative; z-index: 2; max-width: 680px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--c-cyan);
    margin: 0 0 18px;
}

.hero__title {
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    line-height: 1.04;
    margin-bottom: 22px;
}
.hero__title-accent { color: var(--c-cyan); }

.hero__subtitle {
    font-size: 17px;
    color: var(--c-foam-dim);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--c-foam-faint);
}
.hero__scroll-cue-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--c-cyan), transparent);
    animation: cueFlow 2s ease-in-out infinite;
}
@keyframes cueFlow {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(0.6); opacity: 1; }
}

/* ============================================================
   Buttons
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}
.btn-primary {
    background: var(--c-cyan);
    color: var(--c-abyss-deep);
    box-shadow: 0 0 0 0 var(--c-cyan-dim);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--c-cyan-dim); }

.btn-ghost {
    background: transparent;
    color: var(--c-foam);
    border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.btn-large { padding: 16px 34px; font-size: 15.5px; }

/* ============================================================
   Spec strip
============================================================ */
.spec-strip {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-panel);
}
.spec-strip__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.spec-strip__item {
    padding: 22px 24px;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec-strip__item:last-child { border-right: none; }
.spec-strip__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--c-foam-faint);
}
.spec-strip__value {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--c-cyan);
}

/* ============================================================
   Section titles (shared)
============================================================ */
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.section-subtitle { color: var(--c-foam-dim); font-size: 15px; margin: 0; }

/* ============================================================
   Category descent
============================================================ */
.descent { padding: 110px 0 90px; }
.descent .container { margin-bottom: 48px; }

.descent-list {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
}

.descent-item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 24px;
    border-top: 1px solid var(--c-border);
    transition: background 0.25s;
}
.descent-item:last-child { border-bottom: 1px solid var(--c-border); }
.descent-item:hover { background: var(--c-panel); }

.descent-item__marker {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-cyan);
    width: 52px;
    flex-shrink: 0;
}

.descent-item__body { flex: 1; }
.descent-item__body h3 { font-size: 19px; margin-bottom: 4px; }
.descent-item__body p { margin: 0; color: var(--c-foam-dim); font-size: 14.5px; }

.descent-item__arrow {
    color: var(--c-foam-faint);
    transition: transform 0.25s var(--ease-out), color 0.25s;
}
.descent-item:hover .descent-item__arrow { transform: translateX(6px); color: var(--c-cyan); }

/* ============================================================
   Product showcase grid
============================================================ */
.showcase { padding: 40px 0 120px; }

.showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
}
.showcase__view-all {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-cyan);
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-cyan);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--c-panel-light);
}
.product-card__placeholder { width: 100%; height: 100%; }

.product-card__material {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--c-cyan);
    background: rgba(6, 14, 23, 0.75);
    border: 1px solid var(--c-border);
    padding: 4px 8px;
    border-radius: 3px;
}

.product-card__body { padding: 18px 20px 22px; }
.product-card__body h3 { font-size: 16px; margin-bottom: 10px; font-weight: 500; }

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
}
.product-card__color { color: var(--c-foam-faint); }
.product-card__price { color: var(--c-foam); }

/* ============================================================
   Why band
============================================================ */
.why-band {
    padding: 90px 0;
    background: var(--c-panel);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.why-item h3 { font-size: 17px; margin: 16px 0 8px; }
.why-item p { margin: 0; color: var(--c-foam-dim); font-size: 14.5px; }

/* ============================================================
   CTA band
============================================================ */
.cta-band { padding: 110px 0; }
.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, var(--c-panel), var(--c-panel-light));
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 56px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 14px; }
.cta-band__text { color: var(--c-foam-dim); max-width: 440px; margin: 0; }

/* ============================================================
   Footer
============================================================ */
.site-footer { background: var(--c-abyss-deep); padding-top: 0; }
.footer-divider { line-height: 0; }
.footer-divider svg { width: 100%; height: 40px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 60px 32px 50px;
}

.footer-col h4 {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--c-foam-dim);
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--c-foam-dim); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-cyan); }

.footer-blurb { color: var(--c-foam-dim); font-size: 14px; max-width: 320px; margin: 16px 0 14px; }
.footer-spec { font-family: var(--font-mono); font-size: 11px; color: var(--c-marine-soft); letter-spacing: 0.05em; }

.footer-note { color: var(--c-foam-dim); font-size: 13.5px; margin: 0 0 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--c-foam);
    font-size: 13.5px;
}
.newsletter-form input:focus { outline: none; border-color: var(--c-cyan); }
.newsletter-form button {
    background: var(--c-cyan);
    color: var(--c-abyss-deep);
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13.5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 32px 32px;
    border-top: 1px solid var(--c-border);
    font-size: 12.5px;
    color: var(--c-foam-faint);
}
.footer-bottom__tag { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-strip__inner { grid-template-columns: repeat(2, 1fr); }
    .spec-strip__item:nth-child(2) { border-right: none; }
    .why-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 40px; }
}

@media (max-width: 720px) {
    :root { --rail-width: 0px; }
    .depth-rail { display: none; }
    body { padding-left: 0; }

    .main-nav { display: none; }
    .nav-toggle { display: flex; }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--c-abyss);
        border-bottom: 1px solid var(--c-border);
        padding: 20px 32px;
        gap: 18px;
    }

    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .descent-item { gap: 16px; padding: 20px 12px; }
    .footer-grid { grid-template-columns: 1fr; padding: 48px 24px 40px; }
    .footer-bottom { flex-direction: column; gap: 8px; padding: 20px 24px 28px; }
    .container { padding: 0 20px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Shared: alerts, forms
============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-error {
    background: rgba(255, 90, 60, 0.12);
    border: 1px solid rgba(255, 90, 60, 0.35);
    color: #ffb2a1;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    color: var(--c-foam-dim);
    font-weight: 500;
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], select, textarea {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 5px;
    padding: 11px 14px;
    color: var(--c-foam);
    font-family: var(--font-body);
    font-size: 14.5px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-cyan);
}

/* ============================================================
   Catalog / product listing
============================================================ */
.catalog-page { padding: 60px 0 100px; }
.catalog-page .section-title { margin-top: 14px; margin-bottom: 8px; }
.catalog-page .product-grid { margin-top: 40px; }
.catalog-page .product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.catalog-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
}

.cart-empty {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    color: var(--c-foam-dim);
}

/* ============================================================
   Auth pages (login / register)
============================================================ */
.auth-page { padding: 80px 0 120px; display: flex; justify-content: center; }
.auth-page__inner { display: flex; justify-content: center; }
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 40px;
}
.auth-card h1 { font-size: 22px; margin: 6px 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-switch { margin-top: 20px; font-size: 13.5px; color: var(--c-foam-dim); }
.auth-switch a { color: var(--c-cyan); }

/* ============================================================
   Account pages (dashboard, orders, addresses, profile)
============================================================ */
.account-page { padding: 60px 0 120px; }
.account-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 12px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.account-sidebar a {
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13.5px;
    color: var(--c-foam-dim);
}
.account-sidebar a:hover { background: var(--c-panel-light); color: var(--c-foam); }
.account-sidebar a.is-active { color: var(--c-cyan); background: var(--c-cyan-dim); }
.account-sidebar__logout {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 12px;
    color: var(--c-foam-faint);
    font-size: 13px;
    cursor: pointer;
}
.account-sidebar__logout:hover { color: var(--c-nozzle); }

.account-content h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0 8px; }
.account-content__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.account-content h3 { font-size: 14px; margin: 30px 0 14px; letter-spacing: 0.03em; color: var(--c-cyan); }
.account-empty { color: var(--c-foam-dim); margin-top: 20px; }
.account-empty a { color: var(--c-cyan); }

.account-order-list { display: flex; flex-direction: column; }
.account-order-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13.5px;
}
.account-order-row:hover { background: var(--c-panel); }
.account-order-row__ref { font-family: var(--font-mono); color: var(--c-foam); }
.account-order-row__total { font-family: var(--font-mono); }
.account-order-row__date { color: var(--c-foam-faint); font-size: 12.5px; }
.account-view-all { display: inline-block; margin-top: 16px; color: var(--c-cyan); font-size: 13.5px; }

.account-order-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--c-foam-dim);
    font-size: 13px;
    margin: 6px 0 20px;
}
.account-address-block { color: var(--c-foam-dim); line-height: 1.7; }

.account-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.account-address-card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 20px;
}
.account-address-card h3 { margin: 8px 0 10px; color: var(--c-foam); }
.account-address-card p { color: var(--c-foam-dim); font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; }
.account-address-card__actions { display: flex; gap: 14px; font-size: 13px; }
.account-address-card__actions a { color: var(--c-cyan); }

.checkout-guest-note { color: var(--c-foam-dim); font-size: 13.5px; margin: -8px 0 18px; }
.checkout-guest-note a { color: var(--c-cyan); }

@media (max-width: 800px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; flex-direction: row; overflow-x: auto; }
    .account-order-row { grid-template-columns: 1fr auto; row-gap: 6px; }
}

/* ============================================================
   Breadcrumbs
============================================================ */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 24px 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-foam-faint);
}
.breadcrumbs a { color: var(--c-foam-dim); }
.breadcrumbs a:hover { color: var(--c-cyan); }
.breadcrumbs span[aria-current] { color: var(--c-foam); }

/* ============================================================
   Single product page
============================================================ */
.product-page { padding: 60px 0 100px; }
.product-page__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.product-page__media {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-page__media img { width: 100%; height: 100%; object-fit: cover; }
.product-page__placeholder { width: 100%; height: 100%; }

.product-page__info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 6px 0 14px; }
.product-page__price {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--c-cyan);
    margin: 0 0 20px;
}
.product-page__short { color: var(--c-foam-dim); margin-bottom: 28px; }

.add-to-cart-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
}
.add-to-cart-form .btn { grid-column: 1 / -1; margin-top: 6px; }

.product-page__info h3 { font-size: 15px; margin: 30px 0 14px; letter-spacing: 0.04em; }

.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13.5px; }
.spec-table th, .spec-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.spec-table th { color: var(--c-foam-faint); font-weight: 400; width: 40%; }
.spec-table td { color: var(--c-foam); }

.product-page__description { color: var(--c-foam-dim); line-height: 1.7; }

/* ============================================================
   Cart page
============================================================ */
.cart-page { padding: 60px 0 100px; }
.cart-page .section-title { margin-top: 14px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.cart-line {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--c-border);
}
.cart-line__media {
    width: 72px; height: 72px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow: hidden;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-line__body h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 4px; }
.cart-line__body h3 a { color: var(--c-foam); }
.cart-line__spec { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--c-foam-faint); }
.cart-line__warning { margin: 6px 0 0; font-size: 12px; color: var(--c-nozzle); }

.cart-line__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: 5px;
    overflow: hidden;
}
.cart-line__qty button {
    background: var(--c-panel);
    border: none;
    color: var(--c-foam);
    width: 30px; height: 34px;
}
.cart-line__qty input {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
    border-radius: 0;
    padding: 8px 4px;
}

.cart-line__price { font-family: var(--font-mono); font-size: 14.5px; white-space: nowrap; }

.cart-line__remove {
    background: none;
    border: none;
    color: var(--c-foam-faint);
    font-size: 15px;
    transition: color 0.2s;
}
.cart-line__remove:hover { color: var(--c-nozzle); }

.cart-summary {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 26px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.cart-summary h3 { font-size: 15px; margin-bottom: 18px; }
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--c-border);
}
.cart-summary__note { font-size: 12.5px; color: var(--c-foam-faint); margin: 8px 0 20px; }
.cart-summary__cta { width: 100%; }

/* ============================================================
   CMS pages (About, Shipping, Returns, etc.)
============================================================ */
.cms-page { padding: 20px 0 100px; }
.cms-page__content {
    max-width: 720px;
    margin-top: 20px;
    color: var(--c-foam-dim);
    line-height: 1.75;
}
.cms-page__content h1, .cms-page__content h2, .cms-page__content h3 {
    color: var(--c-foam);
    margin: 32px 0 14px;
}
.cms-page__content h2:first-child { margin-top: 0; }
.cms-page__content p { margin: 0 0 16px; }
.cms-page__content a { color: var(--c-cyan); text-decoration: underline; }
.cms-page__content ul, .cms-page__content ol { padding-left: 20px; margin-bottom: 16px; }

/* ============================================================
   Checkout page
============================================================ */
.checkout-page { padding: 60px 0 100px; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
    margin-top: 20px;
}
.checkout-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.checkout-form h3 { font-size: 14px; margin: 10px 0 -2px; color: var(--c-cyan); letter-spacing: 0.05em; }
.checkout-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-payment-note { font-size: 13px; color: var(--c-foam-dim); margin: 0; }

.checkout-summary {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 26px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.checkout-summary h3 { font-size: 15px; margin-bottom: 18px; }
.checkout-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--c-foam-dim);
    padding: 6px 0;
}
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--c-border);
}
.checkout-summary__row--total { color: var(--c-cyan); font-size: 16px; }

.checkout-result { padding: 120px 0; text-align: left; }
.checkout-result h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0 16px; }
.checkout-result__note { color: var(--c-foam-dim); margin-bottom: 32px; }

@media (max-width: 900px) {
    .product-page__layout { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 56px 1fr; grid-template-areas: "media body" "media qty" "media price"; row-gap: 8px; }
}
