/* =========================================================================
   TI2026 Shop — stylesheet
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --bg:          #0a0c0f;
  --bg-soft:     #10141a;
  --surface:     #161b22;
  --surface-2:   #1d232c;
  --surface-3:   #252c37;
  --line:        #272e39;
  --line-soft:   #1e242d;

  --text:        #e9ecf1;
  --text-dim:    #a7b0bd;
  --text-faint:  #6f7987;

  --accent:      #c8412a;
  --accent-hi:   #e0563c;
  --accent-dim:  rgba(200, 65, 42, 0.14);
  --gold:        #e2a640;
  --gold-dim:    rgba(226, 166, 64, 0.14);
  --ok:          #48a578;
  --danger:      #d9534f;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 18px 44px rgba(0, 0, 0, 0.55);
  --shadow-sm:   0 6px 18px rgba(0, 0, 0, 0.4);

  --wrap:        1240px;
  --header-h:    68px;

  /* One size for every footer tile — banner and images alike. */
  --footer-tile-w: 100px;
  --footer-tile-h: 62px;

  --font-display: "Chakra Petch", "Segoe UI Semibold", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

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

/* =========================================================================
   header
   ========================================================================= */
.announce {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, var(--accent) 0%, #8e2c1d 100%);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 16px;
  font-weight: 500;
}
/* A slow gloss crossing the bar. Long pause between passes so it draws the
   eye once rather than nagging. */
.announce::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg,
    transparent 20%,
    rgba(255, 255, 255, .22) 42%,
    rgba(255, 255, 255, .38) 50%,
    rgba(255, 255, 255, .22) 58%,
    transparent 80%);
  transform: translateX(-100%);
  animation: sheen 7s ease-in-out 1.5s infinite;
}
.announce:empty { display: none; }

@keyframes sheen {
  0%        { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 26px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent) 0%, #7d2618 100%);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  box-shadow: 0 4px 14px rgba(200, 65, 42, 0.35);
}
/* Uploaded logo replaces the initials tile — contained, never stretched. */
.logo__mark--img {
  background: none; box-shadow: none; padding: 0;
  object-fit: contain; border-radius: 8px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }
.logo__sub { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.09em; text-transform: uppercase; }

.nav { display: flex; gap: 5px; margin-left: 6px; }
.nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; color: var(--text-dim);
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.is-active { color: var(--text); background: var(--surface); }

.header__spacer { flex: 1; }

.search {
  position: relative; width: 260px;
}
.search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; outline: none;
  transition: border-color .16s, background .16s;
}
.search input:focus { border-color: var(--accent); background: var(--surface-2); }
.search input::placeholder { color: var(--text-faint); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  transition: border-color .16s, background .16s;
}
.cart-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.cart-btn__count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.cart-btn__count[data-empty="1"] { background: var(--surface-3); color: var(--text-faint); }

.burger { display: none; }

/* Full-bleed decorative strip directly under the nav. It is a wide, short
   artwork, so it is cropped from the centre rather than scaled down to an
   unreadable sliver on narrow screens. */
.sitebanner {
  display: block; width: 100%;
  border-bottom: 1px solid var(--line-soft);
  background: #efe6cf;
  line-height: 0;
}
.sitebanner img {
  width: 100%;
  height: clamp(44px, 5.2vw, 104px);
  object-fit: cover;
  object-position: center;
}

/* =========================================================================
   hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(200, 65, 42, 0.22), transparent 62%),
    radial-gradient(700px 380px at 88% 8%, rgba(226, 166, 64, 0.10), transparent 60%),
    var(--bg-soft);
}
.hero__in {
  padding: 74px 22px 60px; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 10px 56px; align-items: center;
}
.hero__copy { min-width: 0; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero__kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .6;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); font-weight: 700; letter-spacing: -0.025em;
  max-width: 15ch; margin-bottom: 18px;
}
.hero p { color: var(--text-dim); max-width: 56ch; font-size: 16px; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Collage of real product shots — fills the right half of the banner. */
.hero__art {
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr;
  grid-template-areas: "a b" "a c";
  gap: 14px; height: 384px; min-width: 0;
}
.hero__art a {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s;
}
.hero__art a:hover { transform: translateY(-4px); border-color: var(--gold); }
.hero__art a:nth-child(1) { grid-area: a; }
.hero__art a:nth-child(2) { grid-area: b; }
.hero__art a:nth-child(3) { grid-area: c; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art span {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(10, 12, 15, .84); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero__art span s {
  font-size: 10px; font-weight: 500;
  color: var(--sale-color, var(--text-faint));
  background: var(--sale-bg, transparent);
  text-decoration-thickness: 1.2px;
  border-radius: 4px; padding: 0 4px;
}

.hero__stats {
  grid-column: 1 / -1;
  display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700;
}
.hero__stat span { font-size: 12px; color: var(--text-faint); letter-spacing: 0.07em; text-transform: uppercase; }

/* =========================================================================
   buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .1s, opacity .16s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hi); }

/* Gloss sweep on the calls to action. The pseudo-element is clipped to the
   button, so the radius is inherited rather than repeated here. */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(100deg,
    transparent,
    rgba(255, 255, 255, .34) 50%,
    transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: ctaSheen 5s ease-in-out 1s infinite;
}

/* The main call to action passes a little more often than the rest. */
.btn--cta::after { animation-duration: 3.4s; }

/* Hovering brings the next pass forward instead of waiting for the loop. */
.btn--primary:hover::after,
.btn--primary:focus-visible::after { animation-duration: 1.1s; }

@keyframes ctaSheen {
  0%        { transform: translateX(-180%) skewX(-18deg); }
  28%, 100% { transform: translateX(320%) skewX(-18deg); }
}
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--surface-3); background: var(--surface-2); }
.btn--gold { background: var(--gold); color: #1a1206; }
.btn--gold:hover { background: #efb757; }
.btn--danger { background: transparent; border-color: rgba(217, 83, 79, .5); color: #e88b88; }
.btn--danger:hover { background: rgba(217, 83, 79, .12); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 15px; padding: 0 30px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* =========================================================================
   section chrome
   ========================================================================= */
.section { padding: 58px 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.section__head h2 { font-size: 26px; }
.section__head p { color: var(--text-faint); font-size: 13.5px; margin: 5px 0 0; }

.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 0 24px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Chips are <a> elements on the storefront, so centre them explicitly —
   an anchor does not centre its text the way a <button> does. */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; line-height: 1; color: var(--text-dim);
  text-align: center; white-space: nowrap;
  transition: all .16s;
}
.chip:hover { border-color: var(--surface-3); color: var(--text); }
.chip.is-active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-hi); font-weight: 600; }

.toolbar__spacer { flex: 1; }
.select {
  height: 34px; padding: 0 32px 0 12px; border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7987' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line); font-size: 13px; appearance: none; outline: none;
}
.select:focus { border-color: var(--accent); }

/* =========================================================================
   product grid
   ========================================================================= */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

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

.card__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: #fff;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.card__media img.is-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img.is-main { opacity: 0; }
.card:hover .card__media img.is-alt { opacity: 1; }
.card:hover .card__media img { transform: scale(1.05); }

.card__badge {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 12, 15, .82); backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(226, 166, 64, .3);
}

.card__body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.card__cat { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.card__name { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.card__blurb {
  font-size: 12.5px; color: var(--text-faint); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 13px; }
.card__price { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--price-color, inherit); }
.card__was {
  font-size: 12.5px; text-decoration: line-through;
  color: var(--sale-color, var(--text-faint));
  background: var(--sale-bg, transparent);
  text-decoration-thickness: 1.2px;
  border-radius: 5px; padding: 1px 5px;
  margin-left: -4px;
}
.card__sold { font-size: 11.5px; color: var(--text-faint); }
.card__add {
  margin-left: auto; width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-dim);
  transition: all .16s;
}
.card__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty {
  padding: 60px 20px; text-align: center; color: var(--text-faint);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty[hidden] { display: none; }

/* =========================================================================
   motion
   ========================================================================= */

/* Cards arrive in a short stagger, both on load and when a filter re-reveals
   them. --i is set per card so the delay cascades across the grid. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.card {
  animation: riseIn .42s cubic-bezier(.22,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.card[hidden] { display: none; }

/* Applied while a card is on its way out of the filtered set. */
.card.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  animation: none;
  pointer-events: none;
}

/* Sections and panels fade up once as they scroll into view. */
.reveal { opacity: 0; }
.reveal.is-in { animation: fadeUp .55s cubic-bezier(.22,.7,.3,1) both; }

.hero__copy > * { animation: fadeUp .6s cubic-bezier(.22,.7,.3,1) both; }
.hero__copy > *:nth-child(1) { animation-delay: .04s; }
.hero__copy > *:nth-child(2) { animation-delay: .11s; }
.hero__copy > *:nth-child(3) { animation-delay: .18s; }
.hero__copy > *:nth-child(4) { animation-delay: .25s; }
.hero__art a { animation: riseIn .7s cubic-bezier(.22,.7,.3,1) both; }
.hero__art a:nth-child(1) { animation-delay: .12s; }
.hero__art a:nth-child(2) { animation-delay: .2s; }
.hero__art a:nth-child(3) { animation-delay: .28s; }

/* The header lifts off the page once you scroll. */
.header { transition: box-shadow .25s ease, background .25s ease; }
.header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* Flash messages slide in rather than appear. */
.toast { animation: toastIn .3s cubic-bezier(.2,.8,.3,1) both; }

/* Anyone who asks for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}

/* =========================================================================
   product detail
   ========================================================================= */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-faint); padding: 22px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: start; padding-bottom: 20px; }

.gal { position: sticky; top: calc(var(--header-h) + 20px); }
.gal__main {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  overflow: hidden; background: #fff; border: 1px solid var(--line-soft);
}
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10, 12, 15, .68); color: #fff; backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background .16s; z-index: 2;
}
.gal__nav:hover { background: var(--accent); }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gal__thumb {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; background: #fff; transition: border-color .16s, opacity .16s;
  opacity: .62;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-active { border-color: var(--accent); opacity: 1; }

.pdp__cat { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pdp h1 { font-size: clamp(25px, 3.4vw, 34px); margin: 10px 0 8px; }
.pdp__cn { font-size: 13.5px; color: var(--text-faint); }
.pdp__meta { display: flex; align-items: center; gap: 14px; margin: 16px 0 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.pdp__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.pricebox {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%), var(--surface);
  border: 1px solid var(--line); margin-bottom: 24px;
}
.pricebox__now { font-family: var(--font-display); font-size: 33px; font-weight: 700; color: var(--price-color, inherit); }
.pricebox__was {
  font-size: 15px; text-decoration: line-through;
  color: var(--sale-color, var(--text-faint));
  background: var(--sale-bg, transparent);
  text-decoration-thickness: 1.5px;
  border-radius: 6px; padding: 1px 6px;
}
.pricebox__ship { margin-left: auto; font-size: 12.5px; color: var(--ok); }

.optgroup { margin-bottom: 20px; }
.optgroup__label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 9px; letter-spacing: 0.03em; }
.optgroup__label b { color: var(--text); }
.optvals { display: flex; gap: 8px; flex-wrap: wrap; }
.optval {
  min-width: 52px; height: 40px; padding: 0 16px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--text-dim); transition: all .16s;
}
.optval:hover { border-color: var(--surface-3); color: var(--text); }
.optval.is-active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-hi); font-weight: 600; }

.buyrow { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); overflow: hidden; flex-shrink: 0;
}
.qty button { width: 42px; height: 52px; color: var(--text-dim); font-size: 18px; transition: background .16s, color .16s; }
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty input {
  width: 46px; height: 52px; text-align: center; background: none; border: none;
  outline: none; font-weight: 600; font-size: 15px;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.trust { display: grid; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.trust div { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--text-dim); }
.trust svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 54px 0 0; flex-wrap: wrap; }
.tab {
  padding: 12px 18px; font-size: 14px; font-weight: 500; color: var(--text-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .16s, border-color .16s;
}
.tab:hover { color: var(--text-dim); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.tabpanel { padding: 30px 0 20px; display: none; }
.tabpanel.is-active { display: block; }

.prose { max-width: 74ch; color: var(--text-dim); font-size: 14.5px; }
.prose p { margin: 0 0 15px; white-space: pre-wrap; }

.spectable { width: 100%; border-collapse: collapse; max-width: 620px; font-size: 14px; }
.spectable td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.spectable td:first-child { color: var(--text-faint); width: 190px; }

.detailstack { max-width: 790px; margin-inline: auto; display: grid; gap: 0; }
.detailstack img { width: 100%; border-radius: 0; }
.detailstack img:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.detailstack img:last-child { border-radius: 0 0 var(--radius) var(--radius); }

/* =========================================================================
   cart drawer
   ========================================================================= */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 9, .68);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .24s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-soft); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.8,.3,1);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; border-bottom: 1px solid var(--line-soft);
}
.drawer__head h3 { font-size: 17px; }
.drawer__close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-faint); transition: all .16s; }
.drawer__close:hover { background: var(--surface); color: var(--text); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line-soft); background: var(--surface); }

.lineitem { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.lineitem:last-child { border-bottom: none; }
.lineitem__img { width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; flex-shrink: 0; }
.lineitem__img img { width: 100%; height: 100%; object-fit: cover; }
.lineitem__main { flex: 1; min-width: 0; }
.lineitem__name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.lineitem__opt { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.lineitem__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.lineitem__price { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-left: auto; }
.miniqty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
/* Quantity and remove controls are one-button forms — keep them out of the layout. */
.miniqty form, .lineitem__row > form { display: contents; }
.miniqty button { width: 26px; height: 26px; font-size: 14px; color: var(--text-dim); transition: background .16s; }
.miniqty button:hover { background: var(--surface-2); color: var(--text); }
.miniqty span { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 600; }
.lineitem__del { font-size: 11.5px; color: var(--text-faint); text-decoration: underline; transition: color .16s; }
.lineitem__del:hover { color: var(--danger); }

.totals { display: grid; gap: 9px; margin-bottom: 16px; font-size: 13.5px; }
.totals__row { display: flex; justify-content: space-between; color: var(--text-dim); }
.totals__row--grand {
  border-top: 1px solid var(--line); padding-top: 11px; margin-top: 3px;
  color: var(--text); font-size: 17px; font-family: var(--font-display); font-weight: 700;
}

/* =========================================================================
   cart / checkout page
   ========================================================================= */
.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; align-items: start; padding-bottom: 70px; }

.panel {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
}
.panel + .panel { margin-top: 20px; }
.panel__title { font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.panel__step {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.panel__sub { font-size: 13px; color: var(--text-faint); margin: 0 0 18px; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field label .req { color: var(--accent-hi); }
.input, .textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 13px; font-size: 14px; outline: none;
  transition: border-color .16s;
}
.input:focus, .textarea:focus { border-color: var(--accent); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.field__hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.field--error .input, .field--error .textarea { border-color: var(--danger); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }

.qr {
  display: grid; gap: 16px; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start;
}
.qr__img {
  width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
  background: #fff; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line);
}
.qr__img img { width: 100%; height: 100%; object-fit: contain; }
.qr__placeholder { color: #99a; font-size: 12px; text-align: center; padding: 16px; line-height: 1.5; }
.qr__note { font-size: 13px; color: var(--text-dim); }
.qr__ref {
  margin-top: 14px; padding: 11px 14px; border-radius: 9px;
  background: var(--bg-soft); border: 1px dashed var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 14px;
}
.qr__ref b { color: var(--gold); }

/* Payment screenshot picker — the native file input is hidden behind a label
   so the control matches the rest of the checkout fields. Scoped under .field
   to out-rank the `.field label` typography this box must not inherit. */
.field .upload {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  margin-bottom: 0; font-weight: 400;
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: var(--bg-soft);
  transition: border-color .16s, background .16s, color .16s;
}
.field .upload:hover { border-color: var(--accent-hi); background: var(--surface); }
.field .upload input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.field .upload input[type="file"]:focus-visible + .upload__icon {
  outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px;
}
.field .upload__icon { color: var(--text-faint); display: grid; place-items: center; flex-shrink: 0; }
.field .upload__text {
  font-size: 13px; color: var(--text-dim); min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field .upload.is-filled { border-style: solid; border-color: var(--ok); background: var(--surface); }
.field .upload.is-filled .upload__icon { color: var(--ok); }
.field .upload.is-filled .upload__text { color: var(--text); }
.field .upload__thumb {
  width: 40px; height: 40px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--line); background: #fff; flex-shrink: 0; order: -1;
}

.done { text-align: center; padding: 40px 24px; }
.done__icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(72, 165, 120, .14); border: 1px solid rgba(72, 165, 120, .4);
  display: grid; place-items: center; color: var(--ok);
}
.done__icon--halted {
  background: var(--surface-2); border-color: var(--line); color: var(--text-faint);
}
/* Direct children only — this panel holds other panels, and the centred
   narrow column below is meant for its own intro text, not for theirs. */
.done > h2 { font-size: 24px; margin-bottom: 10px; }
.done > p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 8px; }
.done .panel { text-align: left; }

/* =========================================================================
   footer
   ========================================================================= */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); margin-top: 40px; }

/* Footer banner sits inside the middle column, under the tagline. Its size is
   set from the admin, so it uses its own variables. */
.footerbanner { margin: 16px auto 0; line-height: 0; width: max-content; }
/* No frame — the banner sits flush on the footer background. */
.footerbanner img {
  display: block;
  width: var(--footer-banner-w, 100px);
  height: var(--footer-banner-h, 62px);
  object-fit: cover;
  border: 0;
  background: none;
}

.footerslot__item img {
  display: block;
  width: var(--footer-tile-w);
  height: var(--footer-tile-h);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* Small image tiles placed inside the footer columns. */
.footerslot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footerslot--center { justify-content: center; margin: 0 0 20px; }
.footerslot--left { justify-content: flex-start; }

.footerslot__item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  max-width: 120px; text-decoration: none;
}
/* Size and border come from the shared rule above; only motion is added here. */
.footerslot__item img { transition: border-color .2s, transform .2s; }
a.footerslot__item:hover img { border-color: var(--gold); transform: translateY(-2px); }
.footerslot__item em {
  font-style: normal; font-size: 10.5px; line-height: 1.35;
  color: var(--text-faint); text-align: center;
}

/* Social icons, bottom-right of the footer bar. */
.socials { display: flex; gap: 8px; margin-left: auto; }
.socials__link {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--line);
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.socials__link:hover {
  color: #fff; background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px);
}
/* Links left, brand centred, contact right. */
.footer__in {
  padding: 46px 22px 30px; display: grid;
  grid-template-columns: 1fr 1.5fr 1fr; gap: 34px; align-items: start;
}
.footer__col--left   { text-align: left; }
.footer__col--center { text-align: center; }
.footer__col--right  { text-align: right; }

.footer h4 { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: 13.5px; color: var(--text-dim); transition: color .16s; }
.footer a:hover { color: var(--text); }
.footer__about {
  font-size: 13.5px; color: var(--text-faint);
  max-width: 42ch; margin: 14px auto 0; line-height: 1.65;
}
.footer__bar {
  border-top: 1px solid var(--line-soft); padding: 16px 22px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-faint);
  text-align: center;
}
/* The socials sat on the right via an auto margin, which would push the
   copyright off-centre — centre the row as a whole instead. */
.footer__bar .socials { margin-left: 0; }

/* =========================================================================
   admin
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 26px; padding: 26px 0 70px; align-items: start; }

.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; }
.aside__label { font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-faint); padding: 10px 12px 6px; }
.aside button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 13px; border-radius: 9px; font-size: 14px;
  color: var(--text-dim); text-align: left; transition: all .16s;
}
.aside button:hover { background: var(--surface); color: var(--text); }
.aside button.is-active { background: var(--accent-dim); color: var(--accent-hi); font-weight: 600; }

.login-wrap { max-width: 380px; margin: 90px auto; }

.savebar {
  position: sticky; bottom: 0; z-index: 50; margin-top: 24px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.savebar__msg { font-size: 13px; color: var(--text-faint); flex: 1; min-width: 180px; }
.savebar__msg.is-dirty { color: var(--gold); }

.adminlist { display: grid; gap: 10px; }
.adminrow {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  transition: border-color .16s;
}
.adminrow:hover { border-color: var(--surface-3); }
.adminrow__img { width: 50px; height: 50px; border-radius: 7px; overflow: hidden; background: #fff; flex-shrink: 0; }
.adminrow__img img { width: 100%; height: 100%; object-fit: cover; }
.adminrow__main { flex: 1; min-width: 0; }
.adminrow__name { font-size: 14px; font-weight: 600; }
.adminrow__meta { font-size: 12px; color: var(--text-faint); }
.adminrow__actions { display: flex; gap: 7px; flex-shrink: 0; }

.pill { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 600; letter-spacing: .04em; }
.pill--on { background: rgba(72,165,120,.16); color: #6dc79b; }
.pill--off { background: var(--surface-3); color: var(--text-faint); }
.pill--wait { background: var(--gold-dim); color: #eabf78; }

.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.imgcell { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.imgcell img { width: 100%; height: 100%; object-fit: cover; }
.imgcell button {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(10,12,15,.8); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.imgcell__del { position: absolute; top: 4px; right: 4px; }
.imgcell__del button:hover { background: var(--danger); }
.imgcell__move { position: absolute; bottom: 4px; left: 4px; display: flex; gap: 4px; }
.imgcell__move button:hover { background: var(--accent); }

/* Admin rows are built from many single-button forms — keep them inline. */
.adminrow__actions form,
.imgcell__del,
.imgcell__move form { display: contents; }
.imgcell__del { display: block; }

.statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.statcard {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 15px 17px;
}
.bannerpreview {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: #efe6cf; margin-bottom: 16px; line-height: 0;
}
.bannerpreview img { width: 100%; height: auto; }

/* Logo and favicon previews sit on a checkerboard so transparency is obvious. */
.logopreview, .iconpreview, .qrpreview {
  display: inline-grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(45deg, #23282f 25%, transparent 25%, transparent 75%, #23282f 75%),
    linear-gradient(45deg, #23282f 25%, transparent 25%, transparent 75%, #23282f 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}
.logopreview img { width: 84px; height: 84px; object-fit: contain; }
.iconpreview img { width: 48px; height: 48px; object-fit: contain; }
.qrpreview { background-image: none; background-color: #fff; padding: 8px; }
.qrpreview img { width: 220px; height: 220px; object-fit: contain; }

.statcard b { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.statcard span { font-size: 11px; color: var(--text-faint); letter-spacing: .07em; text-transform: uppercase; }

/* Footer gallery editor */
.fglist { display: grid; gap: 12px; }
.fgitem {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.fgitem__img {
  width: 92px; height: 92px; flex-shrink: 0; overflow: hidden;
  border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line);
}
.fgitem__img img { width: 100%; height: 100%; object-fit: cover; }
.fgitem__fields { flex: 1; min-width: 0; }

.fgtools { display: grid; gap: 8px; margin-top: 16px; }
.fgtool {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); background: var(--surface);
}
.fgtool form { display: contents; }
.fgtool__name {
  flex: 1; min-width: 120px; font-size: 13px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Footer banner size stepper */
.sizer { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.sizer__preview {
  display: grid; place-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); min-width: 130px; min-height: 90px;
}
/* Borderless, matching how it renders in the footer. */
.sizer__preview img { object-fit: cover; }
.sizer__controls { display: grid; gap: 8px; }
.sizer__row { display: flex; align-items: center; gap: 8px; }
.sizer__row form { display: contents; }
.sizer__label { width: 54px; font-size: 12.5px; color: var(--text-faint); }
.sizer__value {
  min-width: 82px; text-align: center; font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.colorfield { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.colorfield input[type="color"] {
  width: 52px; height: 38px; padding: 3px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px;
}
.colorfield code { font-size: 12.5px; color: var(--text-faint); }
.colorfield__demo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 6px 12px; border-radius: 9px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.colorfield__demo s { font-size: 12.5px; font-weight: 500; text-decoration-thickness: 1.2px; }

.checkline {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 14px; color: var(--text-dim); padding: 4px 0;
}
.checkline input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

.hr { height: 1px; background: var(--line-soft); margin: 22px 0; border: none; }

.note {
  padding: 13px 16px; border-radius: 9px; font-size: 13px; line-height: 1.6;
  background: var(--gold-dim); border: 1px solid rgba(226,166,64,.28); color: #eabf78;
}
.note--info { background: var(--surface-2); border-color: var(--line); color: var(--text-dim); }
.note--ok { background: rgba(72,165,120,.13); border-color: rgba(72,165,120,.32); color: #8fd3ae; }

/* =========================================================================
   change history
   ========================================================================= */

.histtable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 780px; }
.histtable th {
  text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.histtable td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.histtable tr:last-child td { border-bottom: none; }
.histtable a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.histtable__when { color: var(--text-faint); white-space: nowrap; }
.histtable__kind { display: block; margin-top: 3px; font-size: 11px; color: var(--text-faint); }
/* The old value reads as struck-through history, the new one as current fact. */
.histtable__was { color: var(--text-faint); text-decoration: line-through; }
.histtable__now { color: var(--text); font-weight: 500; }
/* Long blurbs and descriptions must not stretch the row into a single line. */
.histtable__was, .histtable__now { max-width: 260px; overflow-wrap: anywhere; }

.pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px; font-size: 13px; color: var(--text-faint);
}

/* =========================================================================
   order status timeline
   ========================================================================= */
.timeline { text-align: left; }

/* ---- the buyer's parcel tracking box ---- */
.parcel {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.parcel__main { flex: 1; min-width: 0; }
.parcel__label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint);
}
.parcel__no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14.5px; color: var(--text); margin-top: 3px; word-break: break-all;
}
.parcel__pending {
  font-size: 12.5px; color: var(--text-faint); line-height: 1.6;
  margin: 0 0 20px; padding: 11px 14px; border-radius: 8px;
  background: var(--bg-soft); border: 1px dashed var(--line);
}

/* ---- the summary above the steps ---- */
.timeline__head {
  padding: 15px 17px 17px; margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--line);
}
.timeline__headline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 11px;
}
.timeline__stage {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--text); letter-spacing: .01em;
}
.timeline__count {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface-3);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.timeline__bar {
  height: 5px; border-radius: 999px; overflow: hidden;
  background: var(--surface-3);
}
.timeline__bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), #6dc79b);
  transition: width .5s cubic-bezier(.22,.7,.3,1);
}
.timeline__say { font-size: 13px; color: var(--text-dim); margin: 11px 0 0; line-height: 1.55; }

/* ---- an order stopped off the track ---- */
.timeline__halt {
  display: flex; gap: 11px; margin: 0 0 22px; padding: 14px 16px;
  border-radius: var(--radius-sm); font-size: 13px; line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line);
}
.timeline__halt-icon { flex-shrink: 0; margin-top: 1px; color: currentColor; }
.timeline__halt b { display: block; font-size: 14px; margin-bottom: 2px; }
.timeline__halt span { color: var(--text-dim); display: block; }
.timeline__halt--cancelled { background: rgba(217,83,79,.1); border-color: rgba(217,83,79,.3); color: #eb8b88; }
.timeline__halt--refunded,
.timeline__halt--on-hold { background: var(--gold-dim); border-color: rgba(226,166,64,.28); color: #eabf78; }

/* ---- the steps ---- */
.timeline__list { list-style: none; margin: 0; padding: 0; }
.timeline__step { position: relative; display: flex; gap: 14px; padding: 0 0 20px; }
.timeline__step:last-child { padding-bottom: 0; }

/* The rail joining one dot to the next. */
.timeline__step::before {
  content: ""; position: absolute; left: 11px; top: 24px; bottom: -4px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.timeline__step:last-child::before { display: none; }
.timeline__step.is-done::before { background: var(--ok); opacity: .55; }

.timeline__dot {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); border: 2px solid var(--line); color: #08160f;
  transition: background .2s, border-color .2s;
}
.timeline__step.is-done .timeline__dot { background: var(--ok); border-color: var(--ok); }
.timeline__step.is-current .timeline__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-dim);
}
.timeline__step.is-current .timeline__dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--accent-hi); animation: pulseRing 2.1s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.timeline__body { min-width: 0; flex: 1; padding-top: 2px; }
.timeline__label {
  font-size: 13.5px; font-weight: 600; color: var(--text-faint);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.timeline__step.is-done .timeline__label { color: var(--text-dim); }
.timeline__step.is-current .timeline__label { color: var(--text); font-size: 14.5px; }
.timeline__label em {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-hi);
  background: var(--accent-dim); border: 1px solid rgba(224,86,60,.3);
  border-radius: 999px; padding: 2px 8px;
}
/* Step glyphs sit on the label baseline, tinted like the text around them. */
.timeline__label .statusicon { flex-shrink: 0; opacity: .85; margin-right: -2px; }
.timeline__step.is-current .timeline__label .statusicon { color: var(--accent-hi); opacity: 1; }

.timeline__blurb { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.6; }
.timeline__at { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.timeline__note {
  display: inline-block; font-size: 12.5px; color: var(--text); margin-top: 8px;
  padding: 8px 12px; border-radius: 8px; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

/* A note is shop-written rich text, so the tags the editor can produce all
   need a look here — nothing else is allowed through the sanitiser. */
.timeline__note-text { line-height: 1.65; overflow-wrap: anywhere; }
.timeline__note-text > :first-child { margin-top: 0; }
.timeline__note-text > :last-child { margin-bottom: 0; }
.timeline__note-text p,
.timeline__note-text div { margin: 0 0 6px; }
.timeline__note-text ul,
.timeline__note-text ol { margin: 6px 0; padding-left: 20px; }
.timeline__note-text li { margin: 2px 0; }
.timeline__note-text a { color: var(--accent-hi); text-decoration: underline; }
.timeline__note-text mark { background: var(--accent-dim); color: var(--text); padding: 0 3px; border-radius: 3px; }

/* The seven sizes the editor offers, relative so they scale with the note. */
.fs-1 { font-size: .75em; }
.fs-2 { font-size: .88em; }
.fs-3 { font-size: 1em; }
.fs-4 { font-size: 1.15em; }
.fs-5 { font-size: 1.35em; }
.fs-6 { font-size: 1.6em; }
.fs-7 { font-size: 2em; }

/* Photos attached to an update. Capped so a phone screenshot cannot take
   over the timeline; each link opens its own full size. */
.timeline__shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.timeline__shot { display: block; flex: 0 0 auto; width: 260px; max-width: 100%; }
.timeline__shot img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid var(--line);
  /* A phone photo is often portrait; cropped here so one note cannot push
     the rest of the timeline off the screen. The link opens it whole. */
  max-height: 240px; object-fit: cover; object-position: center;
}
.timeline__shot:hover img { border-color: var(--accent-hi); }

/* Several photos read as a contact sheet rather than a stack of billboards. */
.timeline__shots--many .timeline__shot { width: 116px; }
.timeline__shots--many .timeline__shot img { height: 116px; max-height: none; }

/* The admin's chosen-photo preview, before anything is uploaded. */
.shotpicker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shotpicker__item { margin: 0; width: 92px; height: 92px; }
.shotpicker__item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
/* Past the per-update limit: shown, but visibly not coming along. */
.shotpicker__item.is-over img { opacity: .3; border-style: dashed; }
.shotpicker__warn {
  flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: var(--accent-hi);
}

/* ---- the admin's note editor --------------------------------------------- */
.rte {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden;
}
.rte__bar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 6px 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.rte__btn {
  min-width: 30px; height: 28px; padding: 0 8px; cursor: pointer;
  font: inherit; font-size: 12.5px; line-height: 1; color: var(--text-dim);
  background: transparent; border: 1px solid transparent; border-radius: 6px;
}
.rte__btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.rte__btn:active { background: var(--accent-dim); border-color: var(--accent-hi); color: var(--text); }
.rte__sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.rte__size {
  height: 28px; font: inherit; font-size: 12.5px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 0 6px;
}
.rte__area {
  min-height: 150px; max-height: 420px; overflow-y: auto; resize: vertical;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.65; color: var(--text);
  outline: none; overflow-wrap: anywhere;
}
.rte__area:focus { box-shadow: inset 0 0 0 2px var(--accent-dim); }
/* Only while genuinely empty: :empty misses the stray <br> a browser leaves. */
.rte__area:empty::before {
  content: attr(data-placeholder); color: var(--text-faint); pointer-events: none;
}
.rte__area p, .rte__area div { margin: 0 0 6px; }
.rte__area ul, .rte__area ol { margin: 6px 0; padding-left: 22px; }
.rte__area a { color: var(--accent-hi); text-decoration: underline; }

/* The step the buyer is on gets a little more room to breathe. */
.timeline__step.is-current .timeline__body {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 11px 14px 12px; margin-top: -8px;
}

/* Once an order is halted the remaining steps are no longer expected. */
.timeline__list.is-halted .timeline__step.is-todo { opacity: .4; }
/* ...so the rail must not run on past the point it actually stopped. */
.timeline__list.is-halted .timeline__step.is-done:has(+ .is-todo)::before { background: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .timeline__step.is-current .timeline__dot::after { animation: none; }
  .timeline__bar > span { transition: none; }
  /* The global reset already stops these, but a sweeping highlight is exactly
     what someone asking for less motion wants gone — so remove it outright. */
  .announce::after, .btn--primary::after { display: none; }
}

@media (max-width: 560px) {
  .timeline__step { gap: 12px; }
  .timeline__stage { font-size: 15.5px; }
  .timeline__label { font-size: 13px; }
  .timeline__step.is-current .timeline__label { font-size: 14px; }
}

.footer__legal {
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 0;
  font-size: 11.5px; line-height: 1.65; color: var(--text-faint);
  /* Narrower than the wrap for readability, so it needs centring of its own —
     .wrap's auto margins are overridden by the max-width below. */
  max-width: 900px; margin: 8px auto 0; text-align: center;
}
.footer__legal a { color: var(--text-dim); text-decoration: underline; margin-left: 4px; }
.footer__legal a:hover { color: var(--text); }

/* the disclaimer page itself */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin-bottom: 6px; }
.legal__updated { font-size: 12.5px; color: var(--text-faint); margin-bottom: 26px; }
.legal p { color: var(--text-dim); line-height: 1.75; margin: 0 0 16px; font-size: 14px; }
.legal p:last-child { margin-bottom: 0; }

/* =========================================================================
   toast
   ========================================================================= */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 9px; width: max-content; max-width: 92vw; }
.toast {
  padding: 12px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: toastIn .26s cubic-bezier(.2,.8,.3,1);
}
.toast--ok { border-color: rgba(72,165,120,.45); }
.toast--err { border-color: rgba(217,83,79,.45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .hero__in { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { height: 300px; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gal { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .aside { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .aside__label { display: none; }
  .aside button { white-space: nowrap; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  /* Two rows on small screens: brand + cart on top, search underneath, and
     the link list folded behind the burger. */
  .header__in { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 10px 0; gap: 10px; }
  .nav { display: none; }
  .search { display: block; order: 10; width: 100%; }
  .burger {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  }
  .nav.is-open {
    display: flex; order: 11; width: 100%; flex-direction: column;
    gap: 2px; margin: 0; padding: 6px 0 2px; border-top: 1px solid var(--line-soft);
  }
  .nav.is-open a { padding: 11px 12px; }
  .hero__in { padding: 50px 22px 44px; }
  .hero__art { height: 260px; gap: 10px; }
  .hero__stats { gap: 24px; margin-top: 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card__body { padding: 12px 13px 14px; }
  .card__blurb { display: none; }
  .gal__rail { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .histtable { font-size: 12.5px; }
  .qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  /* Stacked footer reads better centred than with one column pushed right. */
  .footer__in { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer__col--left, .footer__col--right { text-align: center; }
  .footerslot--left { justify-content: center; }
  .footer__bar { justify-content: center; text-align: center; }
  .socials { margin-left: 0; }
  .section { padding: 40px 0; }
  .panel { padding: 18px; }
}

/* =========================================================================
   Messages — the customer/shop conversation
   ========================================================================= */

/* The unread count beside a navigation link. */
.nav__badge {
  display: inline-block; min-width: 17px; margin-left: 6px; padding: 1px 5px;
  font-size: 10.5px; font-weight: 700; line-height: 15px; text-align: center;
  color: #fff; background: var(--accent); border-radius: 999px; vertical-align: 1px;
}

.chat { display: flex; flex-direction: column; gap: 12px; }

.chat__earlier { text-align: center; }

/* The conversation scrolls inside itself, so the compose box stays put while
   a long history is read. */
.chat__log {
  display: flex; flex-direction: column; gap: 12px;
  height: 54vh; min-height: 300px; max-height: 620px; overflow-y: auto;
  padding: 16px; scroll-behavior: smooth;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.chat__empty {
  margin: auto; max-width: 32ch; text-align: center;
  font-size: 13px; color: var(--text-faint);
}

.chat__msg {
  max-width: 78%; padding: 9px 13px 10px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.6;
  border: 1px solid var(--line); background: var(--surface-2);
}
/* Yours on the right, theirs on the left — the usual reading of a chat. */
.chat__msg--mine {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: var(--accent-dim); border-color: rgba(224, 86, 60, .34);
}
.chat__msg--theirs { align-self: flex-start; border-bottom-left-radius: 5px; }

.chat__meta {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px;
  font-size: 11px; color: var(--text-faint);
}
.chat__who { font-weight: 600; color: var(--text-dim); }
.chat__body { color: var(--text); overflow-wrap: anywhere; }

.chat__shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat__shots a { display: block; width: 108px; height: 108px; }
.chat__shots img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.chat__shots a:hover img { border-color: var(--accent-hi); }
/* A lone photo is usually the point of the message, so give it room. */
.chat__shots:has(a:only-child) a { width: 200px; height: auto; }
.chat__shots:has(a:only-child) img { height: auto; max-height: 240px; }

/* ---- writing one --------------------------------------------------------- */
.chat__compose { display: flex; flex-direction: column; gap: 10px; }
.chat__input { width: 100%; min-height: 62px; resize: none; line-height: 1.6; }
.chat__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat__hint { flex: 1; min-width: 120px; font-size: 11.5px; color: var(--text-faint); }

.chat__clip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  height: 32px; padding: 0 11px; font-size: 12.5px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}
.chat__clip:hover { color: var(--text); border-color: var(--accent-hi); }
.chat__clip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chat__clip:focus-within { border-color: var(--accent-hi); }

/* ---- the admin's view ---------------------------------------------------- */
.chat__orders { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__order {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; font-size: 12.5px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}
.chat__order:hover { border-color: var(--accent-hi); color: var(--text); }
/* A conversation with something new in it should be findable at a glance. */
.adminrow.is-unread { border-left: 3px solid var(--accent); }

@media (max-width: 640px) {
  .chat__msg { max-width: 88%; }
  .chat__log { height: 60vh; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat__log { scroll-behavior: auto; }
}
