/* =========================================================
   CARDUI — merch subpage
   ========================================================= */
@media (max-width: 1100px) { .page-merch .header { height: 76px; padding-top: 0; } }
.page-merch .header__logo, .page-merch .header__logo img { height: 48px; }

/* intro */
.merch-hero { position: relative; background: var(--aub); color: var(--linen); padding: calc(120px + clamp(70px, 9vw, 140px)) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.merch-hero__inner { position: relative; z-index: 1; }
.merch-hero .display { font-size: clamp(54px, 8.4vw, 132px); line-height: .98; margin: 0 0 34px; }
.merch-hero .lead { max-width: 520px; }
.merch-hero__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(237,224,212,.6); }
.merch-hero__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.merch-hero__symbol { position: absolute; right: -4%; top: 50%; width: min(46vw, 560px); opacity: .07; transform: translateY(-46%) rotate(-8deg); pointer-events: none; animation: merchFloat 14s ease-in-out infinite; }
@keyframes merchFloat { 50% { transform: translateY(-50%) rotate(-3deg); } }

/* grid */
.merch-shop { background: var(--linen); padding-top: clamp(70px, 8vw, 120px); }
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 36px); }
.product { display: flex; flex-direction: column; }
.product--wide { grid-column: span 2; }
.product__stage { position: relative; background: none; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; border-radius: 3px; }
.product--wide .product__stage { aspect-ratio: 2.09 / 1; }
.product--wide { display: grid; grid-template-rows: auto; }

.product__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: transform 1.4s var(--ease-out), opacity .35s var(--ease); }
.product:hover .product__img { transform: scale(1.05); }
.product__img.is-shown { opacity: 1; }

.product__info { padding: 22px 2px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product__name { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; margin: 0; color: var(--aub); }
.product__name em { font-style: italic; font-weight: 600; color: var(--walnut); }
.product__price { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--aub); white-space: nowrap; }
.product__desc { margin: 0; font-size: 15px; line-height: 1.65; color: #5a4853; max-width: 440px; }
.product__opts { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

.swatches { display: flex; align-items: center; gap: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1px solid rgba(58,43,54,.25); cursor: pointer; padding: 0; position: relative; transition: transform .3s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--aub); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease); }
.swatch.is-active::after { opacity: 1; transform: none; }
.swatch:hover { transform: scale(1.1); }
.swatch-label { margin-left: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--walnut); }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { font: inherit; font-size: 12px; letter-spacing: .08em; padding: 8px 13px; min-width: 42px; background: transparent; border: 1px solid rgba(58,43,54,.25); color: var(--aub); cursor: pointer; border-radius: 2px; transition: background .3s, color .3s, border-color .3s; }
.size:hover { border-color: var(--aub); }
.size.is-active { background: var(--aub); color: var(--linen); border-color: var(--aub); }

.product__cta { margin-top: auto; align-self: flex-start; }
.product__info .product__opts + .product__cta, .product__info .product__desc + .product__cta { margin-top: 10px; }
.product__cta.is-done { background: var(--aub); color: var(--linen); }
.product__cta[disabled] { cursor: default; transform: none; }

.merch-note { text-align: center; margin: clamp(56px, 6vw, 90px) auto 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut); max-width: 640px; line-height: 1.8; }

/* closing */
.merch-cta { background: var(--aub-d); color: var(--linen); text-align: center; padding: clamp(80px, 10vw, 140px) 0; }
.merch-cta__symbol { width: 56px; margin: 0 auto 28px; }
.merch-cta .display { font-size: clamp(40px, 5.6vw, 80px); margin: 0 0 40px; }
.merch-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* v2 — one centred column, colour arrows beside the photo */
.merch-grid { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; gap: clamp(90px, 10vw, 150px); }
.product, .product--wide { display: flex; flex-direction: column; align-items: center; text-align: center; grid-column: auto; }
.product__stage, .product--wide .product__stage { width: 100%; aspect-ratio: auto; height: min(600px, 66vh); overflow: visible; }
.product__img { padding: 0 72px; box-sizing: border-box; }
.product__info { align-items: center; max-width: 560px; padding-top: 30px; gap: 14px; }
.product__row { flex-direction: column; align-items: center; gap: 8px; }
.product__desc { margin: 0 auto; }
.product__opts { align-items: center; }
.swatches, .sizes { justify-content: center; }
.product__cta, .product__info .product__opts + .product__cta, .product__info .product__desc + .product__cta { align-self: center; margin-top: 12px; }
/* smaller, evenly proportioned products */
.merch-grid { max-width: 720px; gap: clamp(80px, 8vw, 120px); }
.product__stage, .product--wide .product__stage { height: 400px; }
.product__img { padding: 0 84px; }
.product[data-name="Unfolds Tee"] .product__img { padding: 20px 70px; }
.product[data-name="Bucket Hat"] .product__img { padding: 30px 84px; }
.product[data-name="Steel Bottle"] .product__img { padding: 0 84px; }
.product[data-name="Pool Slides"] .product__img { padding: 0 84px; }
.product[data-name="Beach Towel"] .product__img { padding: 24px 110px; }
.product__arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(58,43,54,.3); background: rgba(237,224,212,.6); color: var(--aub); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.product__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product__arrow--prev { left: 0; }
.product__arrow--next { right: 0; }
.product__arrow:hover { background: var(--aub); color: var(--linen); border-color: var(--aub); }
.product__arrow--prev:hover { transform: translateX(-3px); }
.product__arrow--next:hover { transform: translateX(3px); }

@media (max-width: 1000px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .product--wide { grid-column: 1 / -1; }
  .product--wide .product__stage { aspect-ratio: 3 / 2; flex: none; }
}
@media (max-width: 640px) {
  .page-merch .header__logo, .page-merch .header__logo img { height: 38px; }
  .merch-grid { grid-template-columns: 1fr; }
  .merch-hero__symbol { width: 90vw; right: -20%; }
}
