:root {
    --color-bg: #09090b;
    --color-bg-subtle: #0c0c0f;
    --color-surface: #111114;
    --color-surface-2: #18181b;
    --color-surface-3: #27272a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.14);
    --color-text: #fafafa;
    --color-text-secondary: #d4d4d8;
    --color-muted: #71717a;
    --color-accent: #c9a962;
    --color-accent-hover: #d4b872;
    --color-accent-muted: rgba(201, 169, 98, 0.12);
    --color-success: #4ade80;
    --color-error: #f87171;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --container: 1180px;
    --header-h: 64px;
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 900px;
    --bp-xl: 1024px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:not(.admin-body) {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    line-height: 1.65;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--color-accent); }

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

.container {
    width: min(100% - 3rem, var(--container));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.beta-bar {
    border-bottom: 1px solid rgba(201, 169, 98, 0.22);
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1), rgba(201, 169, 98, 0.04));
}

.beta-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    min-height: 2rem;
}

.beta-bar__badge {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-accent);
}

.beta-bar__copy {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
    min-width: 0;
}

.beta-bar__message {
    font-weight: 500;
    color: var(--color-text);
}

.beta-bar__brand {
    display: inline;
}

.beta-bar__brand::before {
    content: ' · ';
    color: var(--color-muted);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    text-decoration: none;
}

.logo-mark-svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.15;
}

.logo-name {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.footer-brand .logo-tagline { display: none; }

.theme-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.header-actions a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.header-actions a:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
}

.lang-switch {
    display: flex;
    padding: 3px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.lang-switch a {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 4px;
    color: var(--color-muted) !important;
    background: transparent !important;
}

.lang-switch a.active {
    background: var(--color-surface-3) !important;
    color: var(--color-text) !important;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-3);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-page {
    max-width: 820px;
    padding-top: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
}

.cart-empty p {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.cart-panel {
    padding: 0;
    overflow: hidden;
}

.cart-table td,
.cart-table th {
    vertical-align: middle;
}

.cart-item-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cart-item-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.cart-item-thumb--empty {
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
}

.cart-item-name {
    color: var(--color-text);
    font-weight: 500;
}

.cart-item-options {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.cart-item-options li + li {
    margin-top: 0.1rem;
}

.cart-color-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    vertical-align: -0.05rem;
    margin-right: 0.2rem;
}

.cart-qty {
    min-width: 1.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cart-line-total {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-volume-discount {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 500;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.cart-subtotal-row span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.cart-checkout-btn {
    margin-top: 1.25rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .cart-item-thumb {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* Main */
.site-main {
    flex: 1;
    padding: 0 0 5rem;
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    padding: 3.5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.footer-brand p {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    max-width: 28ch;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-decoration: none;
}

.footer-nav a:hover { color: var(--color-text); }

.footer-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.newsletter-form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.65rem;
}

.newsletter-form .input-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-border-strong);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { text-decoration: none; transform: none; }

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: #e4e4e7;
    border-color: #e4e4e7;
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--color-text);
}

.btn-accent {
    background: var(--color-accent-muted);
    color: var(--color-accent);
    border-color: rgba(201, 169, 98, 0.25);
}

.btn-accent:hover {
    background: rgba(201, 169, 98, 0.18);
    color: var(--color-accent-hover);
}

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.card-body { padding: 1.25rem 1.35rem 1.35rem; }

.card-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.card-meta {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
}

.card-price {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.card-price-label {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.product-card-media {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--color-surface-2);
    overflow: hidden;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.card:hover .product-card-media img {
    opacity: 1;
    transform: scale(1.02);
}

.product-card-body {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-card-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.72);
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.product-card-gallery__nav--prev { left: 0.5rem; }
.product-card-gallery__nav--next { right: 0.5rem; }

.product-card:hover .product-card-gallery__nav {
    opacity: 1;
}

.product-card-gallery__nav:hover {
    background: rgba(9, 9, 11, 0.92);
}

.product-card-gallery__dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.product-card-color-swatches {
    position: absolute;
    bottom: 1.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card-color {
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.product-card-color:hover {
    transform: scale(1.08);
}

.product-card-color.active {
    border-color: var(--color-text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.product-card-color.is-light {
    border-color: rgba(0, 0, 0, 0.12);
}

.product-card-color.is-light.active {
    border-color: var(--color-text);
}

.product-card-gallery__dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.product-card-gallery__dot.is-active {
    background: var(--color-accent);
}

.product-card-media__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-card-3d-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(9, 9, 11, 0.78);
    color: var(--color-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.product-card-3d-btn:hover {
    background: rgba(9, 9, 11, 0.95);
    border-color: var(--color-accent);
}

.product-quickview {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-quickview[hidden] {
    display: none;
}

.product-quickview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.product-quickview__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(90vh, 820px);
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-quickview__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--color-surface-2);
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.product-quickview__title {
    margin: 0;
    padding-right: 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.product-quickview__viewer {
    min-height: 320px;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-quickview__cta {
    align-self: flex-start;
}

body.quickview-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .product-card-gallery__nav { opacity: 1; }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.25rem;
}

/* Narrow / auth / checkout containers */
.container-narrow {
    width: min(100% - 1.5rem, 640px);
    margin-inline: auto;
}

.container-auth {
    width: min(100% - 1.5rem, 400px);
    margin-inline: auto;
    padding-top: 2rem;
}

.checkout-summary {
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-summary__row + .checkout-summary__row {
    margin-top: 0.35rem;
}

.checkout-summary__row--muted {
    color: var(--color-muted);
}

.auth-lead {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.auth-footer-links {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.auth-footer-links a {
    color: var(--color-text-secondary);
}

.form-max-width {
    max-width: 560px;
}

.success-page {
    max-width: 480px;
    margin-inline: auto;
    text-align: center;
    padding: 3rem 0 4rem;
}

.success-page__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 1rem;
}

.success-page__ref-label {
    color: var(--color-muted);
    margin: 0;
    font-size: 0.875rem;
}

.success-page__ref-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.03em;
    margin: 0.35rem 0 0;
}

.success-page__total {
    margin-top: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-secondary);
}

.success-page__cta {
    margin-top: 2.5rem;
}

/* Hero */
.hero {
    padding: 5rem 0 4.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    margin: 0 0 1.25rem;
    line-height: 1.1;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 46ch;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-stat {
    padding: 1.35rem 1.5rem;
    background: var(--color-surface);
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

/* Sections */
.section { margin-bottom: 4.5rem; }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
}

.section-link {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-decoration: none;
}

.section-link:hover { color: var(--color-accent); }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
}

.feature-card p {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.65;
}

/* Auth social login */
.auth-social {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.auth-social__label {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-social__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-social__btn:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface-2);
}

.auth-social__btn--google::before {
    content: 'G';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-weight: 700;
    font-size: 0.72rem;
    border: 1px solid #dadce0;
}

.auth-social__btn--facebook::before {
    content: 'f';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-border-strong);
}

textarea.form-control { min-height: 120px; resize: vertical; }

/* Alerts */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin: 1rem auto;
    max-width: var(--container);
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--color-success);
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--color-error);
}

/* Page */
.page-header {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 1.75rem;
    margin: 0.5rem 0 0;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text); }

/* Filters */
.filter-bar {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-pill {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-pill:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.filter-pill.active {
    color: var(--color-text);
    background: var(--color-surface-2);
    border-color: var(--color-border-strong);
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.responsive-table th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
}

th {
    color: var(--color-muted);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

.badge-accent {
    background: var(--color-accent-muted);
    border-color: rgba(201, 169, 98, 0.2);
    color: var(--color-accent);
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: var(--color-muted);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.content-panel {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.content-panel h1 { margin-top: 0; }

/* Cookie */
.cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow);
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 200;
}

.cookie-banner:not(.is-visible) {
    display: none !important;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .feature-grid, .two-col { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 3rem; margin-bottom: 3rem; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 1.5rem, var(--container)); }

    body.nav-open {
        overflow: hidden;
    }

    .page-header {
        padding: 1.75rem 0 1.5rem;
        margin-bottom: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.45rem;
    }

    .content-panel {
        padding: 1.25rem;
    }

    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 1.5rem;
        padding-bottom: 0.25rem;
    }

    .filter-bar::-webkit-scrollbar { display: none; }

    .filter-pill {
        flex: 0 0 auto;
    }

    .product-quickview {
        padding: 0;
        align-items: stretch;
    }

    .product-quickview__panel {
        width: 100%;
        max-height: none;
        height: 100%;
        border-radius: 0;
        border: none;
        padding: 1rem;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .product-quickview__viewer {
        min-height: min(60vw, 360px);
        aspect-ratio: auto;
        flex: 1;
    }

    .header-inner {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo actions toggle";
        align-items: center;
        gap: 0.5rem 0.65rem;
        height: auto;
        min-height: var(--header-h);
        padding: 0.35rem 0;
    }

    .logo {
        grid-area: logo;
        min-width: 0;
        gap: 0.55rem;
    }

    .logo-tagline { display: none; }

    .beta-bar__inner {
        align-items: flex-start;
        padding: 0.45rem 0;
    }

    .beta-bar__copy {
        font-size: 0.68rem;
    }

    .beta-bar__brand {
        display: block;
        margin-top: 0.15rem;
        color: var(--color-muted);
    }

    .beta-bar__brand::before {
        content: none;
    }

    .nav-toggle {
        grid-area: toggle;
        display: flex;
        flex-shrink: 0;
    }

    .header-actions {
        grid-area: actions;
        margin-left: 0;
        gap: 0.25rem;
        flex-wrap: nowrap;
    }

    .header-actions__user { display: none; }

    .header-actions a:not(.cart-link) {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 0.75rem 0 1rem;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        z-index: 50;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .main-nav.open { display: flex; }

    .main-nav__account {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-border);
    }

    .main-nav__account-label {
        padding: 0.35rem 1rem;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .newsletter-form .input-row {
        flex-direction: column;
    }

    .newsletter-form .input-row .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .cookie-banner.is-visible {
        flex-direction: column;
        align-items: stretch;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }

    .cookie-banner .btn {
        width: 100%;
    }

    body.pdp-sticky-active .site-main {
        padding-bottom: calc(5rem + 72px);
    }

    body.pdp-sticky-active .pdp-below-fold {
        padding-bottom: calc(4rem + 72px);
    }
}

@media (min-width: 769px) {
    .main-nav__account { display: none; }
}

@media (max-width: 640px) {
    .cart-table thead { display: none; }

    .cart-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "item item"
            "qty price"
            "actions actions";
        gap: 0.65rem 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .cart-table tbody tr:last-child { border-bottom: none; }

    .cart-table td {
        padding: 0;
        border: none;
    }

    .cart-table td:first-child { grid-area: item; }
    .cart-table td:nth-child(2) { grid-area: qty; align-self: center; }
    .cart-table td:nth-child(3) { grid-area: price; text-align: right; align-self: center; }
    .cart-table td:nth-child(4) {
        grid-area: actions;
        display: flex;
        justify-content: flex-end;
    }

    .cart-subtotal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .responsive-table thead { display: none; }

    .responsive-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
    }

    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.4rem 0;
        border: none;
        font-size: 0.875rem;
    }

    .responsive-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--color-muted);
        flex-shrink: 0;
    }

    .responsive-table tbody td[data-label=""]::before,
    .responsive-table tbody td:not([data-label])::before {
        display: none;
    }

    .responsive-table tbody td:last-child {
        justify-content: flex-end;
        padding-top: 0.65rem;
        margin-top: 0.35rem;
        border-top: 1px solid var(--color-border);
    }

    .responsive-table tbody td:last-child::before { display: none; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 1rem, var(--container)); }

    .header-actions .lang-switch a {
        padding: 0.2rem 0.45rem !important;
    }

    .header-actions .cart-link {
        padding: 0.4rem 0.55rem;
        font-size: 0.72rem;
    }

    .hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }

    .site-main { padding-bottom: 3.5rem; }

    .cart-page { padding-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .card:hover .product-card-media img { transform: none; }
}

/* Light theme */
[data-theme="light"] {
    --color-bg: #f4f4f5;
    --color-bg-subtle: #fafafa;
    --color-surface: #ffffff;
    --color-surface-2: #f4f4f5;
    --color-surface-3: #e4e4e7;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.14);
    --color-text: #09090b;
    --color-text-secondary: #3f3f46;
    --color-muted: #71717a;
    --color-accent-muted: rgba(201, 169, 98, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .beta-bar {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.14), rgba(201, 169, 98, 0.05));
    border-bottom-color: rgba(201, 169, 98, 0.28);
}

[data-theme="light"] .beta-bar__badge {
    color: #09090b;
}

[data-theme="light"] .btn-primary {
    background: #09090b;
    color: #fafafa;
    border-color: #09090b;
}

[data-theme="light"] .btn-primary:hover {
    background: #27272a;
    border-color: #27272a;
    color: #fafafa;
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .header-actions a:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .product-viewer {
    background: radial-gradient(ellipse at 50% 30%, #f4f4f5 0%, #e4e4e7 70%);
}

[data-theme="light"] .product-page .product-viewer,
[data-theme="light"] .product-viewer--studio {
    background: radial-gradient(ellipse at 50% 28%, #ffffff 0%, #f4f4f5 45%, #e4e4e7 100%);
}

/* Display typography */
.font-display,
.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb-bar {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-bar a {
    color: var(--color-muted);
    text-decoration: none;
}

.breadcrumb-bar a:hover { color: var(--color-text); }

.breadcrumb-bar span { color: var(--color-muted); margin: 0 0.4rem; }

.operator-badge {
    font-size: 0.75rem;
    color: var(--color-muted);
    line-height: 1.45;
    margin: 0.65rem 0 0;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.operator-badge--compact {
    font-size: 0.68rem;
    padding: 0.35rem 0.5rem;
    margin-top: 0.5rem;
}

.operator-badge strong { color: var(--color-text-secondary); font-weight: 500; }
.operator-badge__domain { display: block; margin-top: 0.15rem; opacity: 0.85; }

.product-card-body .operator-badge {
    margin-top: 0.5rem;
    border: none;
    background: transparent;
    padding: 0;
}

.dev-login-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(241, 196, 15, 0.06);
}

.dev-login-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.dev-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-login-buttons form { margin: 0; }
.dev-login-hint { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--color-muted); }

.nav-partner-apply {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem !important;
}

.partner-apply-form .form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.partner-apply-form .form-section:last-of-type { border-bottom: none; }
.partner-apply-form .form-section h2 { font-size: 1rem; margin: 0 0 1rem; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.35rem 1rem;
}

.legal-checkbox { align-items: flex-start; margin-top: 0.75rem; }
.legal-checkbox span { font-size: 0.85rem; line-height: 1.45; }

.footer-domain { margin-top: 0.35rem; font-size: 0.85rem; }
.footer-domain a { color: var(--color-muted); }

.form-hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.35rem;
}
