/* ==========================================================================
   Jazz Day AZ — shop styles
   Standalone CSS (the site's Tailwind build is purged, so shop pages carry
   their own components). Follows the same palette and dark-mode switch:
   the <html> element gets the class "dark".
   ========================================================================== */

:root {
  --s-page: #ffffff;
  --s-surface: #ffffff;
  --s-muted: #f8fafc;
  --s-muted-2: #f1f5f9;
  --s-border: #e2e8f0;
  --s-border-strong: #cbd5e1;
  --s-text: #0f172a;
  --s-dim: #64748b;
  --s-brand: #06669e;
  --s-brand-dark: #075482;
  --s-brand-soft: #eff8fd;
  --s-gold: #f2a516;
  --s-ink: #060e19;
  --s-green: #0f9d58;
  --s-red: #dc2626;
  --s-radius: 16px;
  --s-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --s-shadow-lg: 0 18px 46px -18px rgba(15, 23, 42, .32);
}

.dark {
  --s-page: #060e19;
  --s-surface: #0f1b2d;
  --s-muted: #0c1626;
  --s-muted-2: #132135;
  --s-border: rgba(255, 255, 255, .10);
  --s-border-strong: rgba(255, 255, 255, .18);
  --s-text: #e8eef6;
  --s-dim: #94a3b8;
  --s-brand: #38a9e4;
  --s-brand-dark: #2f93c9;
  --s-brand-soft: rgba(56, 169, 228, .12);
  --s-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -16px rgba(0, 0, 0, .7);
  --s-shadow-lg: 0 24px 50px -22px rgba(0, 0, 0, .8);
}

/* ---------- shell ---------- */

.shop { color: var(--s-text); }
.shop-wrap { margin: 0 auto; width: 100%; max-width: 80rem; padding: 0 1rem; }
.shop-section { padding: 2.5rem 0 4.5rem; }

.shop-hero {
  background: linear-gradient(135deg, var(--s-brand-dark) 0%, var(--s-ink) 100%);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.shop-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(242, 165, 22, .28), transparent 65%);
  pointer-events: none;
}
.shop-hero .eyebrow-line {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--s-gold);
}
.shop-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700; line-height: 1.1; margin: .6rem 0 0; color: #fff;
}
.shop-hero p { margin: .85rem 0 0; max-width: 46rem; color: #cbd5e1; font-size: 1.05rem; }
.shop-hero .hero-meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: #e2e8f0; }
.shop-hero .hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.shop-hero .hero-meta svg { color: var(--s-gold); }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--s-dim); padding: 1rem 0 0; }
.crumbs a { color: var(--s-dim); text-decoration: none; }
.crumbs a:hover { color: var(--s-brand); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--s-text); font-weight: 600; }

/* ---------- buttons ---------- */

.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1.2 inherit; padding: .75rem 1.4rem;
  text-decoration: none; transition: transform .15s, background-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.s-btn:active { transform: translateY(1px); }
.s-btn-gold { background: var(--s-gold); color: #0b1624; box-shadow: 0 10px 22px -12px rgba(242, 165, 22, .9); }
.s-btn-gold:hover { background: #e39a0c; }
.s-btn-brand { background: var(--s-brand); color: #fff; }
.s-btn-brand:hover { background: var(--s-brand-dark); }
.s-btn-dark { background: var(--s-ink); color: #fff; }
.dark .s-btn-dark { background: #1e3350; }
.s-btn-ghost { background: transparent; color: var(--s-text); border: 1.5px solid var(--s-border-strong); }
.s-btn-ghost:hover { border-color: var(--s-brand); color: var(--s-brand); }
.s-btn-block { width: 100%; }
.s-btn-lg { padding: .95rem 1.8rem; font-size: 1rem; }
.s-btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.s-btn[disabled], .s-btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- header cart button (used on every page) ---------- */

/* The Shop menu, the cart button and the sign-in button make the header row
   wider than it used to be. Rather than let it overflow the page (which gives
   the whole site a horizontal scrollbar), the nav and buttons tighten up at the
   widths where space is short, and the "Sponsor" shortcut — which is also the
   Sponsors item in the nav — only appears once there is room for it. */

/* Narrow desktops (1280–1450): tightest spacing */
@media (min-width: 1280px) and (max-width: 1450px) {
  #site-header .nav-link { padding-left: .3rem; padding-right: .3rem; font-size: 14px; }
  #site-header .icon-btn { width: 2.25rem; height: 2.25rem; }
  #site-header .btn { padding-left: .7rem; padding-right: .7rem; font-size: 14px; }
}

/* Mid-size desktops: moderate tightening */
@media (min-width: 1451px) and (max-width: 1999px) {
  #site-header .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: 14.5px; }
  #site-header .icon-btn { width: 2.4rem; height: 2.4rem; }
  #site-header .btn { padding-left: .9rem; padding-right: .9rem; font-size: 14.5px; }
}

/* The Sponsor shortcut needs ~120px that smaller screens do not have */
@media (max-width: 1680px) {
  #site-header .btn-outline { display: none !important; }
}

.cart-btn { position: relative; }

/* Sign-in / dashboard button next to the cart */
.login-btn.is-signed-in { color: var(--s-brand); }
.login-btn.is-signed-in::after {
  content: ""; position: absolute; right: 7px; bottom: 7px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--s-green); box-shadow: 0 0 0 2px #fff;
}
.dark .login-btn.is-signed-in::after { box-shadow: 0 0 0 2px #060e19; }
.login-btn { position: relative; }
.cart-badge {
  position: absolute; top: -3px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--s-gold); color: #0b1624;
  font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.dark .cart-badge { box-shadow: 0 0 0 2px #060e19; }
.cart-badge[hidden] { display: none; }

/* ---------- layout: filters + grid ---------- */

.shop-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 265px 1fr; } }

.s-panel {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
}
.s-panel + .s-panel { margin-top: 1.25rem; }
.s-panel h3 {
  margin: 0; padding: 1rem 1.15rem; border-bottom: 1px solid var(--s-border);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-brand);
}
.s-panel-body { padding: 1.15rem; }

.filter-list { list-style: none; margin: 0; padding: .5rem; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .6rem .75rem; border-radius: 10px; text-decoration: none;
  color: var(--s-text); font-size: .94rem; transition: background-color .15s, color .15s;
}
.filter-list a:hover { background: var(--s-muted-2); }
.filter-list a.is-active { background: var(--s-brand); color: #fff; font-weight: 600; }
.filter-list a.is-active .count { background: rgba(255, 255, 255, .25); color: #fff; }
.filter-list .count {
  background: var(--s-muted-2); color: var(--s-dim);
  border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .1rem .5rem;
}

.s-field { display: block; margin-bottom: .9rem; }
.s-field:last-child { margin-bottom: 0; }
.s-field > span, .s-label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--s-dim);
  margin-bottom: .35rem; letter-spacing: .02em;
}
.s-input, .s-select, .s-textarea {
  width: 100%; border: 1.5px solid var(--s-border); border-radius: 10px;
  background: var(--s-page); color: var(--s-text);
  padding: .65rem .8rem; font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.s-textarea { min-height: 96px; resize: vertical; }
.s-input:focus, .s-select:focus, .s-textarea:focus {
  outline: 0; border-color: var(--s-brand); box-shadow: 0 0 0 3px var(--s-brand-soft);
}
.s-input::placeholder, .s-textarea::placeholder { color: #94a3b8; }
.s-row { display: grid; gap: .9rem; }
@media (min-width: 640px) { .s-row-2 { grid-template-columns: 1fr 1fr; } .s-row-3 { grid-template-columns: repeat(3, 1fr); } }
.s-help { font-size: .8rem; color: var(--s-dim); margin: .35rem 0 0; }
.s-error { font-size: .82rem; color: var(--s-red); margin: .3rem 0 0; }
.s-input.has-error { border-color: var(--s-red); }

/* ---------- toolbar ---------- */

.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; justify-content: space-between;
  background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius);
  padding: .85rem 1.1rem; margin-bottom: 1.5rem; box-shadow: var(--s-shadow);
}
.shop-toolbar .result-count { font-size: .92rem; color: var(--s-dim); }
.shop-toolbar .result-count strong { color: var(--s-text); }
.shop-toolbar form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.shop-toolbar .s-select { width: auto; min-width: 190px; padding-block: .5rem; }

/* ---------- product grid ---------- */

.product-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.product-card {
  position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--s-surface); border: 1px solid var(--s-border);
  border-radius: var(--s-radius); box-shadow: var(--s-shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--s-shadow-lg); border-color: var(--s-border-strong); }

.p-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--s-muted-2); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .p-media img { transform: scale(1.06); }

.p-badge {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: var(--s-gold); color: #0b1624;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.p-badge.is-sale { background: var(--s-red); color: #fff; }
.p-badge.is-out { background: #475569; color: #fff; }

.p-quick {
  position: absolute; inset: auto .7rem .7rem; z-index: 2;
  display: flex; gap: .5rem; opacity: 0; transform: translateY(8px);
  pointer-events: none; /* invisible buttons must not catch clicks */
  transition: opacity .2s, transform .2s;
}
.product-card:hover .p-quick, .product-card:focus-within .p-quick {
  opacity: 1; transform: none; pointer-events: auto;
}
@media (hover: none) { .p-quick { opacity: 1; transform: none; pointer-events: auto; } }

.p-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-brand); }
.p-name { margin: .35rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.p-name a { color: inherit; text-decoration: none; }
.p-name a:hover { color: var(--s-brand); }
.p-desc {
  margin: .4rem 0 0; font-size: .86rem; color: var(--s-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

.price { font-size: 1.15rem; font-weight: 800; color: var(--s-text); letter-spacing: -.01em; }
.price-old { margin-left: .45rem; font-size: .9rem; font-weight: 500; color: var(--s-dim); text-decoration: line-through; }
.stock-line { font-size: .78rem; font-weight: 600; margin-top: .3rem; }
.stock-in { color: var(--s-green); }
.stock-low { color: #d97706; }
.stock-out { color: var(--s-red); }

.icon-btn-round {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--s-brand); color: #fff; box-shadow: var(--s-shadow);
  transition: background-color .2s, transform .15s;
}
.icon-btn-round:hover { background: var(--s-brand-dark); }
.icon-btn-round.ghost { background: #fff; color: var(--s-ink); }
.dark .icon-btn-round.ghost { background: #1e3350; color: #fff; }

/* ---------- pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--s-border); border-radius: 10px;
  background: var(--s-surface); color: var(--s-text);
  text-decoration: none; font-weight: 600; font-size: .92rem;
}
.pagination a:hover { border-color: var(--s-brand); color: var(--s-brand); }
.pagination .is-current { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.pagination .is-gap { border: 0; background: none; color: var(--s-dim); }

/* ---------- empty state ---------- */

.empty-state {
  text-align: center; padding: 4rem 1.5rem;
  background: var(--s-surface); border: 1px dashed var(--s-border-strong); border-radius: var(--s-radius);
}
.empty-state svg { color: var(--s-dim); margin-bottom: 1rem; }
.empty-state h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.empty-state p { margin: 0 auto 1.5rem; color: var(--s-dim); max-width: 32rem; }

/* ---------- product detail ---------- */

.product-detail { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }

.gallery-main {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--s-radius); border: 1px solid var(--s-border);
  background: var(--s-muted-2); box-shadow: var(--s-shadow);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--s-border); border-radius: 12px; background: var(--s-muted-2);
  transition: border-color .15s;
}
.gallery-thumbs button:hover { border-color: var(--s-border-strong); }
.gallery-thumbs button.is-active { border-color: var(--s-brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-cat { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--s-brand); }
.pd-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; margin: .5rem 0 0; }
.pd-sku { font-size: .8rem; color: var(--s-dim); margin: .5rem 0 0; }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 0; }
.pd-price .price { font-size: 2rem; }
.pd-save { background: rgba(220, 38, 38, .1); color: var(--s-red); font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.pd-short { margin: 1rem 0 0; font-size: 1.02rem; line-height: 1.7; color: var(--s-dim); }
.pd-divider { height: 1px; background: var(--s-border); margin: 1.6rem 0; border: 0; }

.option-group { margin-bottom: 1.2rem; }
.option-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.option-chips input { position: absolute; opacity: 0; pointer-events: none; }
.option-chips label {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  min-width: 52px; padding: .55rem .9rem;
  border: 1.5px solid var(--s-border-strong); border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--s-text);
  transition: all .15s;
}
.option-chips label:hover { border-color: var(--s-brand); color: var(--s-brand); }
.option-chips input:checked + label { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.option-chips input:focus-visible + label { outline: 2px solid var(--s-brand); outline-offset: 2px; }

.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--s-border-strong); border-radius: 999px; overflow: hidden; }
.qty-box button {
  width: 42px; height: 46px; border: 0; background: transparent; cursor: pointer;
  color: var(--s-text); font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center;
}
.qty-box button:hover { background: var(--s-muted-2); color: var(--s-brand); }
.qty-box input {
  width: 48px; height: 46px; border: 0; background: transparent; text-align: center;
  font: 700 1rem inherit; color: var(--s-text); -moz-appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-top: 1.4rem; }
.pd-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.pd-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--s-dim); }
.pd-points svg { flex: none; color: var(--s-brand); margin-top: .1rem; }

.pd-description { margin-top: 3.5rem; }
.pd-description h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.pd-description p { line-height: 1.8; color: var(--s-dim); margin: 0 0 1rem; max-width: 60rem; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 42rem; margin-top: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--s-border); font-size: .92rem; }
.spec-table th { width: 170px; color: var(--s-dim); font-weight: 600; background: var(--s-muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3.5rem 0 1.5rem; }
.section-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; margin: 0; }
.section-head a { font-size: .9rem; font-weight: 600; color: var(--s-brand); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

/* ---------- cart ---------- */

.cart-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--s-dim); font-weight: 700; padding: 0 .75rem .85rem;
}
.cart-table td { padding: 1.1rem .75rem; border-top: 1px solid var(--s-border); vertical-align: middle; }
.cart-table .ta-r { text-align: right; }
.cart-table .ta-c { text-align: center; }

.cart-product { display: flex; gap: 1rem; align-items: center; }
.cart-product img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: var(--s-muted-2); }
.cart-product .name { font-weight: 600; font-size: .98rem; }
.cart-product .name a { color: inherit; text-decoration: none; }
.cart-product .name a:hover { color: var(--s-brand); }
.cart-product .variant { font-size: .82rem; color: var(--s-dim); margin-top: .2rem; }
.cart-product .sku { font-size: .74rem; color: var(--s-dim); margin-top: .15rem; opacity: .8; }

.link-danger {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--s-dim); font: inherit; font-size: .82rem; display: inline-flex; align-items: center; gap: .3rem;
}
.link-danger:hover { color: var(--s-red); }

.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .95rem; color: var(--s-dim); }
.summary-row strong { color: var(--s-text); font-weight: 600; }
.summary-total {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  margin-top: .75rem; padding-top: 1rem; border-top: 2px solid var(--s-brand);
  font-size: 1.05rem; font-weight: 700; color: var(--s-text);
}
.summary-total .price { font-size: 1.5rem; }
.ship-hint {
  margin-top: .9rem; padding: .7rem .85rem; border-radius: 10px;
  background: var(--s-brand-soft); color: var(--s-brand-dark); font-size: .84rem; line-height: 1.5;
}
.dark .ship-hint { color: #bae6fd; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.1rem; font-size: .8rem; color: var(--s-dim); }
.trust-row span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- checkout ---------- */

.checkout-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; } }

.pay-option { display: block; cursor: pointer; margin-bottom: .9rem; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .inner {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 2px solid var(--s-border); border-radius: 14px; padding: 1rem 1.15rem;
  background: var(--s-surface); transition: border-color .15s, background-color .15s;
}
.pay-option:hover .inner { border-color: var(--s-border-strong); }
.pay-option input:checked + .inner { border-color: var(--s-brand); background: var(--s-brand-soft); }
.pay-option input:focus-visible + .inner { outline: 2px solid var(--s-brand); outline-offset: 2px; }
.pay-option .dot {
  flex: none; width: 20px; height: 20px; border-radius: 999px;
  border: 2px solid var(--s-border-strong); margin-top: .15rem; position: relative; background: var(--s-page);
}
.pay-option input:checked + .inner .dot { border-color: var(--s-brand); }
.pay-option input:checked + .inner .dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 999px; background: var(--s-brand);
}
.pay-option .title { font-weight: 700; font-size: .98rem; display: flex; align-items: center; gap: .5rem; }
.pay-option .desc { font-size: .86rem; color: var(--s-dim); margin-top: .25rem; line-height: 1.5; }
.pay-badge {
  font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--s-muted-2); color: var(--s-dim); padding: .18rem .45rem; border-radius: 5px;
}

.mini-items { list-style: none; margin: 0; padding: 0; }
.mini-items li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--s-border); }
.mini-items li:last-child { border-bottom: 0; }
.mini-items img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex: none; background: var(--s-muted-2); }
.mini-items .mi-name { font-size: .88rem; font-weight: 600; line-height: 1.35; }
.mini-items .mi-meta { font-size: .78rem; color: var(--s-dim); margin-top: .15rem; }
.mini-items .mi-price { margin-left: auto; font-size: .9rem; font-weight: 700; white-space: nowrap; }

/* ---------- alerts ---------- */

.s-alert {
  display: flex; gap: .75rem; align-items: flex-start;
  border-radius: 12px; padding: .95rem 1.1rem; margin-bottom: 1.5rem;
  font-size: .92rem; line-height: 1.55; border: 1px solid;
}
.s-alert svg { flex: none; margin-top: .1rem; }
.s-alert-error { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .3); color: #b91c1c; }
.dark .s-alert-error { color: #fca5a5; }
.s-alert-success { background: rgba(15, 157, 88, .08); border-color: rgba(15, 157, 88, .3); color: #0f7a46; }
.dark .s-alert-success { color: #86efac; }
.s-alert-info { background: var(--s-brand-soft); border-color: rgba(6, 102, 158, .25); color: var(--s-brand-dark); }
.dark .s-alert-info { color: #bae6fd; }
.s-alert-warn { background: rgba(242, 165, 22, .1); border-color: rgba(242, 165, 22, .35); color: #92600a; }
.dark .s-alert-warn { color: #fcd34d; }

/* ---------- order confirmation ---------- */

.order-hero { text-align: center; padding: 3rem 1rem 1rem; }
.order-check {
  width: 78px; height: 78px; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(15, 157, 88, .12); color: var(--s-green);
}
.order-hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 .6rem; }
.order-hero p { color: var(--s-dim); margin: 0 auto; max-width: 38rem; font-size: 1.02rem; }
.order-no {
  display: inline-block; margin-top: 1.2rem; padding: .6rem 1.3rem;
  border: 2px dashed var(--s-brand); border-radius: 12px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; color: var(--s-brand);
}
.order-cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .order-cards { grid-template-columns: repeat(3, 1fr); } }
.order-card { background: var(--s-surface); border: 1px solid var(--s-border); border-radius: var(--s-radius); padding: 1.25rem; box-shadow: var(--s-shadow); }
.order-card h3 { margin: 0 0 .7rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--s-brand); }
.order-card p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--s-dim); }
.order-card strong { color: var(--s-text); }

.s-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.tag-green { background: rgba(15, 157, 88, .12); color: #0f7a46; }
.dark .tag-green { color: #86efac; }
.tag-amber { background: rgba(242, 165, 22, .15); color: #92600a; }
.dark .tag-amber { color: #fcd34d; }
.tag-blue { background: var(--s-brand-soft); color: var(--s-brand-dark); }
.dark .tag-blue { color: #bae6fd; }
.tag-red { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.dark .tag-red { color: #fca5a5; }
.tag-slate { background: var(--s-muted-2); color: var(--s-dim); }

/* ---------- toast ---------- */

#shop-toasts {
  position: fixed; z-index: 80; right: 1rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: .6rem; pointer-events: none;
}
.shop-toast {
  display: flex; gap: .65rem; align-items: center; pointer-events: auto;
  background: var(--s-ink); color: #fff; border-radius: 12px;
  padding: .85rem 1.1rem; font-size: .9rem; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  animation: toast-in .25s ease-out;
  max-width: min(22rem, calc(100vw - 2rem));
}
.shop-toast svg { flex: none; color: var(--s-gold); }
.shop-toast.is-error svg { color: #fca5a5; }
.shop-toast.is-out { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .product-card, .p-media img, .p-quick, .shop-toast { transition: none !important; animation: none !important; }
}

/* ---------- category strip ---------- */

.cat-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 2.5rem; }
.cat-tile {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  border-radius: var(--s-radius); aspect-ratio: 4 / 3; box-shadow: var(--s-shadow);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 14, 25, .88) 0%, rgba(6, 14, 25, .15) 60%, transparent 100%); }
.cat-tile .label { position: absolute; inset: auto 0 0; padding: .9rem 1rem; color: #fff; }
.cat-tile .label strong { display: block; font-size: 1rem; font-weight: 700; }
.cat-tile .label span { font-size: .78rem; color: #cbd5e1; }
.cat-tile.is-active { outline: 3px solid var(--s-gold); outline-offset: 2px; }

/* ---------- print (order confirmation) ---------- */

@media print {
  .shop-hero, .s-btn, .pagination, #shop-toasts, header, footer, #back-to-top, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
