/* ==========================================================================
   Hair by Nay
   Black on white. Serif display, clean sans UI, thin rules, generous space.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-soft: #3d3833;
  --muted: #8a837c;
  --faint: #b5aea6;
  --line: #e8e4de;
  --line-strong: #d6d0c8;
  --paper: #ffffff;
  --paper-warm: #faf9f7;
  --paper-deep: #f4f2ef;
  --accent: #111111;
  --error: #a3342b;
  --success: #2f6b46;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --- Typography ---------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

.script {
  font-family: var(--serif);
  font-style: italic;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --- Layout -------------------------------------------------------------- */

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

.wrap--narrow { max-width: 780px; }
.wrap--prose  { max-width: 680px; }

section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--warm  { background: var(--paper-warm); }
.section--deep  { background: var(--paper-deep); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.divider-mark {
  width: 34px;
  height: 1px;
  background: var(--ink);
  margin: 1.4rem auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.2s;
  text-align: center;
}

.btn:hover { background: #000; border-color: #000; }

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

.btn--block { width: 100%; }
.btn--sm { padding: 11px 22px; font-size: 0.66rem; }
.btn--lg { padding: 18px 44px; }

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

.link-underline {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.link-underline:hover { border-color: var(--ink); }

.text-link {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  display: inline-block;
  transition: opacity 0.3s;
}
.text-link:hover { opacity: 0.55; }

/* --- Announcement bar ---------------------------------------------------- */

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  padding: 11px var(--gutter);
}

/* --- Header -------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding-block: 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-weight: 500;
}

.brand__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav--right { justify-content: flex-end; }

.nav a {
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s var(--ease);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--ink); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0;
  line-height: 1;
  transform: scale(0);
  transition: transform 0.28s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(84vh, 760px);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px);
}

.hero__title {
  margin-bottom: 0.35em;
}

.hero__title em {
  font-style: italic;
  display: block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}

.hero__media {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

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

.hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Product grid -------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(26px, 3.4vw, 46px);
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__media img { transform: scale(1.045); }

.card__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  padding: 6px 11px;
  z-index: 2;
}

.card__body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__name {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.card__tagline {
  font-size: 0.62rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__short {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.68;
  margin-bottom: 16px;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--serif);
  font-size: 1.22rem;
}

.price__was {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--faint);
  text-decoration: line-through;
  margin-left: 8px;
}

.card__add {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 3px;
  font-size: 0.66rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
}
.card__add:hover { opacity: 0.55; }
.card__add.is-added { border-color: var(--success); color: var(--success); }

/* --- Filter bar ---------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  padding-bottom: 44px;
}

.filters a {
  font-size: 0.68rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.filters a.is-active { color: var(--ink); border-color: var(--ink); }
.filters a:hover { color: var(--ink); }

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

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.pdp__media {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }

.pdp__title { margin-bottom: 0.15em; }

.pdp__price {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 1.1rem 0 1.4rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.6rem 0;
}

.badge {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  padding: 6px 12px;
}

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
}

.qty button {
  width: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.25s;
}
.qty button:hover { background: var(--paper-warm); }

.qty input {
  width: 52px;
  text-align: center;
  border: 0;
  border-inline: 1px solid var(--line);
  background: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__buy {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 1.8rem 0 1rem;
  flex-wrap: wrap;
}
.pdp__buy .btn { flex: 1; min-width: 190px; }

.spec {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 30px;
}

.spec h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.spec ol,
.spec ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.spec li { margin-bottom: 8px; }
.spec li::marker { color: var(--faint); }

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

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-line__media {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  overflow: hidden;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-line__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.cart-line__meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.cart-line__remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  margin-left: 16px;
}
.cart-line__remove:hover { color: var(--error); border-color: var(--error); }

.cart-line__price {
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: right;
  white-space: nowrap;
}

.summary {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper-warm);
  position: sticky;
  top: 110px;
}

.summary h3 {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.summary__row--total {
  border-top: 1px solid var(--ink);
  margin-top: 12px;
  padding-top: 16px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.summary__note {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.freeship-bar {
  margin: 16px 0 4px;
}
.freeship-bar__track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.freeship-bar__fill {
  height: 100%;
  background: var(--ink);
  width: 0;
  transition: width 0.6s var(--ease);
}
.freeship-bar__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  padding: clamp(50px, 9vw, 100px) 20px;
  border: 1px solid var(--line);
}

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

.field { margin-bottom: 20px; }

.field label,
.field-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { resize: vertical; min-height: 120px; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }

.field__error {
  display: block;
  color: var(--error);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 6px;
}

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

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* --- Radio cards (delivery options) -------------------------------------- */

.choice {
  display: block;
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--paper-warm); }

.choice__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.choice__label {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}

.choice__price {
  font-family: var(--serif);
  font-size: 1.02rem;
  white-space: nowrap;
}

.choice__blurb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}

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

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.checkout-block { margin-bottom: 44px; }

.checkout-block__title {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.checkout-block__num { color: var(--faint); }

.mini-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  padding: 8px 0;
  color: var(--ink-soft);
}
.mini-line__qty { color: var(--faint); }

/* --- Payment marks ------------------------------------------------------- */

.paymarks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.paymark {
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  white-space: nowrap;
}

.secure-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
}
.secure-note svg { flex-shrink: 0; margin-top: 3px; }

/* --- Alerts -------------------------------------------------------------- */

.alert {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--ink);
  padding: 15px 18px;
  font-size: 0.88rem;
  margin-bottom: 26px;
  background: var(--paper-warm);
}
.alert--error { border-left-color: var(--error); color: var(--error); }
.alert--success { border-left-color: var(--success); color: var(--success); }

/* --- Order tracking timeline --------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 32px 38px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.timeline li.is-done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.is-done { border-left-color: var(--ink); }

.timeline li.is-current::before {
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.1);
}

.timeline__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.timeline li.is-done .timeline__label { color: var(--ink); }

.timeline__blurb { font-size: 0.86rem; color: var(--muted); }

.status-pill {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 5px 13px;
  font-size: 0.6rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.status-pill--muted { border-color: var(--line-strong); color: var(--muted); }
.status-pill--good { border-color: var(--success); color: var(--success); }
.status-pill--bad { border-color: var(--error); color: var(--error); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}

.detail-grid dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-grid dd { margin: 0; font-size: 0.94rem; color: var(--ink); }

/* --- Editorial blocks ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2vw, 28px);
  text-align: center;
}

.value__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.value__title {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value__text { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(46px, 6vw, 74px) 30px;
  background: var(--paper);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: 44px;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 16px;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }

.footer a,
.footer p {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s;
}
.footer a:hover { color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--faint);
}

.footer__bottom a { font-size: 0.72rem; }

/* --- Toast --------------------------------------------------------------- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 15px 22px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.is-visible { transform: translateY(0); }
.toast a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); white-space: nowrap; }

/* --- Redirect / pay page ------------------------------------------------- */

.redirect-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 26px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Reveal on scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .masthead__inner { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .nav--left { display: none; }
  .burger { display: block; }
  .brand { justify-self: center; }
  .brand__name { font-size: 1.3rem; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 3; order: -1; }

  .pdp,
  .cart-layout,
  .checkout-layout,
  .split { grid-template-columns: 1fr; }

  .pdp__media,
  .summary { position: static; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid--3,
  .grid--4,
  .grid--2 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line__price { grid-column: 2; text-align: left; }
  .toast { left: 20px; right: 20px; justify-content: space-between; }
}

/* --- Admin --------------------------------------------------------------- */

.admin-bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 66px;
  padding-block: 12px;
}

.admin-bar__brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
}
.admin-bar__brand em { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }

.admin-bar__tag {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  margin-left: 14px;
  padding-left: 14px;
}

.admin-h {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 44px 0 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat { background: var(--paper); padding: 24px 22px; }

.stat__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

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

.admin-table th {
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table tbody tr:hover { background: var(--paper-warm); }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* --- Print (packing slip) ------------------------------------------------ */

@media print {
  .masthead,
  .footer,
  .announce,
  .no-print { display: none !important; }
  body { font-size: 12px; }
  section { padding-block: 0; }
}
