/*========== MERCH (OFFICIAL STORE) PAGE ==========*/
/* page-merch.php. Builds on theme.css: colours, fonts and spacing come from its variables;
   .container, .button, .sc-heading, .object-fit, .link-overlay and the Swiper styles are reused.
   Only what the design adds on top of the theme lives here.
   Every slider shares one markup (.product-swiper > .swiper-container > .swiper-wrapper > .swiper-slide
   + .product-swiper__nav), driven by the theme's Swiper 5 in merch.js. */

html {
    scroll-behavior: smooth;
}

.merch-main {
    --merch-surface: #152040;
    --merch-bg-deep: #0F172F;
    --merch-hairline: rgba(var(--color-gold-rgb), 0.18);
    --merch-text-muted: #9AA3BC;
    --merch-max-width: 1440px;
    overflow-x: clip;
}
.merch-main .container {
    max-width: var(--merch-max-width);
}
.merch-main figure {
    margin: 0;
}
.merch-main [id] {
    scroll-margin-top: var(--header-height-fixed);
}

/* SECTION HEADINGS */
.merch-main .sc-headline {
    margin-bottom: var(--spacing-lg);
}
.merch-main .sc-heading {
    letter-spacing: 1px;
}
/* The promo banners keep the theme's headings, as on the History page */
.merch-main .merch-banners .sc-headline {
    margin-bottom: 0;
}
.merch-main .merch-banners .sc-heading {
    letter-spacing: normal;
}
.merch-main .sc-heading-sub {
    font-size: var(--font-size-md);
    letter-spacing: 1.2px;
    color: var(--merch-text-muted);
}

/* BODY COPY: one size everywhere (mockup round 4) */
.merch-main .hero__body .lede,
.merch-main .sku-description,
.merch-main .sku-notes p,
.merch-main .highlight-body .desc,
.merch-main .experience-content p,
.merch-main .loc-address,
.merch-main .loc-contact,
.merch-main .loc-hours li {
    font-size: var(--font-size-md);
    line-height: 1.65;
}


/*========== SLIDERS (shared) ==========*/
.merch-main .product-swiper {
    position: relative;
}
.merch-main .product-swiper .swiper-container {
    overflow: hidden;
}
.merch-main .swiper-slide {
    box-sizing: border-box;
}

/* Prev / dots / next */
.merch-main .product-swiper__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}
.merch-main .product-swiper__nav [class*="swiper-button-"] {
    position: static;
    margin: 0;
    padding: 0;
    transform: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: rgba(var(--color-blue-dark-rgb), 0.92);
    box-shadow: none;
    cursor: pointer;
}
.merch-main .product-swiper__nav [class*="swiper-button-"]:hover,
.merch-main .product-swiper__nav [class*="swiper-button-"]:focus-visible {
    color: var(--color-blue-dark);
    background: var(--color-gold);
}
.merch-main .product-swiper__nav [class*="swiper-button-"]:after {
    font-size: var(--icon-size);
    transform: none;
}
.merch-main .product-swiper__nav .swiper-button-disabled {
    opacity: .35 !important;
    cursor: default;
}
.merch-main .product-swiper__nav .swiper-pagination {
    position: static;
    width: auto;
    gap: 0;
}
.merch-main .product-swiper__nav .swiper-pagination:empty {
    display: none;
}
/* 44px tap targets around the visible dots */
.merch-main .product-swiper__nav .swiper-pagination-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    opacity: 1;
    cursor: pointer;
}
.merch-main .product-swiper__nav .swiper-pagination-bullet:before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-bright);
    opacity: .45;
    transition: var(--duration) var(--timing-function);
}
.merch-main .product-swiper__nav .swiper-pagination-bullet:hover:before {
    opacity: .8;
}
.merch-main .product-swiper__nav .swiper-pagination-bullet-active:before {
    width: 30px;
    border-radius: 6px;
    background: var(--color-gold);
    opacity: 1;
}


/*========== HERO (looping carousel) ==========*/
.merch-main .hero--carousel {
    --merch-hero-nav-bottom: 128px;
    --merch-hero-body-bottom: 200px;
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
}
@supports (height: 100svh) {
    .merch-main .hero--carousel { height: 100svh; }
}

.merch-main .hero-swiper {
    position: absolute;
    inset: 0;
}
.merch-main .hero-swiper .swiper-container,
.merch-main .hero-swiper .swiper-wrapper,
.merch-main .hero-slide {
    height: 100%;
}
.merch-main .hero-slide {
    position: relative;
    overflow: hidden;
}

.merch-main .hero__media {
    position: absolute;
    inset: 0;
}
.merch-main .hero__media > img {
    z-index: 0;
    object-position: center 45%;
}
.merch-main .hero__media > video {
    z-index: 1;
    object-position: center 45%;
}
.merch-main .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(14, 23, 48, .88), rgba(14, 23, 48, .20) 72%),
        linear-gradient(0deg, rgba(14, 23, 48, .55), transparent 55%);
}
.merch-main .hero-slide--image .hero__scrim {
    background: linear-gradient(0deg, rgba(14, 23, 48, .9), rgba(14, 23, 48, .45) 26%, transparent 50%);
}

.merch-main .container.hero-align {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    max-width: none;
    padding-bottom: var(--merch-hero-body-bottom);
    pointer-events: none;
}
.merch-main .hero__body {
    display: grid;
    gap: var(--spacing-sm);
    max-width: 660px;
    pointer-events: auto;
}
.merch-main .hero__body h1,
.merch-main .hero__body h2,
.merch-main .hero__body .hero-title-clone {
    line-height: 1.02;
    text-wrap: balance;
}
.merch-main .hero__body .lede {
    max-width: 32em;
    text-wrap: pretty;
}

.merch-main .hero__nav {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: var(--merch-hero-nav-bottom);
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.merch-main .hero__nav .product-swiper__nav {
    margin-top: 0;
    pointer-events: auto;
}



/*========== STORE CONTENT BAND (range, collaborations, collection) ==========*/
.merch-main .highlights-section {
    position: relative;
    padding: var(--spacing-lg) 0;
    background: rgba(14, 23, 48, 0.55);
    border-top: 1px solid var(--merch-hairline);
    border-bottom: 1px solid var(--merch-hairline);
}
.merch-main .highlights-section > section + section {
    margin-top: var(--spacing-xl);
}

/* WHAT YOU'LL FIND IN STORE: two rows of square tiles, one column per slide */
.merch-main .range-slider {
    --rs-gap: 22px;
}
.merch-main .range-col {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--rs-gap);
}
.merch-main .product-tile {
    position: relative;
    background: var(--merch-surface);
    border: 1px solid var(--merch-hairline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--duration) var(--timing-function);
}
.merch-main .product-tile .link-overlay {
    z-index: 3;
}
.merch-main .product-tile:hover,
.merch-main .product-tile:focus-within {
    border-color: var(--color-gold);
}
.merch-main .tile-media {
    aspect-ratio: 1 / 1;
}

/* FEATURED COLLABORATIONS */
.merch-main .spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}
.merch-main .spotlight-content,
.merch-main .spotlight-media {
    min-width: 0;
}
.merch-main .spotlight-media {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid rgba(var(--color-gold-rgb), 0.28);
}
.merch-main .sku-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(var(--color-gold-rgb), 0.14);
    border: 1px solid var(--color-gold);
}
.merch-main .sku-title {
    margin-bottom: 14px;
    line-height: 1.12;
}
.merch-main .sku-description {
    margin-bottom: 0;
}
.merch-main .sku-notes {
    margin-top: 10px;
}
.merch-main .sku-notes[hidden] {
    display: none;
}
.merch-main .sku-notes p {
    margin-bottom: 10px;
    color: var(--merch-text-muted);
}
.merch-main .sku-notes p:last-child {
    margin-bottom: 0;
}
.merch-main .read-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 4px 0 0 -8px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
}
.merch-main .read-more:hover,
.merch-main .read-more:focus-visible {
    text-decoration: underline;
}

/* DISCOVER THE COLLECTION: a 4-column grid from 1200px, a looping slider below */
.merch-main .highlights-grid {
    --hl-gap: 24px;
}
.merch-main .highlights-grid__cell {
    height: auto;
}
.merch-main .highlight-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--merch-surface);
    border: 1px solid var(--merch-hairline);
    border-radius: 6px;
    overflow: hidden;
    transition: transform var(--duration) ease, border-color var(--duration) ease;
}
.merch-main .highlight-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
}
.merch-main .highlight-media {
    aspect-ratio: 3 / 4;
}
.merch-main .highlight-body {
    flex-grow: 1;
    padding: var(--spacing-sm) 18px;
}
/* Titles take two lines everywhere, so the descriptions line up across the row */
.merch-main .highlight-body h3 {
    min-height: 2.5em;
    margin-bottom: 8px;
    line-height: 1.25;
}
.merch-main .highlight-body .desc {
    color: var(--merch-text-muted);
}


/*========== INSIDE OUR STORE: two cards from 992px, a looping slider below ==========*/
.merch-main .store-experience {
    padding: var(--spacing-lg) 0;
}
.merch-main .experience-grid {
    --ex-gap: 40px;
}
.merch-main .experience-cell {
    height: auto;
}
.merch-main .experience-card {
    height: 100%;
    background: var(--merch-surface);
    border: 1px solid var(--merch-hairline);
    overflow: hidden;
}
.merch-main .experience-card .media {
    height: 380px;
}
.merch-main .experience-content {
    padding: 28px 24px;
}
.merch-main .experience-content h3 {
    margin-bottom: 12px;
}
.merch-main .experience-content p {
    color: var(--merch-text-muted);
}


/*========== VISIT THE STORE ==========*/
.merch-main .location {
    position: relative;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    border-bottom: 1px solid var(--merch-hairline);
    background: linear-gradient(180deg, rgba(var(--color-blue-dark-rgb), 0.92) 0%, rgba(15, 23, 47, 0.97) 100%);
}
.merch-main .location__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.10;
}
.merch-main .location__bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 47, 0.55) 0%, rgba(15, 23, 47, 0.9) 100%);
}
.merch-main .location .container {
    position: relative;
    z-index: 2;
}

.merch-main .loc-hero {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    border: 1px solid var(--merch-hairline);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(15, 23, 47, 0.72);
}
.merch-main .loc-hero--no-visual {
    grid-template-columns: 1fr;
}
.merch-main .loc-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    padding: 48px 44px;
}
.merch-main .loc-eyebrow {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--merch-text-muted);
}
.merch-main .loc-address strong {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
}
.merch-main .loc-contact {
    margin-top: 12px;
}
.merch-main .loc-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}
.merch-main .loc-contact a:hover,
.merch-main .loc-contact a:focus-visible {
    color: var(--color-gold);
}

.merch-main .loc-hours li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(var(--color-gold-rgb), 0.16);
}
.merch-main .loc-hours li span:last-child {
    white-space: nowrap;
    color: var(--color-gold);
}
.merch-main .loc-hours li.loc-hours__note {
    padding-top: 12px;
    border-bottom: 0;
}
.merch-main .loc-hours li.loc-hours__note span {
    white-space: normal;
    color: var(--merch-text-muted);
}

.merch-main .loc-visual {
    min-width: 0;
    min-height: 480px;
    background: var(--merch-bg-deep);
    border-left: 1px solid var(--merch-hairline);
}
.merch-main .loc-visual:after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(15, 23, 47, 0.82) 0%, rgba(15, 23, 47, 0.30) 55%, transparent 100%);
}


/*========== CHINESE & JAPANESE ==========*/
/* Latin-style tracking and tight display line-heights don't suit CJK text. */
html[lang="ja"] .merch-main *,
html[lang="zh-hans"] .merch-main * {
    letter-spacing: normal;
}
html[lang="ja"] .merch-main .sc-heading,
html[lang="zh-hans"] .merch-main .sc-heading,
html[lang="ja"] .merch-main .hero-title-clone,
html[lang="zh-hans"] .merch-main .hero-title-clone,
html[lang="ja"] .merch-main .loc-address strong,
html[lang="zh-hans"] .merch-main .loc-address strong {
    line-height: 1.35;
}
html[lang="ja"] .merch-main .sku-badge,
html[lang="zh-hans"] .merch-main .sku-badge {
    line-height: 1.5;
}
html[lang="ja"] .merch-main {
    line-break: strict;
}
/* Break Japanese headings between words, not mid-word (Chrome/Edge; others keep the default). */
html[lang="ja"] .merch-main .sc-heading,
html[lang="ja"] .merch-main .hero-title-clone,
html[lang="ja"] .merch-main .loc-address strong {
    word-break: auto-phrase;
}


/*========== MEDIA QUERIES ==========*/
@media (min-width:1200px) {
    /* Collection: plain grid, no slider */
    .merch-main .highlights-grid .swiper-container {
        overflow: visible;
    }
    .merch-main .highlights-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: var(--hl-gap);
        overflow: visible;
        transform: none !important;
    }
    .merch-main .highlights-grid .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
    .merch-main .highlights-grid .product-swiper__nav {
        display: none;
    }
}

@media (min-width:992px) {
    /* Inside our store: two cards, no slider */
    .merch-main .experience-grid .swiper-container {
        overflow: visible;
    }
    .merch-main .experience-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
        gap: var(--ex-gap);
        overflow: visible;
        transform: none !important;
    }
    .merch-main .experience-grid .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
    .merch-main .experience-grid .product-swiper__nav {
        display: none;
    }
}

@media (max-width:1199px) {
    .merch-main .highlight-media {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width:991px) {
    .merch-main .spotlight-grid {
        position: relative;
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    .merch-main .spotlight-media {
        order: 1;
    }
    .merch-main .spotlight-content {
        order: 2;
    }
    .merch-main .sku-badge {
        margin-bottom: 12px;
        padding: 4px 10px;
        font-size: var(--font-size-xs);
        letter-spacing: 1.6px;
    }

    .merch-main .experience-grid {
        --ex-gap: 28px;
    }

    .merch-main .loc-hero {
        grid-template-columns: 1fr;
    }
    .merch-main .loc-panel {
        gap: 26px;
        padding: 34px 26px;
    }
    .merch-main .loc-visual {
        min-height: 340px;
        border-left: 0;
        border-top: 1px solid var(--merch-hairline);
    }
}

@media (max-width:767px) {
    .merch-main .hero--carousel {
        --merch-hero-nav-bottom: 176px;
        --merch-hero-body-bottom: 236px;
        min-height: 720px;
    }
    .merch-main .hero__body .lede {
        max-width: none;
    }

    .merch-main .highlights-section {
        padding: 56px 0;
    }
    .merch-main .range-slider {
        --rs-gap: 12px;
    }
    .merch-main .product-swiper__nav {
        gap: 8px;
    }
    .merch-main .highlights-grid {
        --hl-gap: 16px;
    }
    .merch-main .experience-card .media {
        height: 260px;
    }
    .merch-main .experience-grid {
        --ex-gap: 20px;
    }

    /* The store-front photo is dropped on phones; the background photo stays */
    .merch-main .loc-visual {
        display: none;
    }
}

@media (max-width:575px) {
    .merch-main .sc-headline {
        margin-bottom: 34px;
    }
    .merch-main .sc-heading-sub {
        font-size: var(--font-size-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .merch-main .hero__video {
        display: none !important;
    }
    .merch-main .highlight-card:hover {
        transform: none;
    }
}
