/* ==========================================================================
   The Peach Tree Deals — storefront styles
   ========================================================================== */

:root {
  --peach-50: #fff8f4;
  --peach-100: #ffefe7;
  --peach-200: #fbd9cb;
  --peach-300: #f4b8a1;
  --peach-400: #eb9278;
  --peach-500: #de7255;
  --peach-600: #c85a3f;
  --peach-700: #a3452f;
  --ink: #2f2723;
  --ink-soft: #6b5d56;
  --cream: #fffaf6;
  --line: #efded4;
  --success: #2f7d5a;
  --danger: #b23b3b;
  --warn: #a86a12;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(94, 52, 33, 0.09);
  --shadow-sm: 0 6px 18px rgba(94, 52, 33, 0.07);
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--peach-700);
  text-decoration: none;
}

a:hover {
  color: var(--peach-600);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.container--narrow {
  width: min(760px, calc(100% - 40px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Announcement + header
   -------------------------------------------------------------------------- */

.announcement {
  background: linear-gradient(90deg, var(--peach-600), var(--peach-500));
  color: #fff;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 9px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  color: var(--peach-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  overflow: hidden;
  background: #fffaf6;
  box-shadow: 0 2px 8px rgba(163, 69, 47, 0.12);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
}

.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach-600);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--peach-600);
  border-bottom-color: var(--peach-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  box-shadow: var(--shadow-sm);
}

.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 120px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
}

.header-search button {
  border: 0;
  background: var(--peach-100);
  color: var(--peach-700);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-link:hover { color: var(--peach-600); }

.header-cart {
  position: relative;
  background: var(--peach-500);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

.header-cart:hover {
  color: #fff;
  background: var(--peach-600);
}

.cart-count {
  background: #fff;
  color: var(--peach-700);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Flash + alerts
   -------------------------------------------------------------------------- */

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.flash--success { background: #e8f5ee; color: #1f6044; border-color: #bfe3d0; }
.flash--error { background: #fbeaea; color: #8f2f2f; border-color: #efc4c4; }
.flash--info { background: #eef3fb; color: #2c4a78; border-color: #c9d8ef; }

.flash__close {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  font-size: 0.94rem;
}

.alert--warning {
  background: #fff5e6;
  border: 1px solid #f2d5a8;
  color: #7a4d0c;
}

.alert--info {
  background: #eef6f1;
  border: 1px solid #cfe6d8;
  color: #2f5c42;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--peach-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(222, 114, 85, 0.28);
}

.btn--primary:hover { background: var(--peach-600); color: #fff; }

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--peach-300); color: var(--peach-700); }

.btn--block { width: 100%; }
.btn--small { padding: 7px 14px; font-size: 0.8rem; }

.link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--peach-700);
  white-space: nowrap;
}

.link-danger,
.link-muted {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}

.link-danger { color: var(--danger); }
.link-muted { color: var(--ink-soft); }
.link-muted:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #fff3ec 0%, #ffe6da 55%, #fbd9cb 100%);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--peach-600);
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--peach-700);
  font-weight: 600;
}

.hero__art {
  display: grid;
  place-items: center;
}

.hero__peach {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd9c8);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(163, 69, 47, 0.18);
  animation: float 6s ease-in-out infinite;
}

.hero__peach img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

.hero__blob--one {
  width: 320px;
  height: 320px;
  background: #ffd0bb;
  top: -120px;
  right: 8%;
}

.hero__blob--two {
  width: 220px;
  height: 220px;
  background: #ffe9dc;
  bottom: -110px;
  left: -40px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--peach-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight { padding-top: 34px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Category cards
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  color: var(--ink);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.category-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ffe9dd, #fbd0bd);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.category-card__initial {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(163, 69, 47, 0.35);
}

.category-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-card__body strong { font-size: 1rem; }
.category-card__body span { font-size: 0.8rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: transparent;
}

.product-card:hover { color: var(--ink); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-card__body {
  padding: 12px 4px 0;
}

.product-card__body h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price__now { font-weight: 700; color: var(--peach-700); }
.price__was { font-size: 0.85rem; color: var(--ink-soft); text-decoration: line-through; }

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--peach-100);
  color: var(--peach-700);
}

.badge--sale { position: absolute; top: 10px; left: 10px; background: var(--peach-500); color: #fff; }
.badge--sold { position: absolute; top: 10px; right: 10px; background: rgba(47, 39, 35, 0.82); color: #fff; }
.badge--success { background: #e2f3e9; color: #1f6044; }
.badge--warn { background: #fff2d9; color: #8a5a10; }
.badge--info { background: #e8effa; color: #2c4a78; }
.badge--danger { background: #fbe4e4; color: #8f2f2f; }
.badge--muted { background: #eee9e6; color: #5f5751; }

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Page head / breadcrumbs / sort
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 22px 0 0;
}

.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--peach-600); }
.breadcrumbs span { opacity: 0.7; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 30px;
  flex-wrap: wrap;
}

.page-head h1 { margin-bottom: 4px; }
.page-head__desc { color: var(--ink-soft); margin: 0; }

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.sort-form select,
.sort-form input {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.results-count {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  padding: 8px 0 20px;
  align-items: start;
}

.product-gallery__main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--peach-500); }

.product-info h1 { margin-bottom: 10px; }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.4rem;
  margin: 4px 0 10px;
}

.product-price .price__now { font-size: 1.5rem; }

.stock-line { margin: 0 0 20px; }

.stock {
  font-size: 0.82rem;
  font-weight: 700;
}

.stock--in { color: var(--success); }
.stock--out { color: var(--danger); }

.add-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.added-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.product-meta p { margin: 0 0 6px; }
.product-meta span:first-child { font-weight: 700; color: var(--ink); margin-right: 8px; }

.product-description {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.product-description h2 { font-size: 1.15rem; }
.product-description p { white-space: pre-line; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Forms / fields
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field > span { color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--peach-400);
  box-shadow: 0 0 0 3px rgba(235, 146, 120, 0.18);
}

.field textarea { resize: vertical; }

.field--qty input { max-width: 110px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-row--3 { grid-template-columns: 1.4fr 0.8fr 0.8fr; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.cart-item__media {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--peach-50);
}

.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__title { font-weight: 700; color: var(--ink); }
.cart-item__variant,
.cart-item__sku { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.cart-item__price { margin: 6px 0 0; font-weight: 700; color: var(--peach-700); }

.cart-item__qty {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item__qty form:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item__qty input {
  width: 62px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.cart-item__total {
  font-weight: 700;
  min-width: 76px;
  text-align: right;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.cart-summary h2 { font-size: 1.25rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 7px 0;
  color: var(--ink-soft);
}

.summary-row--total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-summary .btn { margin-top: 16px; }

.summary-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
  text-align: center;
}

.cart-summary form { margin-top: 14px; text-align: center; }

.cart-summary--sticky { position: sticky; top: 100px; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 34px;
  align-items: start;
  padding-bottom: 50px;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.panel h2 { font-size: 1.2rem; margin-bottom: 16px; }
.panel > .field + .field { margin-top: 14px; }
.panel .field-row + .field { margin-top: 14px; }
.panel .field-row + .field-row { margin-top: 14px; }

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-option:has(input:checked) {
  border-color: var(--peach-400);
  background: var(--peach-50);
}

.pay-option input { accent-color: var(--peach-500); }

.pay-option > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.pay-option strong { font-size: 0.92rem; }
.pay-option small { font-size: 0.78rem; color: var(--ink-soft); }

.pay-option__logo {
  font-weight: 700;
  font-style: italic;
  color: #003087;
  font-size: 0.9rem;
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shipping-option:has(input:checked) {
  border-color: var(--peach-400);
  background: var(--peach-50);
}

.shipping-option input { accent-color: var(--peach-500); flex-shrink: 0; }

.shipping-option__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.shipping-option__info strong { font-size: 0.92rem; }
.shipping-option__info small { font-size: 0.78rem; color: var(--ink-soft); }

.shipping-option__price {
  font-weight: 700;
  white-space: nowrap;
}

.shipping-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

[data-shipping-panel] .btn[data-get-rates] { margin-top: 4px; }
[data-shipping-panel] .alert { margin: 0 0 14px; }

.mini-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow: auto;
}

.mini-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
}

.mini-items__media {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--peach-50);
  flex-shrink: 0;
}

.mini-items__media img { width: 100%; height: 100%; object-fit: cover; }

.mini-items__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.3;
}

.mini-items__info small { color: var(--ink-soft); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   Order confirmation / account
   -------------------------------------------------------------------------- */

.order-hero {
  text-align: center;
  padding: 44px 0 24px;
}

.order-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e2f3e9;
  color: var(--success);
  font-size: 1.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.order-hero .badges { justify-content: center; margin: 12px 0; }

.order-items {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.order-items__media {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--peach-50);
  flex-shrink: 0;
}

.order-items__media img { width: 100%; height: 100%; object-fit: cover; }

.order-items__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.35;
}

.order-items__info small { color: var(--ink-soft); font-size: 0.78rem; }

.address-block {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 50px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  margin: 46px 0 60px;
}

.auth-card h1 { margin-bottom: 6px; }
.auth-alt { margin: 18px 0 0; font-size: 0.88rem; color: var(--ink-soft); text-align: center; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Empty state / pagination / content page
   -------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 1px dashed var(--peach-300);
  border-radius: var(--radius);
  margin: 10px 0 30px;
}

.empty-state h3,
.empty-state h1 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 18px; }
.empty-state--small { padding: 34px 20px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 0 50px;
  font-size: 0.88rem;
}

.pagination__link { font-weight: 700; color: var(--peach-700); }
.pagination__link.is-disabled { color: #c9bdb6; }
.pagination__info { color: var(--ink-soft); }

.content-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin: 10px 0 50px;
}

.content-page h1 { margin-bottom: 18px; }
.content-page__body { color: var(--ink-soft); font-size: 1rem; line-height: 1.8; }
.content-page__body a { color: var(--peach-700); text-decoration: underline; }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #fff3ec, #ffe0d1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #2f2723;
  color: #e9ddd6;
  margin-top: 20px;
  padding: 50px 0 24px;
}

.site-footer a { color: #f3c9b8; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer__brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.site-footer__logo {
  width: 52px;
  height: 52px;
  padding: 5px;
  border-radius: 50%;
  overflow: hidden;
  background: #fffaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0;
}

.site-footer__tag { color: #c8b7ad; font-size: 0.9rem; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b9a69c;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: #b9a69c;
}

/* --------------------------------------------------------------------------
   Silver coins desk
   -------------------------------------------------------------------------- */

.coin-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 12% 90%, rgba(235, 146, 120, 0.22), transparent 46%),
    linear-gradient(135deg, #241f1c 0%, #3a302b 58%, #4a3b34 100%);
  color: #f6ede8;
  padding: 64px 0;
}

.coin-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 44px;
  align-items: center;
}

.coin-hero h1 {
  color: #fff;
  margin-bottom: 14px;
}

.coin-hero .eyebrow { color: var(--peach-300); }

.coin-hero__lead {
  color: #d8c9c0;
  font-size: 1.05rem;
  max-width: 54ch;
}

.coin-hero__points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.94rem;
  color: #e8dcd5;
}

.coin-hero__points li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.coin-hero__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach-400);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.coin-hero__points strong { color: #fff; }

.coin-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.coin-hero .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.coin-hero .btn--ghost:hover {
  border-color: var(--peach-300);
  color: var(--peach-200);
}

.spot-card {
  background: rgba(255, 252, 249, 0.97);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.spot-card__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 700;
}

.spot-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 4px;
}

.spot-card__unit {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.spot-card__split {
  display: flex;
  gap: 26px;
  margin: 16px 0 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.spot-card__split div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.spot-card__split span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.spot-card__split strong { font-size: 1rem; }

.spot-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  margin-top: 10px;
}

.spot-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 125, 90, 0.16);
}

.spot-card__dot--stale {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(168, 106, 18, 0.16);
}

.spot-card__refresh { margin-top: 14px; }

.spot-card__refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  width: 100%;
}

.spot-card__refresh-row .btn { margin-top: 0; }

.spot-card__timer {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.spot-card__timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.spot-card__warning {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--warn);
}

.spot-card--down .spot-card__price { color: var(--ink-soft); }

.coin-calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.coin-calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--peach-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
}

.segmented__option {
  position: relative;
  display: block;
  cursor: pointer;
}

.segmented__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented__option span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.segmented__option strong { font-size: 0.94rem; }

.segmented__option small { color: var(--ink-soft); font-size: 0.74rem; }

.segmented__option input:checked + span {
  background: #fff;
  border-color: var(--peach-300);
  box-shadow: var(--shadow-sm);
}

.segmented__option input:focus-visible + span {
  outline: 2px solid var(--peach-400);
  outline-offset: 2px;
}

.coin-calc__hint {
  margin: 14px 0 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.coin-lines__head,
.coin-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 92px 108px 34px;
  gap: 10px;
  align-items: center;
}

.coin-lines__head {
  padding: 0 2px 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 700;
}

.coin-lines__head span:nth-child(3),
.coin-lines__head span:nth-child(4) { text-align: right; }

.coin-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coin-line {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--peach-50);
}

.coin-line.is-filled { background: #fff; }

.coin-line__field select,
.coin-line__field input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
}

.coin-line__field select:focus,
.coin-line__field input:focus {
  outline: none;
  border-color: var(--peach-400);
  box-shadow: 0 0 0 3px rgba(235, 146, 120, 0.18);
}

.coin-line__oz,
.coin-line__price {
  text-align: right;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.coin-line__price {
  color: var(--ink);
  font-weight: 700;
}

.coin-line__remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.coin-line__remove:hover {
  border-color: #efc4c4;
  color: var(--danger);
}

.coin-lines__add { margin-top: 12px; }

.coin-summary {
  background: linear-gradient(170deg, #fff8f4, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.coin-summary h3 { margin-bottom: 12px; }

.coin-summary__list {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coin-summary__list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.coin-summary__list dt { color: var(--ink-soft); }

.coin-summary__list dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.coin-summary__grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}

.coin-summary__grand dd {
  color: var(--peach-700);
  font-size: 1.2rem;
}

.coin-summary__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  min-height: 2.6em;
}

.coin-summary__note.is-error { color: var(--danger); }

.coin-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.coin-contact .field > span { font-size: 0.8rem; }

.coin-contact .field input,
.coin-contact .field textarea { font-size: 0.88rem; }

.coin-summary__phone {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.coin-summary__phone a { color: var(--peach-700); }

.coin-summary__fine {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.coin-price-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 78ch;
  margin-bottom: 26px;
}

.coin-table-block {
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.coin-table-block__head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--peach-50);
}

.coin-table-block__head h3 { margin-bottom: 3px; }

.coin-table-block__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.coin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.coin-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdfb;
  white-space: nowrap;
}

.coin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.coin-table tr:last-child td { border-bottom: 0; }

.coin-table td strong { display: block; font-size: 0.9rem; }

.coin-table td small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.coin-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coin-table tbody tr:hover { background: #fffaf7; }

.coin-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.coin-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.coin-steps strong { color: var(--ink); }

.coin-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.coin-facts li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.coin-facts strong { color: var(--ink); }

.coin-disclaimer {
  background: #fff;
  border: 1px dashed var(--peach-300);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.coin-disclaimer strong { color: var(--ink); }

/* Quote confirmation */

.coin-confirm { padding: 26px 0 60px; }

.coin-confirm__lead {
  color: var(--ink-soft);
  max-width: 66ch;
}

.coin-confirm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 18px;
}

.coin-confirm__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.coin-confirm__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
}

.coin-confirm__big {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
}

.coin-confirm__sub { font-size: 0.8rem; color: var(--ink-soft); }

.coin-confirm__hold { font-size: 0.86rem; color: var(--ink-soft); }

.coin-confirm__table { margin: 18px 0; }

.coin-confirm__details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.88rem;
}

.coin-confirm__details p { margin: 0 0 6px; }

.coin-confirm__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.mobile-search-bar { display: none; }

/* --------------------------------------------------------------------------
   Responsive & Mobile Friendly
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: 40px 0; }
  .hero__art { display: none; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-summary--sticky { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(47, 39, 35, 0.12);
    z-index: 100;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .site-nav a:hover,
  .site-nav a.is-active {
    background: var(--peach-100);
  }
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  .header-search { display: none; }
  .site-header__inner { position: relative; }

  .mobile-search-bar {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    position: relative;
  }
  .mobile-search-bar input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 16px;
  }
  .mobile-search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  /* Prevent iOS zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  .site-header__inner { min-height: 60px; gap: 10px; }
  .brand__tag { display: none; }
  .header-link span:not(.cart-count) { display: none; }
  .header-cart { min-width: 44px; min-height: 44px; justify-content: center; }

  .section { padding: 32px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__body h3 { font-size: 0.92rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 14px 0;
  }
  .cart-item__media { width: 70px; height: 70px; }
  .cart-item__qty {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }
  .cart-item__total {
    grid-column: 2;
    text-align: right;
    align-self: center;
  }

  .field-row,
  .field-row--3 { grid-template-columns: 1fr; gap: 12px; }

  .shipping-option,
  .pay-option {
    padding: 14px 12px;
    min-height: 48px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 18px;
  }

  .site-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .page-head { align-items: flex-start; }
  .auth-card { padding: 20px 16px; }
  .content-page { padding: 20px 16px; }
  .cta-banner { padding: 22px 16px; }

  .popup-card {
    padding: 24px 18px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* Keep the header on one row on small phones instead of scrolling sideways. */
@media (max-width: 560px) {
  .site-header__inner { gap: 8px; }
  .brand { min-width: 0; flex: 0 1 auto; gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions { gap: 8px; min-width: 0; }
  .header-search { display: none; }
}

/* --------------------------------------------------------------------------
   Silver coins — responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .coin-hero { padding: 48px 0; }
  .coin-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .coin-calc__grid { grid-template-columns: 1fr; }
  .coin-summary { position: static; }
  .coin-info { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .coin-calc { padding: 18px; }
  .coin-lines__head { display: none; }
  .coin-line {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "item item"
      "qty oz"
      "price remove";
    row-gap: 8px;
  }
  .coin-line__field--item { grid-area: item; }
  .coin-line__field--qty { grid-area: qty; }
  .coin-line__oz { grid-area: oz; text-align: right; align-self: center; }
  .coin-line__price { grid-area: price; text-align: left; }
  .coin-line__remove { grid-area: remove; justify-self: end; }
  .coin-facts { grid-template-columns: 1fr; }
  .coin-confirm__grid { grid-template-columns: 1fr; }
  .coin-table th,
  .coin-table td { padding: 10px 12px; }
  .coin-hero__actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Ebikes
   -------------------------------------------------------------------------- */

.badge--featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(200, 90, 63, 0.94);
  color: #fff;
}

.ebike-card__meta {
  margin: 2px 0 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.ebike-hero__note {
  margin: 18px 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.ebike-contact {
  margin: 22px 0 8px;
  padding: 18px;
  background: var(--peach-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.ebike-contact__lead {
  margin: 0 0 12px;
  font-weight: 600;
}

.ebike-contact .btn { margin-bottom: 8px; }

.ebike-contact__note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.ebike-questions {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.ebike-questions a { font-weight: 600; }

.ebike-specs th {
  width: 34%;
  text-align: left;
  color: var(--ink-soft);
  font-weight: 600;
  background: transparent;
}

.ebike-specs td { font-weight: 500; }

/* ==========================================================================
   Order summary discount
   ========================================================================== */

.summary-row--discount { color: var(--success); }
.summary-row--discount small { font-weight: 600; letter-spacing: 0.02em; }

/* ==========================================================================
   Product popup / email coupon
   ========================================================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(47, 39, 35, 0.55);
  backdrop-filter: blur(2px);
}

.popup-overlay.is-hidden { display: none; }

.popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(47, 39, 35, 0.35);
  padding: 30px 28px 24px;
  text-align: center;
  animation: popup-in 0.22s ease-out;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-card h2 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}

.popup-message { margin: 0 0 12px; color: var(--ink-soft); }

.popup-offer {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--peach-100);
  border: 1px solid var(--peach-200);
  color: var(--peach-700);
  font-weight: 700;
  font-size: 1.05rem;
}

.popup-offer small { font-weight: 500; color: var(--ink-soft); }

.popup-form { text-align: left; }
.popup-form .field { margin-bottom: 12px; }

.popup-fine {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.popup-close:hover { background: rgba(47, 39, 35, 0.08); }
