/* ---------------------------------------------------------------
   Hero spec line (product + drop pages)
   --------------------------------------------------------------- */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.5rem;
}

.hero-meta-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
}

.hero-meta-value {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-foreground);
}

.hero-section--product { min-height: 34vh; }

/* ---------------------------------------------------------------
   Gallery
   --------------------------------------------------------------- */
.product-gallery-section {
    padding-block: var(--space-md);
    background: var(--color-void);
    border-bottom: 1px solid var(--color-border);
}

.product-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(78%, 1fr);
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: var(--color-border);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .product-gallery {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
}

.gallery-item {
    margin: 0;
    scroll-snap-align: start;
    background: var(--color-background);
    position: relative;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.gallery-caption {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
}

/* ---------------------------------------------------------------
   Detail body
   --------------------------------------------------------------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.product-block-title {
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.spec-list {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 560px) {
    .spec-row {
        grid-template-columns: 11rem 1fr;
        gap: 1.5rem;
        align-items: baseline;
    }
}

.spec-row dt {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent-text);
}

.spec-row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-foreground);
}

.care-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.care-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.care-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 2px;
    background: var(--color-accent);
}

/* ---------------------------------------------------------------
   Reserve panel
   --------------------------------------------------------------- */
.reserve-block {
    border: 1px solid var(--color-border);
    background: var(--color-void);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .reserve-block { position: sticky; top: calc(var(--header-height) + var(--marquee-height) + 1.5rem); }
}

.reserve-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.reserve-price {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.reserve-sizes { border: 0; padding: 0; margin: 0; }

.reserve-legend {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding: 0;
}

.reserve-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reserve-size-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reserve-size-label:hover { border-color: var(--color-foreground); }

/* Selection is shown by fill, not colour alone */
.reserve-size-input:checked + .reserve-size-label {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.reserve-size-input:focus-visible + .reserve-size-label {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.reserve-size-label--out {
    color: var(--color-text-muted);
    border-color: transparent;
    text-decoration: line-through;
    text-decoration-color: var(--color-accent);
    cursor: not-allowed;
}

/* Cue when add-to-cart is pressed before a size is picked (see cart island). */
.reserve-block.is-size-required .reserve-size-label:not(.reserve-size-label--out) {
    border-color: var(--color-accent);
}

.reserve-btn { width: 100%; }

.reserve-note {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.reserve-note--out { color: var(--color-accent-text); }

.reserve-run {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

/* ---------------------------------------------------------------
   Prev / next
   --------------------------------------------------------------- */
/* The first and last item in a sequence have only one neighbour, so one cell is
   always empty here — each link carries its own full border and the container
   carries none, so an empty side leaves clean space rather than a grey panel. */
.product-navigation,
.article-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 5rem;
}

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

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem;
    background: var(--color-background);
    height: 100%;
    border: 1px solid var(--color-border);
    transition: background 0.15s ease, border-color 0.15s ease;
}

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

.nav-link:hover { background: var(--color-surface); color: var(--color-foreground); }

.nav-next .nav-link { text-align: right; align-items: flex-end; }

.nav-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent-text);
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(--color-foreground);
    line-height: 1.1;
}

/* ---------------------------------------------------------------
   Lightbox (built by the island)
   --------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgb(0 0 0 / 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
}

.lightbox[hidden] { display: none; }

.lightbox-image {
    max-width: min(90vw, 60rem);
    max-height: 84vh;
    object-fit: contain;
    border: 1px solid var(--color-border);
}

.lightbox-close,
.lightbox-nav {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    transition: all 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .lightbox-nav { position: absolute; bottom: 1.25rem; }
    .lightbox-prev { left: 1.5rem; }
    .lightbox-next { right: 1.5rem; }
    .lightbox-counter { bottom: 2.1rem; }
}
