/* ── Age Gate ─────────────────────────────────────────────────── */
#age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.age-gate-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.age-gate-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #fff;
}

.age-gate-logo span { color: #4ade80; }

.age-gate-card h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.age-gate-card p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.age-gate-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.age-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-family: inherit;
    min-height: 48px;
}

.age-btn-primary {
    background: #4ade80;
    color: #000;
}

.age-btn-primary:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.age-btn-secondary {
    background: transparent;
    color: #888;
    border-color: #333;
}

.age-btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

.age-gate-disclaimer {
    font-size: 0.75rem !important;
    color: #555 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .age-gate-card {
        padding: 32px 24px;
    }
    .age-gate-card h2 { font-size: 1.4rem; }
    .age-gate-buttons { flex-direction: column; gap: 10px; }
}

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

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    --border: #222;
    --text: #e8e8e8;
    --text-muted: #888;
    --accent: #4ade80;
    --accent-dim: #22c55e;
    --white: #fff;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: clip;
    position: relative;
}

html {
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }

/* ── Header phone button ──────────────────────────────────────── */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
    margin-left: auto;
    margin-right: 12px;
    white-space: nowrap;
}

.header-phone:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.phone-icon {
    font-size: 1.1rem;
}

/* ── Hero call button ─────────────────────────────────────────── */
.hero-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 28px;
    background: var(--accent);
    color: #000 !important;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.25);
    letter-spacing: -0.01em;
}

.hero-call-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(74, 222, 128, 0.35);
}

.hero-call-btn:active {
    transform: translateY(0);
}

.hero-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 28px;
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.hero-text-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    transform: translateY(-2px);
}

.hero-text-btn:active {
    transform: translateY(0);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-phone-icon {
    font-size: 1.3rem;
}

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

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo span { color: var(--accent); }

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

.nav a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--white);
    background: var(--bg-hover);
}

.nav a.active { color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 60px 24px 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero h1 span { color: var(--accent); }

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Category Pills ───────────────────────────────────────────── */
.categories {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}

.pill:hover {
    border-color: var(--accent-dim);
    color: var(--white);
}

.pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.pill .count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ── Product Grid ─────────────────────────────────────────────── */
.products {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
    cursor: pointer;
}

.product-card .card-image {
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-card:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.card-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-availability {
    font-size: 0.8rem;
    color: var(--accent-dim);
    margin-bottom: 10px;
}

.card-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-tag .amount {
    color: var(--white);
    font-weight: 600;
}

/* ── Product Detail ───────────────────────────────────────────── */
.product-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-media {
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
}

.detail-media img,
.detail-media video {
    width: 100%;
    border-radius: var(--radius);
}

.detail-info h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.detail-availability {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

.detail-pricing {
    margin-bottom: 24px;
}

.detail-pricing h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.price-table tr {
    border-bottom: 1px solid var(--border);
}

.price-table td {
    padding: 10px 0;
    font-size: 0.95rem;
}

.price-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--white);
    font-size: 1.05rem;
}

.detail-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.2s;
}

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

/* ── Contact ──────────────────────────────────────────────────── */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.contact-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-page p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s;
}

.contact-card:hover { border-color: #333; }

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-card a {
    color: var(--accent);
}

/* ── Empty State ──────────────────────────────────────────────── */
.empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .hero {
        padding: 32px 16px 20px;
    }
    .hero h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
    .hero p { font-size: 0.95rem; }

    .header-inner { padding: 0 16px; height: 56px; }
    .logo { font-size: 1.1rem; }

    .menu-toggle {
        display: block;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 1.1rem;
        min-width: 44px;
        min-height: 44px;
    }

    .header-phone {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-right: 8px;
    }

    .hero-call-btn,
    .hero-text-btn {
        font-size: 0.95rem;
        padding: 12px 20px;
        margin-top: 18px;
    }
    .hero-actions {
        gap: 10px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px env(safe-area-inset-bottom, 12px);
        flex-direction: column;
        gap: 2px;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .nav.open { display: flex; }

    .nav a {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav a.active {
        background: rgba(74, 222, 128, 0.1);
        color: var(--accent);
    }

    .categories {
        padding: 0 16px 20px;
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Isolate scrolling so swipes don't bleed to body */
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .categories::-webkit-scrollbar { display: none; }

    .pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 16px;
        min-height: 38px;
    }

    .products { padding: 0 16px 40px; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Align all cards in a row to same height */
        grid-auto-rows: 1fr;
    }

    .product-card {
        min-width: 0; /* Prevents overflow of wide children (price tags) */
    }

    .card-body {
        padding: 10px;
        min-width: 0;
    }
    .card-body h3 {
        font-size: 0.9rem;
        line-height: 1.25;
        margin-bottom: 4px;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-availability {
        font-size: 0.7rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    /* Price tags in 2-column grid for consistent layout */
    .card-prices {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .price-tag {
        font-size: 0.68rem;
        padding: 3px 5px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        /* Tag is a grid item — do not let it force overflow */
        min-width: 0;
    }

    .card-image .category-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }

    /* Product detail */
    .product-detail {
        padding: 20px 16px 40px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-info h1 {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }

    .detail-availability {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .detail-media {
        border-radius: var(--radius);
    }

    .detail-media img,
    .detail-media video {
        border-radius: var(--radius);
        margin-bottom: 10px !important;
    }

    .price-table td {
        padding: 12px 0;
        font-size: 1rem;
    }
    .price-table td:last-child {
        font-size: 1.1rem;
    }

    .back-link {
        font-size: 0.85rem;
        margin-bottom: 16px;
        min-height: 44px;
        align-items: center;
    }

    .detail-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Contact page */
    .contact-page {
        padding: 40px 16px;
    }
    .contact-page h1 { font-size: 1.6rem; }

    .footer {
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        font-size: 0.8rem;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
    .product-grid { gap: 8px; }
    .card-body { padding: 8px; }
    .card-body h3 { font-size: 0.85rem; }
    .price-tag { font-size: 0.64rem; padding: 2px 4px; }
    .hero h1 { font-size: 1.5rem; }

    /* On very small screens, show only the phone icon to save space */
    .header-phone .phone-number { display: none; }
    .header-phone { padding: 8px 10px; }
    .phone-icon { font-size: 1.2rem; }
}

/* Disable hover transforms on touch devices (prevents sticky hover state) */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border);
    }
    .product-card:hover .card-image img {
        transform: none;
    }
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Respect iOS safe areas (notch/home indicator) */
@supports (padding: max(0px)) {
    .header-inner {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}
