/* MERCH PAGE - SIMPLIFIED
   Duplicate merch-store selectors have been consolidated so hero styling is predictable.
*/

/* LEGACY MERCH PAGE */
.merch-hero {
    padding-bottom: 12px;
}

.merch-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.merch-hero__content {
    max-width: 620px;
}

    .merch-hero__content h1 {
        margin: 0 0 16px;
        font-size: clamp(2rem, 4vw, 3.6rem);
        line-height: 1.04;
        letter-spacing: -0.03em;
    }

.merch-hero__actions {
    justify-content: flex-start;
}

.merch-carousel {
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 24px;
    overflow: hidden;
    min-height: 460px;
}

.merch-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.merch-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

    .merch-carousel__slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .merch-carousel__slide img {
        width: 100%;
        height: 100%;
        min-height: 460px;
        object-fit: cover;
        display: block;
    }

.merch-carousel__controls {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 48, 31, 0.20);
    backdrop-filter: blur(6px);
}

.merch-carousel__btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

    .merch-carousel__btn.is-active {
        background: #ffffff;
    }

.merch-showcase-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.merch-showcase-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: rgba(127, 177, 141, 0.10);
}

.merch-showcase-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

    .merch-showcase-card__body h3 {
        margin: 0;
        font-size: 1.35rem;
    }

    .merch-showcase-card__body p {
        margin: 0;
        color: var(--muted);
        line-height: 1.65;
        flex: 1;
    }

    .merch-showcase-card__body .btn {
        align-self: flex-start;
    }

.merch-story {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(90deg, rgba(247, 199, 163, 0.18), rgba(127, 177, 141, 0.14));
}

.merch-story__content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.merch-story__points {
    display: grid;
    gap: 14px;
}

.merch-story__point {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

    .merch-story__point h3 {
        margin: 0 0 8px;
    }

    .merch-story__point p {
        margin: 0;
        color: var(--muted);
        line-height: 1.6;
    }

.merch-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(90deg, rgba(247, 199, 163, 0.20), rgba(127, 177, 141, 0.18));
}

.merch-cta-band__content {
    max-width: 720px;
}

    .merch-cta-band__content h2 {
        margin: 0 0 14px;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        line-height: 1.08;
    }

.merch-cta-band__actions {
    justify-content: flex-start;
}

/* MERCH IMAGE FOCAL POINTS */
.merch-focus {
    object-fit: cover;
}

.merch-focus--hoodie-model {
    object-position: 50% 34%;
}

.merch-focus--hat-model {
    object-position: 50% 28%;
}

.merch-focus--shirt-model {
    object-position: 50% 36%;
}

.merch-focus--hoodie-flat {
    object-position: 50% 34%;
    background: #efefef;
}

.merch-focus--hat-flat {
    object-position: 50% 42%;
    background: #efefef;
}

.merch-focus--shirt-flat {
    object-position: 50% 34%;
    background: #efefef;
}

/* MERCH STORE PAGE */
.merch-store-page {
    width: 100%;
    padding-top: var(--header-h);
}

.merch-store-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    min-height: clamp(575px, 39vw, 680px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 72px max(56px, calc((100vw - 1360px) / 2 + 56px)) 84px;
    overflow: visible;
    border-radius: 0;
    background: #fbf7ef !important;
    background-image: radial-gradient(circle at 74% 42%, rgba(127, 177, 141, .12), transparent 38%), linear-gradient(90deg, #fbf7ef 0%, #fbf7ef 100%) !important;
}

    .merch-store-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(251,247,239,1) 0%, rgba(251,247,239,.94) 24%, rgba(251,247,239,.38) 43%, rgba(251,247,239,.08) 60%, rgba(251,247,239,0) 78%), linear-gradient(180deg, rgba(251,247,239,0) 74%, rgba(251,247,239,.35) 90%, rgba(251,247,239,.92) 100%);
    }

.merch-store-hero__scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.merch-store-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: saturate(.98) contrast(1.02);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%), linear-gradient(180deg, black 0%, black 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%), linear-gradient(180deg, black 0%, black 84%, transparent 100%);
    mask-composite: intersect;
}

.merch-store-hero__content {
    position: relative;
    z-index: 3;
    max-width: 575px;
    
}

    .merch-store-hero__content h1 {
        max-width: 540px;
        margin: 0 0 18px;
        font-size: clamp(4.2rem, 6vw, 6.35rem);
        line-height: .91;
        letter-spacing: -.075em;
        font-weight: 950;
        white-space: nowrap;
    }

    .merch-store-hero__content .kicker,
    .merch-cart__head .kicker,
    .merch-quality-band .kicker {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        padding: 9px 15px;
        border: 1px solid rgba(18, 48, 31, .11);
        border-radius: 999px;
        background: rgba(242, 227, 160, .48);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
    }

    .merch-store-hero__content .subhead {
        max-width: 565px;
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--muted);
    }

.merch-store-perks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 820px;
    margin-top: 60px;
}

    .merch-store-perks div {
        min-height: 78px;
        min-width: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 3px 9px;
        align-items: center;
        padding: 13px 15px;
        border: 1px solid rgba(18, 48, 31, 0.10);
        border-radius: 15px;
        background: rgba(255,255,255,.78);
        box-shadow: 0 14px 34px rgba(18, 48, 31, 0.08);
        backdrop-filter: blur(8px);
    }

    .merch-store-perks span {
        grid-row: span 2;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: rgba(127, 177, 141, .18);
        border: 1px solid rgba(44, 107, 63, .14);
        color: var(--brand);
        font-size: .95rem;
        font-weight: 900;
    }

    .merch-store-perks strong {
        font-size: .76rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
    }

    .merch-store-perks small {
        font-size: .76rem;
        color: var(--muted);
        line-height: 1.35;
        overflow: visible;
        text-overflow: unset;
    }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.merch-store-toolbar {
    position: relative;
    z-index: 6;
    width: calc(100% - 32px);
    max-width: 1360px;
    display: grid;
    grid-template-columns: 1fr 310px;
    align-items: center;
    gap: 28px;
    padding: 24px 30px;
    margin: -34px auto 34px;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(18,48,31,.08);
    box-shadow: 0 24px 60px rgba(18,48,31,.08);
}

.merch-search-card {
    margin: 0;
    padding: 0;
    background: transparent;
}

    .merch-search-card label {
        display: block;
        margin: 0 0 10px;
        color: var(--text);
        font-weight: 850;
    }

.merch-search-card input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1.05rem;
    outline: none;
}

.merch-category-menu {
    position: relative;
    padding-left: 28px;
    border-left: 1px solid rgba(18,48,31,.10);
}

.merch-category-trigger {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    align-content: center;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.merch-category-label {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

.merch-category-trigger strong {
    font-size: 1rem;
    font-weight: 850;
    color: var(--text);
}

.merch-category-arrow {
    align-self: center;
    color: var(--brand);
    font-size: 1.15rem;
}

.merch-category-list {
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    width: 240px;
    z-index: 50;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(18,48,31,.08);
    box-shadow: 0 20px 50px rgba(18,48,31,.14);
}

    .merch-category-list button {
        width: 100%;
        min-height: 42px;
        padding: 0 14px;
        border: none;
        border-radius: 12px;
        background: transparent;
        text-align: left;
        font: inherit;
        font-weight: 700;
        color: var(--text);
        cursor: pointer;
    }

        .merch-category-list button:hover,
        .merch-category-list button.is-active {
            background: rgba(127,177,141,.16);
        }

.merch-filter-row--hidden {
    display: none;
}

.merch-commerce-layout {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
    align-items: start;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}

.merch-grid-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .merch-grid-head h2 {
        margin: 0 0 6px;
        font-size: clamp(2rem, 2.4vw, 2.45rem);
        line-height: 1;
        letter-spacing: -0.035em;
    }

    .merch-grid-head p {
        margin: 0;
        color: var(--muted);
    }

.merch-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.merch-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .merch-product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 42px rgba(18, 48, 31, 0.12);
    }

.merch-product-card__media {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid rgba(18, 48, 31, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 239, 0.72));
}

    .merch-product-card__media img {
        width: 100%;
        height: 245px;
        object-fit: contain;
        transition: transform 0.24s ease;
    }

.merch-product-card:hover .merch-product-card__media img {
    transform: scale(1.035);
}

.merch-product-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.merch-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    padding: 18px;
}

    .merch-product-card__body h3 {
        margin: 0 0 6px;
        font-size: 1.18rem;
        line-height: 1.2;
    }

.merch-product-card__price {
    margin: 0 0 8px;
    color: var(--brand);
    font-weight: 900;
    font-size: 1.1rem;
}

.merch-product-card__description {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.94rem;
}

.merch-product-card__options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.merch-option {
    min-width: 38px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

    .merch-option:hover,
    .merch-option.is-active {
        background: var(--brand);
        color: #fff;
        border-color: rgba(44, 107, 63, 0.35);
    }

.merch-add-btn {
    width: 100%;
    min-height: 48px;
}

.merch-cart {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(18, 48, 31, .10);
}

.merch-cart__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

    .merch-cart__head .kicker {
        margin-bottom: 8px;
    }

    .merch-cart__head h2 {
        margin: 0;
        font-size: 1.4rem;
    }

.merch-cart__clear {
    border: none;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.merch-cart__items {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.merch-cart-empty {
    padding: 18px;
    border-radius: 16px;
    background: rgba(127,177,141,.12);
    color: var(--text);
    text-align: left;
    font-weight: 850;
}

.merch-cart-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(18, 48, 31, 0.08);
    background: rgba(251, 247, 239, 0.55);
}

    .merch-cart-item img {
        width: 76px;
        height: 76px;
        object-fit: contain;
        border-radius: 12px;
        background: #fff;
    }

.merch-cart-item__top,
.merch-cart-item__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

    .merch-cart-item__top strong {
        line-height: 1.2;
    }

    .merch-cart-item__top button {
        border: none;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 1.15rem;
        line-height: 1;
    }

.merch-cart-item p {
    margin: 5px 0 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.merch-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(18, 48, 31, 0.08);
}

    .merch-quantity-control button {
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 999px;
        background: rgba(127, 177, 141, 0.14);
        color: var(--brand);
        font-weight: 900;
        cursor: pointer;
    }

    .merch-quantity-control span {
        min-width: 18px;
        text-align: center;
        font-weight: 850;
    }

.merch-cart__summary {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(18, 48, 31, 0.10);
}

    .merch-cart__summary div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: var(--muted);
    }

    .merch-cart__summary strong {
        color: var(--text);
    }

    .merch-cart__summary .merch-cart__total {
        margin-top: 6px;
        padding-top: 12px;
        border-top: 1px solid rgba(18, 48, 31, 0.10);
        color: var(--text);
        font-size: 1.1rem;
    }

        .merch-cart__summary .merch-cart__total strong {
            color: var(--brand);
            font-size: 1.35rem;
        }

.merch-checkout-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
}

    .merch-checkout-btn:disabled {
        opacity: 0.58;
        cursor: not-allowed;
        transform: none;
    }

.merch-cart__note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

    .merch-cart__note.is-error {
        color: #9f1d1d;
        font-weight: 800;
    }

.merch-quality-band {
    margin-top: 30px;
    text-align: center;
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(127, 177, 141, 0.12));
}

    .merch-quality-band h2 {
        margin: 0 auto 24px;
        font-size: clamp(1.8rem, 3vw, 2.8rem);
        letter-spacing: -0.04em;
    }

.merch-quality-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    text-align: center;
}

    .merch-quality-grid div {
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.56);
        border: 1px solid rgba(18, 48, 31, 0.08);
    }

    .merch-quality-grid strong {
        display: block;
        margin-bottom: 8px;
    }

    .merch-quality-grid p {
        margin: 0;
        color: var(--muted);
        line-height: 1.5;
    }

/* RESPONSIVE */
@media (max-width: 1180px) {
    .merch-commerce-layout {
        grid-template-columns: 1fr;
    }

    .merch-cart {
        position: relative;
        top: auto;
    }
}

@media (max-width: 980px) {
    .merch-hero__grid,
    .merch-story,
    .merch-commerce-layout {
        grid-template-columns: 1fr;
    }

    .merch-hero__actions,
    .merch-cta-band__actions {
        justify-content: flex-start;
    }

    .merch-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .merch-cart {
        position: static;
    }

    .merch-quality-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .merch-store-page {
        width: min(100% - 28px, 720px);
        padding-top: calc(var(--header-h) + 20px);
    }

    .merch-store-hero {
        min-height: auto;
        padding: 44px 24px 330px;
        overflow: hidden;
        border-radius: 24px;
        margin-bottom: 18px;
    }

        .merch-store-hero::before {
            background: linear-gradient(180deg, rgba(251,247,239,.98) 0%, rgba(251,247,239,.9) 44%, rgba(251,247,239,.28) 72%, rgba(251,247,239,1) 100%);
        }

    .merch-store-hero__scene {
        width: 100%;
        height: 100%;
    }

    .merch-store-hero__bg {
        object-position: center bottom;
        -webkit-mask-image: linear-gradient(180deg, black 0%, black 78%, transparent 100%);
        mask-image: linear-gradient(180deg, black 0%, black 78%, transparent 100%);
    }

    .merch-store-hero__content h1 {
        font-size: clamp(3.3rem, 15vw, 5rem);
        white-space: nowrap;
    }

    .merch-store-grid,
    .merch-quality-grid {
        grid-template-columns: 1fr;
    }

    .merch-store-toolbar {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        margin: -24px auto 30px;
    }

    .merch-sort-wrap {
        justify-content: space-between;
    }

    .merch-sort {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 640px) {
    .merch-hero__actions,
    .merch-cta-band__actions {
        justify-content: center;
    }

    .merch-carousel,
    .merch-carousel__track,
    .merch-carousel__slide img {
        min-height: 280px;
    }

    .merch-showcase-card__body .btn {
        align-self: stretch;
    }

    .merch-cta-band {
        align-items: stretch;
    }

    .merch-store-page {
        width: min(1120px, calc(100% - 24px));
        padding-top: calc(var(--header-h) + 22px);
    }

    .merch-store-hero {
        padding: 34px 20px 330px;
    }

    .merch-store-hero__content h1 {
        font-size: clamp(3rem, 17vw, 4.5rem);
    }
}
