/* ==========================================================================
   Bosko Distro — design system lifted from the Hazecraft concept boards.
   Palette, type scale, thick borders and hard offset shadows.
   ========================================================================== */

:root {
  --cream: #fbf3e4;
  --ink: #2b1b12;
  --ink-soft: #4a3123;
  --rust: #b4462a;
  --rust-deep: #8e3620;
  --gold: #e8b33c;
  --card: #ffffff;
  --sand: #f3e4c8;
  --muted: #6b5647;
  --faint: #8e7a69;
  --line: #e0cda8;
  --pale: #c4b4a6;

  --display: 'Alfa Slab One', Rockwell, 'Roboto Slab', Georgia, serif;
  --body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --pad: clamp(16px, 4.5vw, 36px);
  --wrap: 1240px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Several components set `display` on a class, which would otherwise beat the
   [hidden] attribute the cart and checkout use to toggle sections. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--rust);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: var(--cream);
}

/* --- Buttons and pills ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 15px 26px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--gold);
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--rust {
  background: var(--rust);
  color: var(--cream);
}

.btn--rust:hover {
  color: var(--cream);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--ink:hover {
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn--ghost:hover {
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--cream);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 11px;
  border-width: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
}

.pill--gold {
  background: var(--gold);
}

.pill--rust {
  background: var(--rust);
  color: var(--cream);
}

.pill--ink {
  background: var(--ink);
  color: var(--gold);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

/* --- Header --------------------------------------------------------------- */

.ticker {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px var(--pad);
  text-align: center;
  font-weight: 500;
}

.masthead {
  background: var(--gold);
  border-bottom: 4px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px var(--pad);
  max-width: var(--wrap);
  margin-inline: auto;
}

/* The brand wordmark is orange script on transparency — it needs a dark ground
   to stay legible, so in the masthead it sits on an ink plaque. On surfaces that
   are already dark (footer) `.logo--bare` drops the plaque. */
.logo {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 9px 18px;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: clamp(38px, 6vw, 52px);
  width: auto;
  max-width: none;
}

.logo--bare {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.logo--bare img {
  height: clamp(44px, 7vw, 60px);
}

.nav {
  display: flex;
  gap: clamp(10px, 1.5vw, 18px);
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a[aria-current='page'] {
  border-bottom: 3px solid var(--rust);
}

.masthead__cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 10px 15px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

/* Three bars drawn from one element so the button needs no icon font. */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav__head,
.nav__close,
.nav-scrim {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    order: 1;
  }

  .masthead__inner {
    justify-content: space-between;
    gap: 10px;
  }

  .logo {
    order: 2;
  }

  .masthead__cta {
    order: 3;
  }

  .bag {
    padding: 8px 13px;
  }

  .bag__label {
    display: none;
  }

  /* Three items have to share one row: keep the logo readable and let the
     other two shrink to icons rather than overflowing the viewport. */
  .logo {
    padding: 6px 12px;
    min-width: 0;
  }

  .logo img {
    height: clamp(30px, 8vw, 44px);
  }
}

@media (max-width: 600px) {
  .nav-toggle__text {
    display: none;
  }

  .nav-toggle {
    padding: 11px 13px;
  }
}

@media (max-width: 860px) {
  /* Slide-in panel from the left rather than a dropdown that pushed the
     masthead wider than the viewport. */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(300px, 84vw);
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-right: 4px solid var(--ink);
    padding: 0 0 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    white-space: normal;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--gold);
    border-bottom: 4px solid var(--ink);
    position: sticky;
    top: 0;
  }

  .nav__head span {
    font-family: var(--display);
    font-size: 20px;
  }

  .nav__close {
    display: block;
    background: var(--ink);
    color: var(--cream);
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav a {
    padding: 15px 20px;
    border-bottom: 2px solid rgba(43, 27, 18, 0.12);
    font-weight: 500;
  }

  .nav a[aria-current='page'] {
    background: var(--sand);
    border-bottom-color: var(--ink);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(43, 27, 18, 0.55);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .nav-scrim.is-open {
    opacity: 1;
  }
}

.marquee {
  background: var(--ink);
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(11px, 1.6vw, 15px);
  letter-spacing: 0.24em;
  padding: 13px var(--pad);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.7;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  background: var(--rust);
  color: var(--cream);
  border-bottom: 4px solid var(--ink);
  padding: clamp(48px, 7vw, 76px) var(--pad);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(251, 243, 228, 0.07) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  position: relative;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.95;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

/* Brand links inside the hero copy need to read as links against the rust. */
.hero__lede a {
  color: var(--gold);
  border-bottom: 2px solid rgba(232, 179, 60, 0.5);
  font-weight: 500;
}

.hero__lede a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* The second paragraph sits under the buttons, so it reads as supporting
   detail rather than competing with the offer above them. */
.hero__lede--more {
  font-size: 15px;
  color: #efd4c2;
}

.hero__lede {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: #f6dfcf;
}

/* Phones get the headline, the promise and the two buttons in the first
   screenful instead of a picture. See build.js: the image is not fetched at
   this width either, so hiding it costs nothing to load. */
@media (max-width: 820px) {
  .hero__art {
    display: none;
  }
}

.hero__art {
  position: relative;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--rust-deep);
  overflow: hidden;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__badge {
  display: inline-flex;
  background: var(--gold);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Page furniture ------------------------------------------------------- */

.section {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section--tight {
  padding: clamp(28px, 4vw, 44px) 0;
}

.section--gold {
  background: var(--gold);
  border-block: 4px solid var(--ink);
}

.section--sand {
  background: var(--sand);
  border-block: 4px solid var(--ink);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}

.section__head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 18px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li::after {
  content: '/';
  margin-left: 8px;
  color: var(--line);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--faint);
}

.breadcrumbs [aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

.page-head {
  background: var(--rust);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 38px) clamp(22px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  margin-top: 18px;
}

.page-head__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 56ch;
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.page-head p {
  font-size: 15px;
  line-height: 1.7;
  color: #f6dfcf;
}

.page-head__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-head__meta .pill {
  border-width: 3px;
  padding: 10px 18px;
}

/* --- Product grid --------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* Two across on phones instead of one tall column, so a 12-product row is
   scannable without endless scrolling. */
@media (max-width: 620px) {
  .grid--2up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .grid--2up .card__body {
    padding: 12px;
    gap: 6px;
  }

  .grid--2up .card__title {
    font-size: 15px;
  }

  .grid--2up .card__cat {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  /* Price and button will not sit side by side at this width. */
  .grid--2up .card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }

  .grid--2up .card__foot .price {
    font-size: 17px;
  }

  .grid--2up .card__foot .btn,
  .grid--2up .card__foot > span {
    width: 100%;
    justify-content: center;
  }

  .grid--2up .card__opts {
    display: none;
  }
}

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__flag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--rust);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  pointer-events: none;
}

.card__flag--gold {
  background: var(--gold);
  color: var(--ink);
}

.card__flag--out {
  background: var(--ink);
  color: var(--pale);
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.card__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
}

.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card {
  position: relative;
}

.card__blurb {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.card__opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card__opts span {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
}

.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}

.price {
  font-family: var(--display);
  font-size: 19px;
  color: var(--rust);
}

.price--lg {
  font-size: clamp(28px, 4vw, 36px);
}

.price small {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Shop layout ---------------------------------------------------------- */

.shop {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 34px;
  align-items: flex-start;
}

.shop__side {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 110px;
}

.shop__main {
  flex: 4 1 460px;
  min-width: 0;
}

@media (max-width: 900px) {
  .shop__side {
    position: static;
    flex-basis: 100%;
  }
}

.panel {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel__title {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel--gold {
  background: var(--gold);
}

.panel--ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}

.panel--ink .panel__title {
  color: var(--gold);
  font-size: 20px;
}

.facet {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facet label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  cursor: pointer;
}

.facet input {
  width: 16px;
  height: 16px;
  accent-color: var(--rust);
  flex-shrink: 0;
  margin: 0;
}

.facet .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--faint);
}

.shop__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  padding: 4px 6px 4px 16px;
}

.field input,
.field select {
  border: none;
  background: transparent;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  padding: 9px 8px;
  min-width: 0;
}

.field input:focus,
.field select:focus {
  outline: none;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.result-count {
  font-size: 13px;
  color: var(--muted);
}

.empty {
  border: 3px dashed var(--line);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* --- Product detail ------------------------------------------------------- */

.pdp {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 46px);
  margin-top: 24px;
}

.pdp__media {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: 110px;
}

@media (max-width: 820px) {
  .pdp__media {
    position: static;
  }
}

.pdp__stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--sand);
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pdp__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--card);
}

.pdp__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp__thumbs button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--sand);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.pdp__thumbs button[aria-current='true'] {
  border-color: var(--rust);
  box-shadow: 3px 3px 0 var(--rust);
}

.pdp__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--card);
}

.pdp__info {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.pdp__info h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1;
}

.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  margin-top: 18px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 10px;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose a {
  color: var(--rust);
  border-bottom: 2px solid var(--line);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options__label {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.options__set {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.options__set button {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--card);
  color: var(--ink);
}

.options__set button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--cream);
}

/* Priced options. A label on its own does not let anyone choose between 25 and
   100 pieces, so each button carries what it costs and — for a case — what
   that works out at per unit, which is the figure a trade buyer compares. */
.options__set--priced {
  gap: 12px;
}

.options__set--priced button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 108px;
  padding: 10px 16px;
  border-radius: 14px;
  line-height: 1.15;
  text-align: left;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.options__set--priced button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.options__set--priced button[aria-pressed='true'] {
  box-shadow: 3px 3px 0 var(--rust);
}

.opt__label {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.opt__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--rust);
}

.options__set--priced button[aria-pressed='true'] .opt__price {
  color: var(--gold);
}

.opt__price em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.options__set--priced button[aria-pressed='true'] .opt__price em {
  color: rgba(251, 243, 228, 0.72);
}

.specs {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 2px solid #f0e3c9;
  font-size: 14px;
}

.specs div:last-child {
  border-bottom: none;
}

.specs dt {
  color: var(--muted);
  margin: 0;
}

.specs dd {
  font-weight: 700;
  text-align: right;
  margin: 0;
}

.notice {
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--gold);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notice strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

/* --- Stat tiles, FAQ, contact -------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}

.tile__n {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--rust);
  line-height: 1;
}

.tile__t {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 74ch;
}

.faq details {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.faq summary {
  font-family: var(--display);
  font-size: 17px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 24px;
  color: var(--rust);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-top: 2px solid var(--line);
  padding-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 2px solid rgba(43, 27, 18, 0.18);
  padding-bottom: 10px;
  font-size: 15px;
}

.contact-list .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-list .v {
  font-weight: 700;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(40px, 5vw, 56px) var(--pad) 28px;
  border-top: 4px solid var(--ink);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 32px;
}

.footer h2 {
  font-size: 11px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.footer a {
  color: var(--cream);
}

.footer a:hover {
  color: var(--gold);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand .logo img {
  height: 68px;
}

.footer__brand p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--pale);
  max-width: 36ch;
}

.footer__legal {
  max-width: var(--wrap);
  margin: 34px auto 0;
  border-top: 2px solid #4a3123;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--pale);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Age gate ------------------------------------------------------------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--rust);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px var(--pad);
  overflow-y: auto;
}

.age-gate.is-open {
  display: flex;
}

.age-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(251, 243, 228, 0.07) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.age-gate__card .logo {
  align-self: center;
}

.age-gate__card .logo img {
  height: 58px;
}

.age-gate__card {
  position: relative;
  max-width: 620px;
  width: 100%;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  box-shadow: 12px 12px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.age-gate__card h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1;
}

.age-gate__card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.age-gate__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.age-gate__actions .btn {
  flex: 1;
  min-width: 160px;
}

.age-gate__remember input {
  accent-color: var(--rust);
  width: 16px;
  height: 16px;
  margin: 0;
}

.age-gate__remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --- Bag button ----------------------------------------------------------- */

.bag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bag:hover {
  color: var(--cream);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--rust);
}

/* Inline SVG cart, stroked rather than filled so it matches the thick-line
   weight of the buttons around it and inherits the button's colour. */
.bag__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Nudge the count away from the icon when the word is hidden on mobile. */
@media (max-width: 860px) {
  .bag__icon {
    width: 20px;
    height: 20px;
  }
}

.bag__count {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
}

.bag[data-empty='true'] .bag__count {
  background: var(--faint);
  color: var(--cream);
}

/* --- Buybox on the product page ------------------------------------------ */

.buybox {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.buybox__add {
  flex: 1;
  min-width: 220px;
}

.btn.is-added {
  background: var(--ink);
  color: var(--gold);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  flex-shrink: 0;
}

.qty button {
  border: none;
  background: transparent;
  padding: 10px 15px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.qty button:hover {
  background: var(--sand);
}

.qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.qty input {
  width: 52px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input:focus {
  outline: none;
}

.qty--lg button {
  padding: 13px 18px;
  font-size: 19px;
}

/* --- Cart / checkout layout ---------------------------------------------- */

.cart-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.cart-main {
  flex: 2 1 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.cart-summary {
  flex: 1 1 300px;
  position: sticky;
  top: 120px;
}

@media (max-width: 900px) {
  .cart-summary {
    position: static;
  }
}

.ship-meter {
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}

.ship-meter__track {
  flex: 1;
  min-width: 160px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}

.ship-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rust);
  transition: width 0.25s ease;
}

/* --- Cart lines ----------------------------------------------------------- */

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-line {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cart-line__media {
  width: 96px;
  height: 96px;
  background: var(--sand);
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__info {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cart-line__name {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.2;
}

.cart-line__opt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}

.cart-line__unit {
  font-size: 13px;
  color: var(--muted);
}

.cart-line__remove {
  align-self: flex-start;
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  cursor: pointer;
}

.cart-line__remove:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.cart-line__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-left: auto;
}

.cart-line__total {
  font-family: var(--display);
  font-size: 21px;
}

/* --- Summary panel -------------------------------------------------------- */

.summary-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.summary-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.summary-rows dt {
  color: var(--pale);
  margin: 0;
}

.summary-rows dd {
  margin: 0;
  color: var(--cream);
  font-weight: 500;
}

.summary-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gold);
  margin: 0;
}

.summary-total {
  border-top: 2px solid #4a3123;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-size: 18px;
}

.summary-total span:last-child {
  font-size: 30px;
  color: var(--gold);
}

.summary-fine {
  font-size: 11px;
  line-height: 1.8;
  color: var(--pale);
  margin: 0;
}

/* --- Checkout ------------------------------------------------------------- */

.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 2px solid #4a3123;
  margin-bottom: 4px;
  padding-bottom: 14px;
}

.checkout-line {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-line__media {
  width: 48px;
  height: 48px;
  background: #4a3123;
  border: 2px solid var(--cream);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-line__info {
  flex: 1 1 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.checkout-line__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-line__opt {
  font-size: 11px;
  color: var(--pale);
}

.checkout-line__total {
  font-family: var(--display);
  font-size: 15px;
  flex-shrink: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input--wide {
  grid-column: 1 / -1;
}

.input > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.input > span em {
  font-style: normal;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
}

.input input {
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  width: 100%;
}

.input input::placeholder {
  color: #9a8875;
}

.input input:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 3px 3px 0 var(--rust);
}

.input input:user-invalid {
  border-color: var(--rust);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--rust);
  flex-shrink: 0;
  margin: 2px 0 0;
}

.warn {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
}

.sent {
  margin: 0;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.order-preview {
  border: 3px dashed var(--line);
  border-radius: 14px;
  padding: 0 16px;
}

.order-preview summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 0;
}

.order-preview pre {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Choice rows (shipping + payment) ------------------------------------ */

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice {
  position: relative;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  padding: 16px 18px 16px 46px;
  cursor: pointer;
  transition: box-shadow 0.12s ease, background 0.12s ease;
}

.choice:hover {
  background: #fffdf7;
}

.choice.is-on {
  background: var(--sand);
  box-shadow: 5px 5px 0 var(--rust);
}

/* Custom radio so the control matches the thick-border language. */
.choice input[type='radio'] {
  position: absolute;
  left: 17px;
  top: 20px;
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
}

.choice input[type='radio']:checked {
  border-color: var(--rust);
  background: radial-gradient(circle, var(--rust) 0 42%, var(--cream) 46% 100%);
}

.choice input[type='radio']:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

.choice__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.choice__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.choice__name em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.choice__badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.choice__price {
  font-family: var(--display);
  font-size: 18px;
  color: var(--rust);
}

.choice__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Details only unfold for the selected method. */
.choice__more {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.choice.is-on .choice__more {
  display: flex;
}

.paydetail {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
}

.paydetail div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #4a3123;
}

.paydetail div:last-child {
  border-bottom: none;
}

.paydetail span {
  font-size: 13px;
  color: var(--pale);
}

.paydetail strong {
  font-size: 16px;
  color: var(--cream);
  text-align: right;
  word-break: break-word;
}

.paynote {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --- Receipt upload ------------------------------------------------------- */

.receipt {
  border-top: 2px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt__label {
  font-size: 14px;
  font-weight: 700;
}

.receipt__label em {
  font-style: normal;
  color: var(--rust);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
}

.receipt__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.receipt__drop {
  margin-top: 6px;
  border: 3px dashed var(--line);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  background: var(--cream);
  word-break: break-word;
}

.receipt__drop:hover {
  border-color: var(--rust);
  color: var(--ink);
}

.receipt__drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.receipt.is-missing .receipt__drop {
  border-color: var(--rust);
  border-style: solid;
  color: var(--rust);
}

/* --- Order confirmation --------------------------------------------------- */

.done {
  border-width: 3px;
  box-shadow: var(--shadow-lg);
  gap: 14px;
}

.done .panel__title {
  font-size: 26px;
  color: var(--rust);
}

.done__ref {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.done__ref strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 9px;
}

.done__msg,
.done__pay {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* --- Toast ---------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 190;
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 5px 5px 0 var(--rust);
  font-size: 14px;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__tick {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast__msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast__action {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.toast__action:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* --- Side cart drawer ----------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(43, 27, 18, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  /* Always leave a strip of the page behind it: that is what tells a customer
     this is a panel over their shopping rather than a new screen, and it gives
     them somewhere to tap to dismiss. */
  width: min(420px, 88vw);
  background: var(--cream);
  border-left: 4px solid var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

/* The minimum is the one thing standing between a full cart and an order, so
   it is stated at full contrast rather than as a footnote. */
.drawer__min {
  margin: 0;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--gold);
  border-bottom: 4px solid var(--ink);
}

.drawer__head h2 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0;
}

.drawer__head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.drawer__close {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.drawer__close:hover {
  background: var(--rust);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}

.drawer__foot {
  border-top: 4px solid var(--ink);
  background: var(--sand);
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-size: 18px;
}

.drawer__total span:last-child {
  font-size: 26px;
  color: var(--rust);
}

.ship-meter--compact {
  padding: 11px 14px;
  font-size: 12px;
  border-radius: 14px;
  gap: 12px;
}

/* Compact cart lines for the drawer's narrower column. */
.cart-lines--compact {
  gap: 14px;
}

.cart-lines--compact .cart-line {
  padding: 12px;
  gap: 12px;
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.cart-lines--compact .cart-line__media {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border-width: 2px;
}

.cart-lines--compact .cart-line__name {
  font-size: 16px;
}

.cart-lines--compact .cart-line__actions {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-left: 0;
}

.cart-lines--compact .qty button {
  padding: 7px 12px;
  font-size: 15px;
}

/* Add-to-cart on a grid card must sit above the card's full-area title link. */
.card__add {
  position: relative;
  z-index: 1;
}

/* --- Admin ---------------------------------------------------------------- */

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.admin-head code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

#admin-forms {
  flex: 2 1 460px;
  min-width: 0;
}

.admin-side {
  flex: 1 1 280px;
  position: sticky;
  top: 120px;
}

@media (max-width: 900px) {
  .admin-side {
    position: static;
  }
}

.admin-side code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold);
  word-break: break-all;
}

.admin-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.admin-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
  align-items: end;
}

.admin-row--pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
}

@media (max-width: 620px) {
  .admin-row--pair {
    grid-template-columns: 1fr;
  }
}

.admin-x {
  border: 3px solid var(--ink);
  background: var(--cream);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.admin-x:hover {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}

.admin-method {
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}

.admin-method.is-off {
  opacity: 0.55;
  background: var(--sand);
}

.admin-method__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-method__head h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--rust);
  margin: 0;
}

.admin-details {
  border-top: 2px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.admin-details__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.admin-details .admin-row--pair {
  width: 100%;
}

/* Values still holding a SET- placeholder must be impossible to miss. */
.input input.is-todo {
  border-color: var(--rust);
  background: #fdeee9;
  color: var(--rust);
  font-weight: 700;
}

/* --- Homepage editorial blocks -------------------------------------------- */

.home-block {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.home-block--split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 820px) {
  .home-block--split {
    grid-template-columns: 1fr;
  }
}

.home-figure {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}

.home-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-brands li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  font-size: 15px;
}

.home-brands a {
  font-weight: 700;
  color: var(--rust);
  border-bottom: 2px solid transparent;
}

.home-brands a:hover {
  border-color: var(--rust);
}

.home-brands span {
  font-size: 13px;
  color: var(--muted);
}

.home-brands__soon {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--sand);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--faint);
}

/* --- Brand landing pages -------------------------------------------------- */

.brand-buy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Alternate which side the photo sits on so five stacked blocks do not read
   as one repeated row. */
.brand-buy--flip {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
}

@media (max-width: 820px) {
  .brand-buy,
  .brand-buy--flip {
    grid-template-columns: 1fr;
  }
  /* Photo first on narrow screens regardless of desktop order. */
  .brand-buy--flip .brand-buy__media {
    order: -1;
  }
}

.brand-buy__media {
  position: sticky;
  top: 120px;
}

@media (max-width: 820px) {
  .brand-buy__media {
    position: static;
  }
}

.brand-lead {
  font-size: 16px !important;
  font-weight: 500;
  color: var(--ink) !important;
}

.brand-buy__info h3 {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  margin-top: 8px;
}

.brand-buy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.brand-buy__media {
  display: block;
  border: 3px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.brand-buy__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--card);
}

.brand-buy__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-buy__info h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.05;
}

.brand-buy__info p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 58ch;
}

.brand-buy__info .price--lg {
  color: var(--rust);
}

/* Blocked actions stay visible but clearly inert, so the reason (the note
   above them) is what the eye lands on. */
.btn.is-blocked,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}

/* The checkout button is blocked, not decoration: it is the thing telling the
   customer what to do next, so it stays legible instead of fading out. Muted
   fill and a dashed edge say "not yet" without dimming the words. */
#drawer-checkout.is-blocked,
#co-place:disabled {
  opacity: 1;
  background: #cfa98f;
  color: var(--ink);
  border-style: dashed;
  box-shadow: none;
}

.btn.is-blocked:hover,
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* --- Category tiles ------------------------------------------------------- */

.cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

/* Shorter than a product card — there is no blurb or option row to hold. */
.cat-card .card__media {
  aspect-ratio: 4 / 3;
}

.cat-card .card__body {
  gap: 10px;
}

.cat-card .card__title {
  font-size: 17px;
}

.cat-card .card__flag--gold {
  min-width: 26px;
  text-align: center;
}

@media (max-width: 620px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cat-card .card__title {
    font-size: 14px;
  }
}

/* --- Product long-form copy ----------------------------------------------- */

.pdp-copy {
  max-width: 74ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 40px);
}

.pdp-copy__block h2 {
  font-size: clamp(21px, 2.8vw, 27px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.pdp-copy__block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.pdp-copy__block p:last-child {
  margin-bottom: 0;
}

.pdp-copy__block a {
  color: var(--rust);
  border-bottom: 2px solid var(--line);
  font-weight: 500;
}

.pdp-copy__block a:hover {
  border-color: var(--rust);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #f0e3c9;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  font-weight: 500;
  color: var(--muted);
  width: 42%;
}

.spec-table td {
  font-weight: 700;
}

@media (max-width: 520px) {
  .spec-table {
    font-size: 14px;
  }
  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
  }
}

/* --- Live chat ------------------------------------------------------------ */

.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--rust);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
}

.chat-launcher:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.chat-launcher svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.chat-launcher__badge {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 6px;
}

.chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 71;
  width: min(360px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
}

.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gold);
  border-bottom: 4px solid var(--ink);
}

.chat__head strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.chat__head span {
  font-size: 11px;
  color: var(--ink-soft);
}

.chat__close {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.chat__log {
  flex: 1 1 auto;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* A flex child will not shrink below its content unless min-height is 0.
     Without this the log holds the panel open and pushes the composer off
     the bottom of the screen. */
  min-height: 0;
}

/* The composer and the lead form must always stay in view. */
.chat__form,
.chat__lead,
.chat__head,
.chat__status {
  flex: 0 0 auto;
}

.chat__msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 84%;
}

.chat__who {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.chat__text {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat__msg--shop .chat__text {
  background: var(--card);
  border-bottom-left-radius: 4px;
}

.chat__msg--you {
  align-self: flex-end;
  align-items: flex-end;
}

.chat__msg--you .chat__text {
  background: var(--rust);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}

/* System notes are the widget talking, not the shop — kept visually quieter. */
.chat__msg--sys {
  align-self: center;
  max-width: 100%;
}

.chat__msg--sys .chat__text {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.chat__status {
  margin: 0;
  padding: 8px 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--sand);
  border-top: 2px solid var(--line);
}

.chat__lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-top: 3px solid var(--ink);
  background: var(--sand);
}

.chat__lead .input span {
  font-size: 10px;
}

.chat__lead .input input {
  padding: 9px 12px;
  font-size: 14px;
}

.chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 3px solid var(--ink);
  background: var(--card);
}

.chat__form input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 15px;
  font-family: var(--body);
  font-size: 14px;
  background: var(--cream);
  color: var(--ink);
}

.chat__form input:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.chat__send {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat__send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 520px) {
  .chat-launcher__label {
    display: none;
  }
  .chat-launcher {
    padding: 14px;
  }
  .chat {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
    height: min(540px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
  }

  /* dvh accounts for the mobile browser's collapsing toolbar, which vh does
     not — without it the composer hides behind the address bar. */
  @supports (height: 100dvh) {
    .chat {
      height: min(540px, calc(100dvh - 20px));
      max-height: calc(100dvh - 20px);
    }
  }

  .chat__lead {
    max-height: 46vh;
    overflow-y: auto;
  }
}

@media print {
  .chat,
  .chat-launcher {
    display: none !important;
  }
}

/* Unread preview — shown beside the launcher when the panel is closed, so a
   reply is noticed by someone scrolling the site rather than sitting unseen
   behind a small badge. */
.chat-peek {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 69;
  width: min(300px, calc(100vw - 36px));
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 12px 12px 14px;
  box-shadow: 6px 6px 0 var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-peek.is-open {
  opacity: 1;
  transform: translateY(0);
}

.chat-peek__open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--body);
  color: inherit;
}

.chat-peek__count {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.chat-peek__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.chat-peek__close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
}

.chat-peek__close:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  .chat-peek {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 78px;
  }
}

@media print {
  .chat-peek {
    display: none !important;
  }
}

/* --- Utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--lg {
  gap: 26px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .masthead,
  .ticker,
  .marquee,
  .age-gate,
  .footer {
    display: none !important;
  }
}
