/* ===== 42 — Clothing / Product HUD Page =====
   Page-specific styles only. Header, mobile menu, ticket-tab
   component, and footer live in header-footer.css (shared site-wide). */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --line: #2A2A2E;
    --hud-line: rgba(200, 220, 255, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Space Mono', 'Courier Prime', monospace;
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ===== Stage ===== */
.pdp-stage {
    position: relative;
    min-height: 820px;
    padding: 0 32px 60px;
}

.pdp-image-stage {
    min-height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-product-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Desktop and mobile use different crops of the product photo — only
   one is ever in the layout at a time. */
.pdp-product-img--mobile {
    display: none;
}

.pdp-product-img--desktop {
    max-width: 640px;
    max-height: 800px;
}

/* ===== Left Panel ===== */
.pdp-panel {
    position: absolute;
    width: 320px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    clip-path: polygon(
        0 14px, 14px 0,
        100% 0,
        100% calc(100% - 14px),
        calc(100% - 14px) 100%,
        0 100%
    );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.panel-left {
    top: 24px;
    left: 32px;
}

.panel-right {
    top: 64px;
    right: 32px;
    width: 260px;
}

.panel-inner {
    padding: 22px 22px 18px;
}

/* Product title block */
.product-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.5;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.price-value {
    font-family: 'Space Grotesk', 'Space Mono', monospace;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.tag-pill {
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

/* Accordion */
.accordion {
    border-top: 1px solid var(--line);
}

.accordion-row {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    cursor: pointer;
}

.accordion-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.accordion-indicator {
    font-size: 0.68rem;
    color: var(--grey);
}

.accordion-row.open .accordion-row-head,
.accordion-row.open .accordion-indicator {
    color: var(--accent-hover);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    font-size: 0.7rem;
    line-height: 1.7;
    color: var(--grey);
}

.accordion-row.open .accordion-body {
    max-height: 240px;
    margin-top: 10px;
}

/* ===== Right Panel ===== */
.size-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Size selector & CTA: flush capsule, no ticket-neck bridge — tabs
   sit directly touching with a shared divider, unlike the header nav. */
.size-selector,
.action-ticket {
    display: flex;
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 14px;
}

.size-selector .ticket-tab,
.action-ticket .ticket-tab {
    flex: 1;
    border: none;
    border-right: 1px solid var(--panel-border);
    border-radius: 0;
}

.size-selector .ticket-tab:last-child,
.action-ticket .ticket-tab:last-child {
    border-right: none;
}

.size-selector .ticket-tab {
    padding: 0 10px;
    font-size: 0.62rem;
}

.fit-note {
    font-size: 0.6rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 16px;
}

.fit-note a {
    text-decoration: underline;
}

.action-ticket .ticket-tab {
    height: 42px;
    font-weight: 700;
}

.action-ticket .save-btn {
    flex: 0.7;
    padding: 0 14px;
}

.action-ticket .preorder-btn {
    flex: 1;
}

.payment-note {
    font-size: 0.58rem;
    color: var(--grey);
    line-height: 1.6;
}

.payment-note a {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* ===== Currency / Region Widget ===== */
.currency-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

/* This page already has the currency widget at bottom-right; stack the
   shared audio widget directly above it so neither one overlaps. */
.audio-widget {
    bottom: 66px;
}

.currency-toggle {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    color: var(--ink);
    padding: 10px 18px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.currency-toggle:hover {
    border-color: var(--accent-hover);
}

.currency-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.currency-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.currency-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--panel-border);
    color: var(--ink);
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.currency-dropdown button:last-child {
    border-bottom: none;
}

.currency-dropdown button:hover,
.currency-dropdown button.active {
    background: var(--accent-hover);
    color: #ffffff;
}

/* ===== Waitlist Popup =====
   Lightweight corner card (not a full-screen dimming modal) that
   appears 1s after landing on this page. */
.waitlist-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 2000;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.waitlist-popup.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.waitlist-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--grey);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
}

.waitlist-popup-close:hover {
    color: var(--ink);
}

.waitlist-popup-logo {
    height: 22px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.waitlist-popup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.waitlist-popup-text {
    font-size: 0.72rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 18px;
}

.waitlist-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waitlist-popup-form input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
}

.waitlist-popup-form input::placeholder {
    color: var(--grey);
}

.waitlist-popup-form input:focus {
    outline: none;
    border-color: var(--accent-hover);
}

.waitlist-popup-cta {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.waitlist-popup-cta:hover {
    background: var(--accent-hover);
}

/* ===== Responsive (Mobile ≤768px) ===== */
@media (max-width: 768px) {
    .pdp-stage {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 24px 24px 40px;
    }

    .pdp-image-stage {
        order: 1;
        min-height: 320px;
    }

    .pdp-product-img--desktop {
        display: none;
    }

    .pdp-product-img--mobile {
        display: block;
        max-width: 260px;
        max-height: 320px;
    }

    .panel-left {
        order: 2;
    }

    .panel-right {
        order: 3;
    }

    .pdp-panel {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .currency-widget {
        bottom: 16px;
        right: 16px;
    }

    .audio-widget {
        bottom: 60px;
    }

    .waitlist-popup {
        left: 16px;
        right: 16px;
        /* Clears the stacked audio + currency widgets in the bottom-right
           corner instead of sitting under them. */
        bottom: 108px;
        width: auto;
        max-width: none;
        padding: 22px 20px;
    }
}
