/* =========================================================================
   CUTE AS PIE VINTIQUES
   Palette and type are taken verbatim from research/BRAND-GROUND-TRUTH.md.
   Do not introduce colours that are not on the sign.
   ========================================================================= */

:root {
  --page:    #F2EBDE;  /* page background */
  --surface: #E1D7C4;  /* sign cream — cards, panels */
  --ink:     #28281E;  /* warm near-black, NOT pure black */
  --ink-2:   #323228;
  --blue:    #4A5E70;  /* VINTIQUES blue — PRIMARY BRAND COLOR */
  --blue-2:  #6E828C;  /* bow blue — hover / secondary */
  --rule:    #BEB496;  /* warm taupe — borders, dividers */
  --sage:    #8C825A;  /* botanical accent, sparing */

  --script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --display: 'Cormorant Garamond', 'Hoefler Text', 'Baskerville', Georgia, serif;
  --body: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  --shell: 1220px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a { color: var(--blue); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - (var(--gutter) * 2), 760px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: var(--page);
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Typography: serif caps + wide tracking is the signature move ---- */

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0 0 .5em; }

.eyebrow,
.section-title,
.nav a,
.btn,
.label-caps {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: .26em;
  color: var(--blue);
  margin: 0;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--sage);
  margin: 0 0 .75rem;
}

.script { font-family: var(--script); font-weight: 400; letter-spacing: .01em; }

.lede { font-size: 1.15rem; color: var(--ink-2); }

.muted { color: #6a6653; }

/* ---------- Ornaments ----------------------------------------------------- */

.flourish { display: block; width: min(340px, 70%); margin: 1.25rem auto; opacity: .85; }
.flourish--tight { margin: .75rem auto; width: 200px; }
.sprig { display: block; width: 200px; margin: 1rem auto; opacity: .9; }
.heart-bullet { display: inline-block; width: 13px; height: 12px; vertical-align: -1px; margin-right: .5rem; }

.section-head { text-align: center; margin-bottom: 2rem; }
.section-head .flourish { margin-top: .85rem; }

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

.topbar {
  background: var(--blue);
  color: var(--page);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .66rem;
  text-align: center;
  padding: .55rem 1rem;
}
.topbar a { color: var(--page); }

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--page);
  position: sticky; top: 0; z-index: 40;
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brandmark { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brandmark img { width: 104px; height: auto; }
.brandmark__text { display: none; }
@media (min-width: 900px) {
  .brandmark__text { display: block; line-height: 1.1; }
  .brandmark__text .script { font-size: 1.5rem; color: var(--ink); display: block; }
  .brandmark__text .label-caps { font-size: .68rem; color: var(--blue); letter-spacing: .3em; }
}

.nav { display: none; gap: clamp(1rem, 2.4vw, 2.1rem); align-items: center; }
.nav a {
  font-size: .74rem; color: var(--ink); text-decoration: none; padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--rule); }
@media (min-width: 820px) { .nav { display: flex; } .nav-toggle { display: none; } }

.nav-toggle {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  background: none; border: 1px solid var(--rule); color: var(--ink);
  padding: .6rem .85rem; border-radius: 2px; cursor: pointer; min-height: 44px;
}

.cart-pill {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: var(--blue); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule); padding: .55rem .8rem; border-radius: 2px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.cart-pill:hover { background: var(--surface); }

.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--surface); }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: .95rem var(--gutter); color: var(--ink); text-decoration: none;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem;
  border-bottom: 1px solid rgba(190,180,150,.5);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .76rem; min-height: 46px; padding: .85rem 1.6rem;
  background: var(--blue); color: var(--page); border: 1px solid var(--blue);
  border-radius: 2px; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: var(--page); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--rule); }
.btn--ghost:hover { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn--wide { width: 100%; }
.btn--danger { background: var(--ink); border-color: var(--ink); }
.btn--danger:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--big { min-height: 56px; font-size: .84rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

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

.hero {
  --hero-text-measure: 46ch;
  --hero-copy-scale: 1.15;
  --hero-location-scale: .85;
  text-align: center; padding: clamp(2rem, 6vw, 4.25rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.hero__logo { width: min(460px, 82%); margin: 0 auto 1.5rem; height: auto; }
.hero__logo--wood { width: min(620px, 96%); }
.hero__title { font-family: var(--script); font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 400; margin: 0 0 .15em; line-height: 1.1; }
.hero__sub {
  font-family: var(--display); text-transform: uppercase; letter-spacing: clamp(.2em, 1.2vw, .42em);
  color: var(--blue); font-size: clamp(.85rem, 2.6vw, 1.35rem); margin: 0;
}
.hero__copy { max-width: var(--hero-text-measure); margin: 1.5rem auto 0; font-size: calc(var(--hero-copy-scale) * 1rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 1.75rem; }
.hero__location {
  --hero-location-tracking: .12em;
  /* Resolve the shared ch measure at the paragraph's font size. */
  max-width: calc(var(--hero-text-measure) * var(--hero-copy-scale) / var(--hero-location-scale));
  margin: .25em auto 0; font-size: calc(var(--hero-location-scale) * 1rem);
  letter-spacing: var(--hero-location-tracking); text-indent: var(--hero-location-tracking); color: var(--ink-2);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(2.25rem, 6vw, 3.75rem) 0;
}
.section { padding: clamp(2.25rem, 6vw, 3.75rem) 0; }

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

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__media {
  position: relative; background: var(--surface); border: 1px solid var(--rule);
  aspect-ratio: 4 / 5; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__title { font-family: var(--display); font-size: 1.02rem; line-height: 1.3; margin: .85rem 0 .25rem; }
.card:hover .card__title { color: var(--blue); }
.card__desc { font-size: .9rem; color: #6a6653; margin: 0 0 .5rem; }
.card__price { font-family: var(--display); letter-spacing: .06em; font-size: 1rem; color: var(--blue); }

/* The oval sign shape as a badge motif */
.oval-badge {
  position: absolute; top: .65rem; left: .65rem;
  background: var(--surface); color: var(--blue);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .6rem; padding: .5rem 1rem;
  border: 1px solid var(--blue); border-radius: 50% / 50%;
  box-shadow: 0 1px 0 rgba(40,40,30,.08);
}
.oval-badge--sold { color: var(--sage); border-color: var(--sage); }
.oval-badge--placeholder {
  left: auto; right: .65rem; top: .65rem;
  color: var(--sage); border-color: var(--rule); font-size: .55rem; letter-spacing: .14em;
}

.sold-veil {
  position: absolute; inset: 0; background: rgba(226,215,196,.55);
  display: grid; place-items: center;
}
.sold-veil span {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .3em; font-size: .9rem;
  color: var(--sage); border: 1px solid var(--sage); background: var(--page);
  padding: .8rem 1.8rem; border-radius: 50% / 50%;
}

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

.product { display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); }
@media (min-width: 900px) { .product { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.product__main { border: 1px solid var(--rule); background: var(--surface); }
.product__main img { width: 100%; height: auto; }
.product__thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.product__thumbs button {
  width: 74px; height: 74px; padding: 0; background: var(--surface);
  border: 1px solid var(--rule); cursor: pointer;
}
.product__thumbs button[aria-pressed="true"] { border-color: var(--blue); border-width: 2px; }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__price { font-family: var(--display); font-size: 1.7rem; color: var(--blue); letter-spacing: .04em; }

.spec-list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--rule); }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .94rem;
}
.spec-list dt, .spec-list .k { color: #6a6653; }

.notice {
  border: 1px solid var(--rule); border-left: 3px solid var(--sage);
  background: var(--surface); padding: 1rem 1.15rem; font-size: .9rem; margin: 1.25rem 0;
}
.notice > strong:first-child { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: .3rem; color: var(--sage); }
.notice--blue { border-left-color: var(--blue); }
.notice--blue > strong:first-child { color: var(--blue); }

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

.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .7rem; color: var(--blue); margin-bottom: .4rem;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1.05rem; color: var(--ink);
  background: var(--page); border: 1px solid var(--rule); border-radius: 2px;
  padding: .8rem .9rem; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 2px rgba(74,94,112,.18); }
.field .hint { font-size: .82rem; color: #6a6653; margin-top: .35rem; }
.field--row { display: grid; gap: 1.15rem; }
.field:has(.password-toggle) { position: relative; }
/* No JavaScript, no toggle: the field just stays hidden and the form still submits. */
.password-toggle { display: none; }
.js .field:has(.password-toggle) input { padding-right: 4.25rem; }
.js .password-toggle {
  display: block;
  position: absolute; right: .65rem; top: 1.8rem;
  min-height: 40px; padding: 0 .5rem;
  border: 0; background: transparent; color: var(--blue);
  font-family: var(--display); font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--rule);
  cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }

.choice {
  display: flex; gap: .85rem; align-items: flex-start;
  border: 1px solid var(--rule); background: var(--page);
  padding: 1rem; margin-bottom: .75rem; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--surface); }
.choice input { margin-top: .3rem; width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.choice__title { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .2rem; }
.choice__detail { display: block; font-size: .86rem; color: #6a6653; }
.choice__price { margin-left: auto; font-family: var(--display); color: var(--blue); white-space: nowrap; }

.panel { background: var(--surface); border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2rem); }

/* ---------- Visit / storefront ------------------------------------------ */
/* The storefront is real and public. The location is the loudest block on /visit. */

.visit-feature {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem); min-width: 0;
}
@media (min-width: 900px) {
  .visit-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
}

/* Hero-sized storefront photo slot (3:2), and its in-palette placeholder. */
.storefront-photo {
  margin: 0; min-width: 0; aspect-ratio: 3 / 2;
  border: 1px solid var(--rule); background: var(--surface); overflow: hidden;
}
.storefront-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.storefront-photo--placeholder {
  display: grid; place-items: center; padding: clamp(.9rem, 3vw, 1.75rem);
  background:
    linear-gradient(rgba(225,215,196,.84), rgba(225,215,196,.84)),
    repeating-linear-gradient(45deg, var(--page) 0, var(--page) 18px, var(--surface) 18px, var(--surface) 36px);
}
.storefront-photo__frame {
  width: 100%; height: 100%; max-width: 520px; min-width: 0; padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--blue); outline: 1px solid var(--rule); outline-offset: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--blue); gap: .5rem;
}
.storefront-photo__frame strong {
  font-family: var(--script); font-size: clamp(1.7rem, 5.5vw, 3rem); font-weight: 400; line-height: 1.1;
}
.storefront-photo__eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .25em;
  font-size: .68rem; color: var(--sage);
}
.storefront-photo__ask { max-width: 32ch; color: #6a6653; font-size: .86rem; }

.visit-feature__details { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.visit-feature__title { font-size: clamp(1.9rem, 4.6vw, 2.75rem); line-height: 1.1; margin-bottom: .45em; overflow-wrap: anywhere; }

/* The address itself — display type, large, the thing the eye lands on. */
.address-block {
  font-style: normal; font-family: var(--display); color: var(--blue);
  border-block: 1px solid var(--rule); padding: 1.1rem 0; margin: .25rem 0 1.25rem;
  display: flex; flex-direction: column; gap: .2rem; min-width: 0;
}
.address-block__street {
  font-size: clamp(1.5rem, 4.2vw, 2.15rem); line-height: 1.15; letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.address-block__city {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.address-block--pending .address-block__street { color: var(--sage); }
.address-block__ask {
  font-family: var(--body); font-size: .88rem; letter-spacing: 0; text-transform: none;
  color: #6a6653; margin-top: .6rem; max-width: 40ch;
}
.address-block__parking { font-size: .9rem; color: #6a6653; margin: 0 0 1rem; }
.address-block__note { font-size: .88rem; margin: 1rem 0 0; }

/* A disabled "Get directions" — looks like the button, links nowhere on purpose. */
.btn--disabled,
.btn--disabled:hover {
  background: var(--surface); border-color: var(--rule); color: var(--sage);
  cursor: not-allowed; pointer-events: none;
}

.map-panel { border: 1px solid var(--rule); background: var(--surface); border-radius: 2px; overflow: hidden; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.map-panel iframe { width: 100%; height: clamp(320px, 42vw, 400px); border: 0; display: block; }
.map-panel__placeholder {
  height: clamp(320px, 42vw, 400px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; text-align: center; padding: 1.5rem; color: var(--blue);
  background:
    linear-gradient(rgba(225,215,196,.8), rgba(225,215,196,.8)),
    repeating-linear-gradient(45deg, var(--page) 0, var(--page) 18px, var(--surface) 18px, var(--surface) 36px);
  border-bottom: 1px solid var(--rule);
}
.map-panel__placeholder-eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .25em;
  font-size: .68rem; color: var(--sage);
}
.map-panel__placeholder strong {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 3vw, 1.35rem);
  max-width: 28ch; line-height: 1.35;
}
.map-panel__note { margin: 0; padding: .8rem 1rem; color: #6a6653; font-size: .86rem; }
.map-panel__note a { margin-left: .35rem; }

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

.line-items { list-style: none; margin: 0; padding: 0; }
.line-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.line-item img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--rule); }
.line-item__title { font-family: var(--display); font-size: 1rem; }

.totals { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.totals li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .95rem; }
.totals li + li { border-top: 1px solid var(--rule); }
.totals .fee-note { font-size: .78rem; color: #6a6653; display: block; }
.totals .grand {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em;
  font-size: 1rem; color: var(--blue); border-top: 2px solid var(--blue); margin-top: .35rem; padding-top: .85rem;
}

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

.footer {
  background: var(--surface); border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 7vw, 5rem); padding: clamp(2.25rem, 6vw, 3.5rem) 0 2rem;
}
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--blue); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; font-size: .92rem; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--blue); }

.footer__legal {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: .78rem; color: #6a6653; text-align: center;
}
.footer__builtby {
  margin-top: .85rem; padding-top: .7rem;
  border-top: 1px solid var(--rule);
  font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: #6a6653;
}
.footer__builtby a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer__builtby a:hover { text-decoration: underline; }
.footer__credit { margin-top: .5rem; font-size: .8rem; color: #6a6653; }
.footer__credit a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }

/* ---------- Misc ---------------------------------------------------------- */

.breadcrumb { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); color: #6a6653; padding: 1.25rem 0 0; }
.breadcrumb a { text-decoration: none; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filters a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem;
  padding: .6rem 1rem; border: 1px solid var(--rule); text-decoration: none; color: var(--ink);
  min-height: 40px; display: inline-flex; align-items: center;
}
.filters a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--page); }

.flash {
  background: var(--surface); border: 1px solid var(--blue); border-left-width: 3px;
  padding: .9rem 1.1rem; margin: 1.25rem 0; font-size: .95rem;
}
.flash--error { border-color: var(--sage); }

.empty { text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 1rem; }

.demo-ribbon {
  background: var(--ink); color: var(--page); text-align: center;
  font-family: var(--display); text-transform: uppercase; letter-spacing: .18em;
  font-size: .62rem; padding: .5rem 1rem;
}

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

.admin { background: var(--page); min-height: 100vh; }
.admin-bar {
  background: var(--blue); color: var(--page);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter); flex-wrap: wrap;
  position: sticky; top: 0; z-index: 30;
}
.admin-bar a, .admin-bar button {
  color: var(--page); text-decoration: none; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .16em; font-size: .7rem;
}
.admin-bar__title { font-family: var(--display); text-transform: uppercase; letter-spacing: .24em; font-size: .82rem; }
.admin-bar nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.admin-bar form button { background: none; border: 1px solid rgba(242,235,222,.5); padding: .5rem .8rem; border-radius: 2px; cursor: pointer; min-height: 40px; }

.admin-wrap { width: min(100% - 2rem, 940px); margin: 1.5rem auto 4rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.stat {
  background: var(--surface); border: 1px solid var(--rule); padding: 1rem .75rem; text-align: center;
}
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--blue); line-height: 1.1; }
.stat span { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; color: #6a6653; }

.inv-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 1rem;
  background: var(--surface); border: 1px solid var(--rule); padding: .85rem; margin-bottom: .85rem;
}
.inv-item img { width: 86px; height: 86px; object-fit: cover; border: 1px solid var(--rule); }
.inv-item__title { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .15rem; }
.inv-item__meta { font-size: .85rem; color: #6a6653; margin: 0 0 .65rem; }
.inv-item__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.inv-item__actions .btn { min-height: 44px; padding: .6rem 1rem; font-size: .68rem; }
.inv-item--sold { opacity: .72; }

.tag {
  display: inline-block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .14em; font-size: .6rem; padding: .25rem .6rem;
  border: 1px solid var(--rule); border-radius: 50% / 50%; color: var(--blue);
}
.tag--sold { color: var(--sage); border-color: var(--sage); }
.tag--hidden { color: var(--sage); }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1rem; }
.login-card { width: min(100%, 420px); text-align: center; }
.login-card img { width: 230px; margin: 0 auto 1.5rem; }

/* Password reset / change — same palette and type as the rest of the admin. */
.auth-aside { margin: 1rem 0 0; text-align: center; font-size: .94rem; }
.auth-code-label {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em;
  font-size: .7rem; color: var(--blue); margin: 1.75rem 0 .5rem;
}
.auth-code {
  font-family: var(--display); font-size: clamp(1.15rem, 5.5vw, 1.6rem);
  letter-spacing: .18em; color: var(--blue); word-break: break-all;
  /* Lining figures: the code gets typed by hand, so digits must sit on one baseline. */
  font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1;
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--blue);
  padding: 1rem 1.15rem; margin: 0 0 1.25rem;
}

.photo-strip { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.photo-strip figure { margin: 0; position: relative; }
.photo-strip img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--rule); }
.photo-strip button {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--page); border: none; cursor: pointer; font-size: .9rem; line-height: 1;
}

@media print { .masthead, .footer, .topbar, .nav-toggle { display: none; } }

/* Phone-first fulfilment board: full-width controls at the foot of each order. */
.fulfilment-board { max-width: 760px; }
.order-filters { display: flex; gap: 12px; margin: 20px 0; }
.order-filters a, .order-actions button, .order-history summary, .order-cancel summary {
  min-height: 52px; padding: 14px 18px; font-size: 1rem; cursor: pointer;
}
.order-filters a { display: flex; align-items: center; justify-content: center; flex: 1; border: 2px solid #36564b; border-radius: 8px; }
.order-filters a[aria-current="page"], .order-actions .order-primary { background: #36564b; color: #fff; }
.order-card { margin: 24px 0; padding: 20px; border: 2px solid #a7b5aa; border-radius: 12px; background: #fffdf8; overflow-wrap: anywhere; }
.order-card h2 { font-size: 1.35rem; margin: 16px 0 8px; }
.order-card p { margin: 10px 0; }
.order-card--ageing { border: 3px solid #a64d0a; }
.order-warning, .order-error { background: #fff0d3; color: #753000; padding: 14px; font-weight: bold; }
.order-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.order-method { background: #253f59; color: white; padding: 10px 14px; border-radius: 6px; }
.order-method--pickup { background: #634064; }
.order-address { background: #f0f3ed; padding: 14px; }
.order-address p { white-space: pre-line; }
.order-actions { display: grid; gap: 12px; margin-top: 18px; }
.order-actions form { margin: 0; }
.order-actions button { width: 100%; border: 2px solid #36564b; border-radius: 8px; background: white; color: #263d34; font-weight: bold; }
.order-actions label { display: block; font-weight: bold; margin-bottom: 8px; }
.order-actions input[name="tracking"] { width: 100%; min-height: 52px; font-size: 16px; margin-bottom: 12px; }
.order-history { margin-top: 16px; }
.order-history li { margin-bottom: 12px; }
.order-cancel summary { color: #843723; }
.order-actions button:focus-visible, .order-filters a:focus-visible, .order-card summary:focus-visible { outline: 3px solid #a64d0a; outline-offset: 3px; }
@media (max-width: 480px) { .order-card { padding: 14px; } }
