/* ============================================================
   Vader Genetics — Design System + Global Styles
   Mobile-first. Dark premium. Minimal.
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Colors */
    --bg:             #0a0a0a;
    --bg-card:        #111111;
    --bg-elevated:    #1a1a1a;
    --bg-input:       #151515;
    --border:         #222222;
    --border-light:   #333333;

    --text:           #e8e8e8;
    --text-muted:     #888888;
    --text-dim:       #555555;

    --accent:         #4a7c59;
    --accent-light:   #5fa872;
    --accent-dark:    #3a6247;
    --accent-glow:    rgba(74, 124, 89, 0.15);

    --red:            #c0392b;
    --red-light:      #e74c3c;

    --white:          #ffffff;

    /* Typography */
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs:        0.75rem;
    --text-sm:        0.875rem;
    --text-base:      1rem;
    --text-lg:        1.125rem;
    --text-xl:        1.25rem;
    --text-2xl:       1.5rem;
    --text-3xl:       1.875rem;
    --text-4xl:       2.25rem;
    --text-5xl:       3rem;

    --weight-normal:  400;
    --weight-medium:  500;
    --weight-semi:    600;
    --weight-bold:    700;

    /* Spacing */
    --space-xs:       0.25rem;
    --space-sm:       0.5rem;
    --space-md:       1rem;
    --space-lg:       1.5rem;
    --space-xl:       2rem;
    --space-2xl:      3rem;
    --space-3xl:      4rem;
    --space-4xl:      6rem;

    /* Layout */
    --container:      1120px;
    --container-sm:   720px;
    --radius:         6px;
    --radius-lg:      10px;

    /* Transitions */
    --ease:           0.2s ease;
    --ease-slow:      0.3s ease;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

@media (min-width: 768px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
}

p {
    margin-bottom: var(--space-md);
    color: var(--text);
}

.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }
.text-lg    { font-size: var(--text-lg); }

/* ── Container ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    width: 100%;
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--ease);
    min-height: 44px;
    min-width: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    white-space: nowrap;
}

.badge-reg {
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid var(--accent-dark);
}

.badge-limited {
    background: rgba(192, 57, 43, 0.12);
    color: var(--red-light);
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.badge-sold-out {
    background: rgba(85, 85, 85, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease);
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color var(--ease);
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-dim);
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Grid ──────────────────────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-2xl) 0;
}

/* ── Stock Indicator ───────────────────────────────────────── */
.stock-count {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: var(--red-light);
}

.stock-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-light);
    margin-right: var(--space-xs);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--white);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--ease);
    min-height: 44px;
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: var(--space-md);
    transition: transform var(--ease);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease-slow), padding var(--ease-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-answer p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.flash-success {
    background: rgba(74, 124, 89, 0.12);
    border: 1px solid var(--accent-dark);
    color: var(--accent-light);
}

.flash-error {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: var(--red-light);
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo:hover {
    opacity: 0.9;
}

.header-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .header-logo-img {
        height: 38px;
    }
}

.header-nav {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.header-nav a {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--ease);
}

.header-nav a:hover {
    color: var(--white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    transition: color var(--ease);
}

.cart-link:hover {
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: var(--weight-bold);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    transition: color var(--ease);
}

.menu-toggle:hover {
    color: var(--white);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: var(--space-xl) var(--space-lg);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
    color: var(--accent-light);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    margin-top: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.footer-links h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-dim);
    padding: var(--space-xs) 0;
    transition: color var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-xl);
}

.footer-disclaimer {
    font-size: var(--text-xs);
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 720px;
}


/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-logo {
    height: 80px;
    width: auto;
    margin: 0 auto var(--space-lg);
    display: block;
}

@media (min-width: 768px) {
    .hero-logo {
        height: 110px;
    }
}

.hero-tagline {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-weight: var(--weight-medium);
}

.hero-scarcity {
    font-size: var(--text-sm);
    color: var(--text-dim);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-4xl);
    }

    .hero-tagline {
        font-size: var(--text-xl);
    }
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.product-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.product-card-name a {
    color: var(--white);
}

.product-card-name a:hover {
    color: var(--accent-light);
}

.product-card-hook {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-price {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--white);
}

.product-card-seeds {
    font-size: var(--text-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Sale Pricing ──────────────────────────────────────────── */
.badge-sale {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.product-card-price-old {
    font-size: var(--text-sm);
    color: var(--text-dim);
    text-decoration: line-through;
    margin-right: var(--space-xs);
}

.product-price-old {
    font-size: var(--text-lg);
    color: var(--text-dim);
    text-decoration: line-through;
    margin-right: var(--space-sm);
}

.product-sale-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: #e74c3c;
    margin-left: var(--space-sm);
}

/* ── Brand Section ─────────────────────────────────────────── */
.brand-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.brand-item {
    text-align: center;
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--ease);
}

.brand-item:hover {
    border-color: var(--border-light);
}

.brand-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
    color: var(--accent);
}

.brand-item h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.brand-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── Spotlight Section ─────────────────────────────────────── */
.spotlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .spotlight {
        grid-template-columns: 1fr 1fr;
    }
}

.spotlight-image {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-content h2 {
    margin-bottom: var(--space-sm);
}

.spotlight-content .badge {
    margin-bottom: var(--space-md);
}

.spotlight-content p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.spotlight-lineage {
    font-size: var(--text-sm);
    color: var(--text-dim);
    border-left: 2px solid var(--accent);
    padding-left: var(--space-md);
    margin-bottom: var(--space-lg);
}

.spotlight-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.spotlight-price {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--white);
}

/* ── Email Capture ─────────────────────────────────────────── */
.email-capture {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-lg);
}

.email-capture h2 {
    margin-bottom: var(--space-sm);
}

.email-capture p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .email-form {
        flex-direction: row;
    }
}

.email-form .form-input {
    flex: 1;
}

/* ── Utilities ─────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── 404 ───────────────────────────────────────────────────── */
.page-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.page-404 h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.page-404 p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ============================================================
   Phase 2 — Shop, Product Detail, Cart
   ============================================================ */

/* ── Shop Toolbar ──────────────────────────────────────────── */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.shop-filters {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.shop-select {
    width: auto;
    min-width: 180px;
    padding-right: 2rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.shop-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    min-height: 44px;
}

.shop-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.shop-toggle-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.shop-count {
    flex-shrink: 0;
}

.shop-empty {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.shop-empty h2 {
    margin-bottom: var(--space-sm);
}

.shop-empty p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
    padding: var(--space-lg) 0;
    font-size: var(--text-sm);
    color: var(--text-dim);
}

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

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

.breadcrumb-sep {
    margin: 0 var(--space-sm);
    color: var(--text-dim);
}

/* ── Product Detail ────────────────────────────────────────── */
.product-detail {
    padding-bottom: var(--space-4xl);
}

.product-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .product-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product Gallery */
.product-image-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Product Purchase Block */
.product-purchase h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .product-purchase h1 {
        font-size: var(--text-3xl);
    }
}

.product-hook {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.product-price-block {
    margin-bottom: var(--space-md);
}

.product-price {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--white);
    display: block;
    margin-bottom: var(--space-xs);
}

.product-pack-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.product-stock {
    margin-bottom: var(--space-lg);
}

.stock-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
}

.stock-label-in {
    color: var(--accent-light);
}

.stock-label-out {
    color: var(--text-muted);
}

/* Quantity Selector */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: var(--text-lg);
    border: none;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    user-select: none;
}

.qty-btn:hover {
    background: var(--border-light);
    color: var(--white);
}

.qty-input {
    width: 48px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--white);
    font-weight: var(--weight-semi);
    font-size: var(--text-base);
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-selector-sm .qty-btn {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
}

.qty-selector-sm .qty-input {
    width: 40px;
    height: 36px;
    font-size: var(--text-sm);
}

.product-qty-row {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.product-add-btn {
    flex: 1;
}

.product-compliance {
    font-size: var(--text-xs);
    color: var(--text-dim);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Product Info Sections */
.product-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

.product-section h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .product-section h2 {
        font-size: var(--text-2xl);
    }
}

.product-description p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
}

/* Lineage Card */
.lineage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-xl);
    max-width: 720px;
}

.lineage-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Who For List */
.who-for-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.who-for-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-light);
    margin-top: 2px;
}

/* ── Cart Page ─────────────────────────────────────────────── */
.cart-title {
    margin-bottom: var(--space-xl);
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: var(--space-lg);
    }
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

@media (min-width: 640px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-size: var(--text-base);
    font-weight: var(--weight-semi);
    margin-bottom: var(--space-xs);
}

.cart-item-name a {
    color: var(--white);
}

.cart-item-name a:hover {
    color: var(--accent-light);
}

.cart-item-meta {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cart-item-unit-price {
    display: block;
    margin-top: var(--space-xs);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .cart-item-controls {
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
    }
}

.cart-item-total {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
    min-width: 70px;
    text-align: right;
}

.cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-dim);
    transition: color var(--ease);
    border-radius: var(--radius);
}

.cart-remove-btn:hover {
    color: var(--red-light);
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: sticky;
    top: 80px;
}

.cart-summary h2 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.cart-summary-total {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
}

.cart-summary .divider {
    margin: var(--space-md) 0;
}

.cart-summary .btn {
    margin-top: var(--space-md);
}

.cart-summary .btn + .btn {
    margin-top: var(--space-sm);
}

/* ============================================================
   Phase 3 — Checkout + Order Success
   ============================================================ */

/* ── Checkout Layout ───────────────────────────────────────── */
.checkout-title {
    margin-bottom: var(--space-xl);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr 380px;
        align-items: start;
    }
}

.checkout-section {
    border: none;
    padding: 0;
    margin-bottom: var(--space-2xl);
}

.checkout-legend {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: block;
}

/* Form rows */
.form-row {
    margin-bottom: var(--space-md);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .form-row-3 {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Shipping Options */
.shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.shipping-option-selected {
    border-color: var(--accent-dark);
    background: var(--accent-glow);
}

.shipping-option-gd {
    cursor: pointer;
    transition: border-color var(--ease);
}

.shipping-option-gd:hover {
    border-color: var(--border-light);
}

.shipping-option-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.shipping-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.shipping-option-info {
    display: flex;
    flex-direction: column;
}

.shipping-option-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: var(--white);
}

.shipping-option-desc {
    margin-top: 2px;
}

.shipping-option-price {
    font-weight: var(--weight-semi);
    color: var(--white);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

/* Card container (Square SDK) */
.card-container {
    min-height: 44px;
    border-radius: var(--radius);
}

.card-errors {
    color: var(--red-light);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
    min-height: 20px;
}

/* Checkout Summary Items */
.checkout-items {
    margin-bottom: var(--space-md);
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.checkout-item-image {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: var(--weight-bold);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-price {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: var(--white);
    flex-shrink: 0;
}

.checkout-compliance {
    margin-top: var(--space-md);
    text-align: center;
    line-height: 1.6;
}

/* Checkout summary sticky */
.checkout-summary .cart-summary {
    position: sticky;
    top: 80px;
}

/* ── Order Success ─────────────────────────────────────────── */
.order-success {
    text-align: center;
}

.order-success-icon {
    color: var(--accent-light);
    margin-bottom: var(--space-lg);
}

.order-success h1 {
    margin-bottom: var(--space-sm);
}

.order-success-number {
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    color: var(--accent-light);
    margin-bottom: var(--space-sm);
}

.order-details {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) auto;
    max-width: 560px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.order-line-name {
    font-size: var(--text-sm);
    color: var(--white);
}

.order-line-price {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: var(--white);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.order-total-final {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
    padding-top: var(--space-sm);
}

.order-shipping-info h3 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.order-shipping-info p {
    font-size: var(--text-sm);
    color: var(--text);
    line-height: 1.6;
}

.order-info-note {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.order-info-note p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.order-success > .btn {
    margin-top: var(--space-xl);
}

/* ============================================================
   Phase 4 — Content Pages, Contact Form
   ============================================================ */

/* ── Page Content ──────────────────────────────────────────── */
.page-content h1 {
    margin-bottom: var(--space-xl);
}

.page-content h2 {
    font-size: var(--text-lg);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .page-content h2 {
        font-size: var(--text-xl);
    }
}

.page-content p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 640px;
}

.page-list {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

.page-list li {
    position: relative;
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.page-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-email-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-email-block p {
    margin-bottom: 0;
    color: var(--text);
}

.contact-form {
    margin-top: var(--space-xl);
}

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

/* ============================================================
   Feature — Product Gallery Thumbnails
   ============================================================ */

.product-thumbnails {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
}

.product-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-elevated);
    padding: 0;
    transition: border-color var(--ease);
}

.product-thumb:hover {
    border-color: var(--border-light);
}

.product-thumb.active {
    border-color: var(--accent);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .product-thumb {
        width: 80px;
        height: 80px;
    }
}

/* ============================================================
   Feature — Image Lightbox
   ============================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ease);
    z-index: 1;
}

.lightbox-close:hover {
    color: var(--text-muted);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background var(--ease);
    z-index: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

@media (max-width: 640px) {
    .lightbox-nav {
        width: 40px;
        height: 52px;
        font-size: 1.5rem;
    }
}

/* ============================================================
   Feature — Age Gate
   ============================================================ */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.age-gate-box {
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.age-gate-logo {
    height: 48px;
    width: auto;
    margin: 0 auto var(--space-2xl);
    display: block;
}

@media (min-width: 768px) {
    .age-gate-logo {
        height: 56px;
    }
}

.age-gate-msg {
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    color: var(--white);
    margin-bottom: var(--space-2xl);
}

.age-gate-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.age-gate-buttons .btn {
    min-width: 120px;
}

.age-gate-disclaimer {
    font-size: var(--text-xs);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   Feature — Announcement Bar
   ============================================================ */

.announcement-bar {
    position: relative;
    text-align: center;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-text {
    display: inline-block;
}

.announcement-dismiss {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-dismiss:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .announcement-bar {
        padding: 0.4rem 2rem 0.4rem 0.75rem;
    }
}

/* ============================================================
   Feature — News / Blog
   ============================================================ */

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    color: var(--text);
}

.news-card:hover {
    color: var(--text);
}

.news-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.03);
}

.news-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    font-size: var(--text-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

.news-card-title {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--white);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex: 1;
    margin-bottom: var(--space-md);
}

.news-card-link {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: var(--weight-semi);
}

/* Single Post */
.post-header {
    margin-bottom: var(--space-2xl);
}

.post-date {
    font-size: var(--text-sm);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: var(--space-md);
}

.post-header h1 {
    margin-bottom: var(--space-md);
}

.post-excerpt {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.post-featured-image {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    margin-bottom: var(--space-3xl);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
}

.post-footer {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}
