/* Merch shop. Builds on styles.css. */
.header-right { display: flex; align-items: center; gap: 6px; order: 2; }
@media (min-width: 861px) {
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-end; order: 1; }
  .header-right { order: 3; }
}
.site-nav a[aria-current="page"] { color: var(--mint); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 .92rem var(--sans); cursor: pointer; }
.cart-btn:hover { border-color: var(--mint); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
@media (max-width: 860px) { .cart-btn span:not(.cart-count) { display: none; } .cart-btn { padding: 0 10px; } }

.shop-hero { padding: clamp(40px, 6vw, 70px) 0 0; background: radial-gradient(ellipse 60% 90% at 80% 0%, rgba(108, 189, 161, .14), transparent 70%); }
.shop-hero h1 { margin-bottom: .3em; }
.shop-section { padding-top: 36px; }

.order-banner { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.order-banner.ok { background: rgba(108, 189, 161, .14); border: 1px solid var(--mint); color: var(--mint-strong); }
.order-banner.info { background: var(--panel); border: 1px solid var(--line); }
.order-banner[hidden], .sample-note[hidden] { display: none; }
.sample-note { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; background: rgba(244, 211, 94, .1); border: 1px solid rgba(244, 211, 94, .45); color: #f6e3a1; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-img { position: relative; background: #222529; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sample-tag { position: absolute; top: 12px; left: 12px; background: #f4d35e; color: #1b1b1b; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-top h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; margin: 0; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--mint); margin: 0; }
.product-desc { font-size: .92rem; margin: 8px 0 14px; flex: 1; }
.sizes { border: 0; padding: 0; margin: 0 0 14px; }
.sizes legend { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; padding: 0; }
.size-list { display: flex; flex-wrap: wrap; gap: 6px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 700; font-size: .9rem; }
.size input:hover + span { border-color: var(--mint); }
.size input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.size input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.product-actions { display: flex; gap: 10px; }
.product-actions .btn { flex: 1; }
.qty select { height: 46px; min-width: 70px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 1rem var(--sans); }
.product-msg { margin: 10px 0 0; font-size: .9rem; min-height: 1.2em; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* Cart drawer */
.cart-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 60; }
.cart-scrim[hidden] { display: none; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
.cart.open { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .cart { transition: none; } }
body.cart-open { overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; margin: 0; }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px 28px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { border-radius: 10px; border: 1px solid var(--line); }
.cl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.cl-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1rem; cursor: pointer; }
.cl-qty button:hover { border-color: var(--mint); }
.cl-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-price { font-weight: 700; }
.cl-remove { border: 0; background: none; color: var(--muted); font: .82rem var(--sans); text-decoration: underline; cursor: pointer; padding: 0; }
.cl-remove:hover { color: var(--danger); }
.cart-empty { padding: 20px 0; }
.cart-empty[hidden], .cart-checkout[hidden], .pickup-form[hidden], .checkout-btn[hidden], .cart-note[hidden] { display: none; }
.delivery { border: 0; padding: 0; margin: 18px 0 8px; }
.delivery legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.delivery-opt:has(input:checked) { border-color: var(--mint); }
.delivery-opt input { accent-color: var(--mint); margin-top: 3px; }
.delivery-opt span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; flex: 1; }
.delivery-opt em { font-style: normal; font-weight: 700; color: var(--mint); }
.delivery-opt small { grid-column: 1 / -1; font-size: .8rem; }
.totals { margin: 16px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals dd { margin: 0; color: var(--text); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.1rem; font-weight: 800; color: var(--text); }
.cart-note { margin: 8px 0 0; text-align: center; }
.cart-msg:empty, .pickup-msg:empty { display: none; }
.pickup-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pickup-form h3 { margin-bottom: 4px; }
.pickup-form .small { margin-bottom: 12px; }
.small { font-size: .85rem; }
