/*========== 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. */

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;
}
.merch-main .sc-heading-sub {
    font-size: var(--font-size-md);
    letter-spacing: 1.2px;
    color: var(--merch-text-muted);
}

/* BUTTONS (theme .button + gold outline) */
.merch-main .button.gold {
    border-color: var(--color-gold);
}
.merch-main .button.gold.ghost {
    color: var(--color-gold);
}
.merch-main .button.gold.ghost:hover {
    color: #fff;
}


/*========== HERO ==========*/
.merch-main .hero--single {
    position: relative;
    display: grid;
    align-items: end;
    min-height: max(560px, 92svh);
    padding: 120px 0 56px;
    overflow: hidden;
}
@supports not (height: 100svh) {
    .merch-main .hero--single { min-height: max(560px, 86vh); }
}

.merch-main .hero__media {
    position: absolute;
    inset: 0;
}
.merch-main .hero__media > img {
    z-index: 0;
    object-position: 26% 42%;
}
.merch-main .hero__media > video {
    z-index: 1;
    object-position: center 45%;
}
.merch-main .hero--single.is-paused .hero__video {
    display: none;
}

.merch-main .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(var(--color-gray-rgb), .05) 0%,
        rgba(var(--color-gray-rgb), .15) 30%,
        rgba(var(--color-gray-rgb), .55) 50%,
        rgba(var(--color-gray-rgb), .72) 65%,
        rgba(var(--color-gray-rgb), .82) 100%);
}

.merch-main .hero--single .container {
    position: relative;
    z-index: 3;
}
.merch-main .container.hero-align {
    max-width: none;
}

.merch-main .hero__body {
    display: grid;
    gap: var(--spacing-sm);
    max-width: 620px;
}
.merch-main .hero__body h1 {
    line-height: 1.02;
    text-wrap: balance;
}
.merch-main .hero__body .lede {
    font-size: 17px;
    line-height: 1.5;
    text-wrap: pretty;
}

.merch-main .hero__actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}
.merch-main .hero__actions .button {
    width: 100%;
}
.merch-main .hero__actions--repeat {
    margin-top: var(--spacing-lg);
}

/* Film play/pause: round icon button on phones, labelled button on desktop */
.merch-main .hero__play {
    position: absolute;
    z-index: 4;
    top: calc(var(--header-height) + 16px);
    right: var(--spacing-container);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(var(--color-gray-rgb), .45);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
}
.merch-main .hero__play-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.merch-main .hero__play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 3px;
}
.merch-main .hero__play[aria-pressed="true"] .hero__play-icon {
    box-sizing: border-box;
    width: 10px;
    height: 12px;
    margin-left: 0;
    border: 0;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

/* Address and opening times strip */
.merch-main .hero__usps {
    display: none;
}
.merch-main .hero__usps li {
    display: grid;
    gap: 4px;
}
.merch-main .hero__usps strong {
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    line-height: 1.3;
    color: #fff;
}
.merch-main .hero__usps span {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .78);
}


/*========== INSIDE OUR STORE ==========*/
.merch-main .store-experience {
    padding: var(--spacing-lg) 0;
}
.merch-main .experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.merch-main .experience-card {
    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,
.merch-main .highlight-body .desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--merch-text-muted);
}


/*========== 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-grid__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.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: 4 / 5;
}
.merch-main .highlight-body {
    flex-grow: 1;
    padding: var(--spacing-sm) 18px;
}
.merch-main .highlight-body h3 {
    margin-bottom: 8px;
}

.merch-main .highlights-section > section + section {
    margin-top: var(--spacing-xl);
}

/* Featured collaborations carousel (theme Swiper) */
.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: 26px;
    font-size: var(--font-size-md);
    line-height: 1.75;
}
.merch-main .sku-notes p {
    margin-bottom: 12px;
    font-size: var(--font-size-md);
    line-height: 1.75;
    color: var(--merch-text-muted);
}
.merch-main .sku-notes p:last-child {
    margin-bottom: 0;
}

.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;
    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);
    cursor: pointer;
}
.merch-main .product-swiper__nav [class*="swiper-button-"]:hover {
    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-button-disabled:hover {
    color: var(--color-gold);
    background: rgba(var(--color-blue-dark-rgb), 0.92);
}
.merch-main .product-swiper__nav .swiper-pagination {
    position: static;
    width: auto;
}
/* 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;
    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;
}

/* Product tiles */
.merch-main .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.merch-main .product-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--merch-surface);
    border: 1px solid var(--merch-hairline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--duration) var(--timing-function), transform var(--duration) var(--timing-function);
}
.merch-main .product-tile .link-overlay {
    z-index: 3;
}
.merch-main .product-tile:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
}
.merch-main .tile-media {
    aspect-ratio: 1 / 1;
}
.merch-main .tile-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    font-family: var(--font-heading);
    font-size: var(--font-size-xs);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-blue-dark);
    background: var(--color-gold);
}
.merch-main .tile-body {
    flex-grow: 1;
    padding: 10px 14px 17px;
}
.merch-main .tile-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    letter-spacing: 0.6px;
    line-height: 1.3;
    text-transform: uppercase;
}


/*========== 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-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-xs);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--merch-text-muted);
}
.merch-main .loc-address {
    font-size: 17px;
    line-height: 1.7;
}
.merch-main .loc-address strong {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
}

.merch-main .loc-actions {
    display: grid;
    gap: 12px;
    margin-top: var(--spacing-sm);
}
.merch-main .loc-actions .button {
    height: 52px;
    padding: 0 16px;
    font-size: var(--font-size-md);
}
.merch-main .call-link {
    display: inline-flex;
}
.merch-main .call-text {
    display: none;
}
.merch-main .loc-contact {
    margin-top: 12px;
    font-size: 15px;
}
.merch-main .loc-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-blue-bright);
    text-decoration: underline;
}

.merch-main .loc-hours li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(var(--color-gold-rgb), 0.16);
}
.merch-main .loc-hours li span {
    font-family: var(--font-heading);
    font-size: 15px;
    letter-spacing: 0.8px;
}
.merch-main .loc-hours li span:last-child {
    white-space: nowrap;
    color: var(--color-gold);
}

.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 .loc-address strong,
html[lang="zh-hans"] .merch-main .loc-address strong {
    line-height: 1.35;
}
html[lang="ja"] .merch-main .tile-name,
html[lang="zh-hans"] .merch-main .tile-name,
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__usps strong,
html[lang="ja"] .merch-main .loc-address strong {
    word-break: auto-phrase;
}


/*========== MEDIA QUERIES ==========*/
@media (min-width:576px) {
    .merch-main .loc-actions {
        grid-auto-flow: column;
        justify-content: start;
    }
}

@media (min-width:768px) {
    .merch-main .hero--single {
        padding-bottom: 60px;
    }
    .merch-main .hero__body .lede {
        font-size: var(--font-size-lg);
        max-width: 32em;
    }
    .merch-main .hero__actions {
        grid-auto-flow: column;
        justify-content: start;
        align-items: center;
    }
    .merch-main .hero__actions .button {
        width: auto;
        min-width: 260px;
    }
    .merch-main .hero__actions--repeat {
        justify-content: center;
    }
    .merch-main .hero__usps {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        gap: 14px 56px;
        margin: 48px 0 0;
        padding: 28px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .22);
    }
    .merch-main .hero__usps strong {
        font-size: var(--font-size-md);
    }
}

@media (min-width:992px) {
    .merch-main .hero__media > img {
        object-position: center 45%;
    }
    .merch-main .hero__scrim {
        background:
            linear-gradient(180deg,
                rgba(var(--color-gray-rgb), 0) calc(100% - 260px),
                rgba(var(--color-gray-rgb), .60) calc(100% - 150px),
                rgba(var(--color-gray-rgb), .70) 100%),
            linear-gradient(90deg,
                rgba(var(--color-gray-rgb), .72) 0,
                rgba(var(--color-gray-rgb), .62) 680px,
                rgba(var(--color-gray-rgb), 0) 1000px);
    }

    .merch-main .hero__play {
        top: auto;
        right: var(--spacing-container);
        bottom: 34px;
        gap: var(--spacing-2xs);
        width: auto;
        height: auto;
        min-height: 44px;
        padding: 0 18px;
        border-radius: 0;
        border-color: var(--color-gold);
        background: rgba(21, 32, 64, .72);
        font-family: var(--font-heading);
        font-size: var(--font-size-md);
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    .merch-main .hero__play-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
    .merch-main .hero__play-icon {
        margin-left: 0;
        color: var(--color-gold);
    }

    .merch-main .highlight-media {
        aspect-ratio: 3 / 4;
    }

    .merch-main .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    .merch-main .tile-name {
        font-size: var(--font-size-md);
    }

    .merch-main .call-link {
        display: none;
    }
    .merch-main .call-text {
        display: inline-flex;
    }
}

@media (min-width:992px) and (hover:hover) {
    .merch-main .hero__play {
        opacity: 0;
        transition: opacity .2s ease;
    }
    .merch-main .hero--single:hover .hero__play,
    .merch-main .hero__play:focus-visible {
        opacity: 1;
    }
}

@media (max-width:991px) {
    .merch-main .hero--single {
        padding-top: calc(var(--header-height) + 76px);
    }

    .merch-main .experience-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .merch-main .highlights-grid__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .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 {
        position: absolute;
        z-index: 3;
        top: 12px;
        left: 12px;
        margin: 0;
        padding: 4px 10px;
        border: 0;
        font-size: var(--font-size-xs);
        letter-spacing: 1.6px;
        color: var(--color-blue-dark);
        background: var(--color-gold);
    }
    .merch-main .sku-description {
        margin-bottom: 0;
    }
    .merch-main .sku-notes {
        display: none;
    }

    .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 .experience-card .media {
        height: 260px;
    }
    .merch-main .highlights-section {
        padding: 56px 0;
    }
    .merch-main .loc-actions .button {
        width: 100%;
    }
}

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

    /* Collection cards become a swipeable row */
    .merch-main .highlights-grid__track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .merch-main .highlights-grid__track::-webkit-scrollbar {
        display: none;
    }
    .merch-main .highlights-grid__cell {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }
}

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