/* =====================================================================
   One stylesheet, mobile first.
   Change --accent below to re-skin the whole shop.
   ===================================================================== */

:root {
  /* Brand */
  --accent:        #c2562b;
  --accent-dark:   #a3441f;
  --accent-soft:   #fbeee7;

  /* Confirmation / success green */
  --ok:            #1faa53;
  --ok-soft:       #e8f6ed;

  /* Neutrals */
  --ink:           #1c1a18;
  --ink-soft:      #56514c;
  --muted:         #857e77;
  --line:          #e7e2db;
  --bg:            #ffffff;
  --bg-soft:       #faf8f5;
  --bg-tint:       #f4f0ea;

  --danger:        #b3261e;

  /* Shape */
  --radius:        14px;
  --radius-sm:     9px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 2px rgba(28, 26, 24, .05);
  --shadow:        0 6px 20px rgba(28, 26, 24, .08);
  --shadow-lg:     0 14px 40px rgba(28, 26, 24, .13);

  --wrap:          1180px;
  --header-h:      64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.centered { text-align: center; }
.lead { font-size: 1.06rem; color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 650; color: var(--accent); margin: 0 0 .5rem;
}

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }

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

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-tint); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

.btn:disabled, .btn[disabled] {
  background: var(--bg-tint); color: var(--muted);
  border-color: var(--line); cursor: not-allowed; box-shadow: none;
}
.btn:disabled:active { transform: none; }

.link-danger {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font-size: .85rem; text-decoration: underline;
  text-underline-offset: 3px;
}
.link-danger:hover { color: var(--danger); }
.link-more { color: var(--accent); font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: .5rem;
}

.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; }
.logo-mark {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 1rem; font-weight: 700;
}
.logo-text { font-size: 1.05rem; }

.main-nav { display: none; }
.main-nav a {
  padding: .4rem .1rem; font-size: .93rem; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Cart always sits at the far right of the header. */
.cart-link {
  margin-left: auto; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-right: -6px;
  border-radius: var(--radius-pill);
}
.cart-link:hover { background: var(--bg-tint); }
.cart-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 2px #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-badge.is-empty { display: none; }

/* Menu button sits to the LEFT of the logo, the usual mobile pattern. */
.nav-toggle {
  order: -1; margin-left: -8px; margin-right: 2px;
  width: 40px; height: 40px; padding: 10px 9px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-pill);
}
.nav-toggle:hover { background: var(--bg-tint); }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.main-nav.open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 1rem 20px 1.25rem;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.main-nav.open a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.main-nav.open a:last-child { border-bottom: 0; }

/* Flash message */
.flash { background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.flash .wrap { padding-top: .7rem; padding-bottom: .7rem; font-size: .9rem; font-weight: 550; }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0 3rem; }
.band { background: var(--bg-soft); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }

.page-head { padding: 2rem 0 .5rem; }
.page-head h1 { margin-bottom: .25rem; }

/* --- Hero ----------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-inner { display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero-copy h1 { margin-bottom: .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.hero-media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover;
}

/* --- Trust strip ----------------------------------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner {
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  justify-content: center; padding-top: .9rem; padding-bottom: .9rem;
}
.trust-item { font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }
.trust-item::before { content: "✓"; color: var(--accent); margin-right: .4rem; font-weight: 700; }

/* --- Category tiles --------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3/2; display: block; background: var(--bg-tint);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-tile span {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255, 255, 255, .93); color: var(--ink);
  padding: .4rem .8rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 650;
}
.cat-tile:hover img { transform: scale(1.05); }

/* =====================================================================
   Product grid + cards
   ===================================================================== */
.grid.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-tint);
  aspect-ratio: 4/5;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card-media img { opacity: .55; }

.badge {
  position: absolute; top: 10px; left: 10px;
  padding: .3rem .6rem; border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.badge-sale { background: var(--accent); color: #fff; }
.badge-out  { background: var(--ink); color: #fff; }

.card-body { padding: .7rem .2rem 0; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 .15rem; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-title { margin: 0 0 .3rem; font-size: .96rem; font-weight: 600; }
.card-title a:hover { color: var(--accent); }

.price { margin: 0 0 .7rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-weight: 700; }
.price-was { color: var(--muted); font-size: .88em; }
.price-lg { font-size: 1.4rem; margin-bottom: 1rem; }
.save {
  font-size: .75rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: .2rem .55rem; border-radius: var(--radius-pill);
}

.card .btn { margin-top: auto; }

/* =====================================================================
   Shop bar (tabs + sort)
   ===================================================================== */
.shop-bar {
  display: flex; flex-direction: column; gap: .9rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: .4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .45rem .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: .88rem; color: var(--ink-soft); background: #fff; white-space: nowrap;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.sort select {
  width: 100%; padding: .6rem 2.2rem .6rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857e77' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center/16px;
  appearance: none; font-size: .9rem; cursor: pointer;
}

/* =====================================================================
   Product page
   ===================================================================== */
.crumbs { padding: 1rem 0 0; font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .current { color: var(--ink); }

.product-layout { display: grid; gap: 2rem; }

.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-tint); aspect-ratio: 4/5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: none; width: 68px; padding: 0; cursor: pointer;
  background: none; border: 2px solid transparent; border-radius: var(--radius-sm);
  overflow: hidden; line-height: 0;
}
.thumb img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.thumb.active { border-color: var(--accent); }

.product-info h1 { margin-bottom: .5rem; }
.desc { color: var(--ink-soft); }

.field { margin-bottom: 1.25rem; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between;
  font-weight: 600; font-size: .9rem; margin-bottom: .5rem;
}
.req { color: var(--muted); font-size: .78rem; font-weight: 500; }

.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option span {
  display: inline-flex; align-items: center; gap: .45rem;
  min-width: 46px; justify-content: center;
  padding: .5rem .85rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: .88rem; background: #fff; transition: .15s;
}
.option span:hover { border-color: var(--ink); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.option input:disabled + span { opacity: .45; cursor: not-allowed; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }

.field-error { color: var(--danger); font-size: .82rem; margin: .4rem 0 0; }

.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: #fff;
}
.stepper .step {
  width: 42px; height: 42px; border: 0; background: none;
  font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.stepper .step:hover { background: var(--bg-tint); }
.stepper .step:disabled { color: var(--muted); cursor: not-allowed; }
.stepper input {
  width: 46px; height: 42px; text-align: center;
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: none; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm .step { width: 34px; height: 34px; font-size: 1rem; }
.stepper-sm input { width: 38px; height: 34px; }

.buy-actions { display: flex; flex-direction: column; gap: .6rem; margin: 1.5rem 0 1rem; }
.buy-actions .btn { width: 100%; }

.product-meta { list-style: none; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.product-meta li { font-size: .87rem; color: var(--ink-soft); padding: .3rem 0; }
.product-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }

/* =====================================================================
   Cart
   ===================================================================== */
.cart-layout { display: grid; gap: 1.75rem; }

.cart-line {
  display: grid; grid-template-columns: 84px 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-tint); }
.cart-thumb img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.cart-detail h3 { margin: 0 0 .2rem; font-size: .98rem; }
.cart-detail h3 a:hover { color: var(--accent); }
.cart-detail p { margin: 0 0 .2rem; }
.cart-line-form { margin-top: .6rem; display: flex; align-items: center; gap: .6rem; }
.cart-line-end {
  grid-column: 2; display: flex; align-items: center; justify-content: space-between;
  margin-top: -.2rem;
}
.line-total { margin: 0; font-weight: 700; }
.cart-line.is-updating { opacity: .5; }

.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; }

.summary {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.summary h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.summary dl { margin: 0 0 .5rem; }
.summary dl > div { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .93rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .8rem 0; margin: .5rem 0 1rem;
  border-top: 1px solid var(--line); font-size: 1.05rem;
}
.summary-total strong { font-size: 1.25rem; }
.summary .btn + .muted { margin-top: .7rem; margin-bottom: 0; }

.summary-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.summary-items li {
  display: grid; grid-template-columns: 48px 1fr auto; gap: .7rem; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.summary-items img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; width: 48px; background: var(--bg-tint); }
.summary-item-name { display: flex; flex-direction: column; line-height: 1.35; }
.summary-item-price { font-weight: 600; white-space: nowrap; }

/* Empty states */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty svg { margin: 0 auto 1rem; color: var(--muted); }
.empty h1, .empty h2 { margin-bottom: .4rem; }
.empty .btn { margin-top: .75rem; }

/* =====================================================================
   Checkout
   ===================================================================== */
.checkout-layout { display: grid; gap: 1.75rem; }
.checkout-form h2 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.checkout-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.checkout-form label .req { color: var(--accent); }
/* One rule for every text-ish field, so email/tel/text all match. */
.checkout-form input:not([type="radio"]):not([type="checkbox"]),
.checkout-form textarea {
  width: 100%; padding: .75rem .9rem;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.checkout-form input::placeholder,
.checkout-form textarea::placeholder { color: var(--muted); opacity: 1; }

.checkout-form input:not([type="radio"]):not([type="checkbox"]):focus,
.checkout-form textarea:focus {
  border-color: var(--ink); outline: none;
  box-shadow: 0 0 0 3px rgba(28, 26, 24, .08);
}
.checkout-form textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-form h2 + .pay-methods { margin-top: .25rem; }

/* Confirmation */
.confirm { max-width: 620px; margin: 0 auto; text-align: center; }
.confirm-mark {
  width: 72px; height: 72px; margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}
.confirm-summary {
  text-align: left; margin: 2rem 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.confirm-summary h2 { font-size: 1.05rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}

/* =====================================================================
   About / contact
   ===================================================================== */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose ol, .prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .btn { margin: .3rem .4rem .3rem 0; }

.contact-layout { display: grid; gap: 2rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
}
.info-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.info-card p { margin: 0; font-size: .92rem; }
.info-card a:hover { color: var(--accent); }

.band-inner { display: grid; gap: 1rem; align-items: center; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.footer-col:first-child { grid-column: 1 / -1; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .22rem 0; font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: .88rem; }
.footer-logo { margin-bottom: .6rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: .82rem; }

/* =====================================================================
   Payment methods (checkout)
   ===================================================================== */
.pay-methods { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.pay-method {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pay-method:hover { border-color: var(--ink); }
.pay-method input { margin-top: .25rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pay-method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-sm); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-method-body { display: flex; flex-direction: column; gap: .15rem; }
.pay-method-title { font-weight: 650; font-size: .95rem; }
.pay-fee { font-weight: 500; color: var(--muted); font-size: .85rem; }

.pay-note {
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: .85rem 1rem; margin: 1.25rem 0;
}
.pay-note p { margin: .2rem 0 0; }

/* Secure-payment hand-off page */
.spinner {
  width: 38px; height: 38px; margin: 0 auto 1.25rem;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Order status marks */
.confirm-mark-bad  { background: #fdecea; color: var(--danger); }
.confirm-mark-wait { background: var(--bg-tint); color: var(--ink-soft); }
.confirm .btn { margin: .3rem .25rem; }
.confirm code {
  background: var(--bg-tint); padding: .1rem .35rem;
  border-radius: 5px; font-size: .9em;
}

/* =====================================================================
   Breakpoints
   ===================================================================== */
@media (min-width: 600px) {
  .grid.products { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .buy-actions { flex-direction: row; }
  .buy-actions .btn { width: auto; flex: 1; }
  .shop-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .sort select { width: auto; }
  .cart-line { grid-template-columns: 100px 1fr auto; }
  .cart-line-end {
    grid-column: 3; flex-direction: column; align-items: flex-end;
    justify-content: space-between; gap: .5rem;
  }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-col:first-child { grid-column: auto; }
  .band-inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: none; }
  .main-nav { display: flex; gap: 1.4rem; margin-left: 1.5rem; }
  .cart-link { margin-left: auto; }

  /* If the menu was left open on a phone and the window grows, drop the
     drawer styling instead of leaving a panel stuck over the page. */
  .main-nav.open {
    position: static; flex-direction: row; gap: 1.4rem;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .main-nav.open a { padding: .4rem .1rem; border-bottom: 2px solid transparent; }
  .main-nav.open a.active { border-bottom-color: var(--accent); }

  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
  .grid.products { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
  .cart-layout { grid-template-columns: 1fr 340px; align-items: start; }
  .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .summary { position: sticky; top: calc(var(--header-h) + 16px); }
  .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
