/* Merch page — builds on styles.css tokens */
.no-scroll { overflow: hidden; }

.mhero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); background: radial-gradient(70% 90% at 100% 0%, rgba(226,35,26,.22), transparent 60%), var(--black); }
.mhero .eyebrow { color: var(--red); margin-bottom: 1.2rem; }
.mhero__lead { margin-top: 1.4rem; max-width: 32rem; color: var(--muted-on-dark); font-size: 1.1rem; }

.thanks { background: #e9f6ec; color: #134d22; border-bottom: 1px solid #b8dcc1; }
.thanks .wrap { padding-top: 1rem; padding-bottom: 1rem; }

.shop { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 9vw, 7rem); }
.shop__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.shop__empty { color: var(--text-muted); font-size: 1.1rem; }

/* One product = a full-width two-column card; more products fall into a two-up grid */
.item { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 50px -32px rgba(0,0,0,.45); }
.shop__grid:has(.item + .item) { grid-template-columns: repeat(2, 1fr); }
.shop__grid:has(.item + .item) .item { grid-template-columns: 1fr; }
.item__media { position: relative; background: var(--black); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.item__media img { width: 100%; height: 100%; object-fit: contain; }
.item__badge { position: absolute; left: 1rem; top: 1rem; padding: .35rem .65rem; background: var(--black); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.item__body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.item__name { font-weight: 900; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.02; }
.item__price { font-weight: 800; font-size: 1.4rem; color: var(--red); }
.item__desc { color: var(--text-muted); }
.item__desc p + p { margin-top: .6rem; }
.item__form { display: grid; gap: 1.3rem; margin-top: .4rem; }

.opt { border: 0; margin: 0; padding: 0; }
.opt legend { font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.opt__picked { color: var(--red); letter-spacing: .06em; }
.opt__choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 800; transition: border-color .15s, background-color .15s, color .15s; }
.pill:hover span { border-color: var(--text); }
.pill input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pill.is-out span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

.item__buy { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; }
.item__buy .btn { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 46px; border: 0; background: transparent; font: inherit; font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: var(--paper); }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 1rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.item__msg { min-height: 1.4em; font-weight: 600; color: #1d6b32; }
.item__msg.is-error { color: #b3140d; }

.item--skeleton .item__media { background: var(--paper-2); }
.item--skeleton .item__body span { display: block; height: 22px; border-radius: 4px; background: var(--paper-2); }
.item--skeleton .item__body span:first-child { height: 40px; width: 70%; }

/* Cart button in the nav */
.cart-btn { position: relative; margin-left: 1rem; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); color: #fff; cursor: pointer; }
.cart-btn:hover { border-color: var(--red); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 1024px) { .cart-btn { margin-left: auto; } .nav__toggle { margin-left: .6rem; } }

/* Cart drawer */
.cart { position: fixed; inset: 0; z-index: 90; }
.cart__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s var(--ease); }
.cart__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); color: var(--text); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,.3); }
.cart.is-open .cart__scrim { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: 1.3rem; }
.cart__close { width: 44px; height: 44px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text); }
.cart__lines { flex: 1; overflow-y: auto; padding: .4rem 1.4rem; }
.cart__empty { padding: 2rem 0; color: var(--text-muted); }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line.is-busy { opacity: .5; pointer-events: none; }
.line img, .line__ph { width: 80px; height: 80px; object-fit: contain; background: var(--black); border-radius: 4px; display: block; }
.line__name { font-weight: 800; line-height: 1.25; }
.line__opts { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }
.line__qty { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.line__qty button { min-width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; font: inherit; }
.line__qty span { min-width: 1.6rem; text-align: center; font-weight: 800; }
.line__qty .line__remove { margin-left: .4rem; border: 0; background: none; text-decoration: underline; color: var(--text-muted); font-size: .85rem; }
.line__price { font-weight: 800; }
.cart__foot { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; background: #fff; }
.cart__sub { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart__note { font-size: .85rem; color: var(--text-muted); }
.cart__error { color: #b3140d; font-weight: 600; font-size: .9rem; }
.cart__error:empty { display: none; }
.cart__checkout { width: 100%; }

@media (max-width: 760px) {
  .item, .shop__grid:has(.item + .item) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cart__scrim, .cart__panel { transition: none; }
}