/* =====================================================================
   Hesed — customer website stylesheet
   Structure: 1 tokens · 2 base · 3 layout · 4 header/nav · 5 buttons & forms
   6 product card & label strip · 7 page sections · 8 shop · 9 product page
   10 cart & checkout · 11 account · 12 feedback (alerts, toasts, dialog)
   13 footer · 14 utilities · 15 motion & print
   ===================================================================== */

/* 1. Tokens ----------------------------------------------------------- */
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand colours */
  --plum: #3B1E3F;
  --plum-700: #2C1630;
  --plum-100: #EBE3EC;
  --ink: #231A24;
  --ink-soft: #5C4E5E;          /* secondary text, 7.4:1 on white */
  --butter: #F2E3B3;
  --stage: #F6EAB6;              /* matches the rendered product backdrop */
  --mist: #F5F2F6;
  --gold: #8A6A2C;               /* 4.9:1 on white */
  --line: #E2D9E3;
  --line-strong: #C9BCCB;
  --white: #FFFFFF;
  --success: #2F6B3B;
  --success-bg: #EAF3EA;
  --error: #A3262A;
  --error-bg: #FBECEC;
  --warning-bg: #FBF3DC;

  /* type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.25rem;     /* 20 */
  --fs-lg: 1.5625rem;   /* 25 */
  --fs-xl: 1.9375rem;   /* 31 */
  --fs-2xl: 2.4375rem;  /* 39 */

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 4px;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --shadow-float: 0 12px 32px rgba(35, 26, 36, 0.16), 0 2px 6px rgba(35, 26, 36, 0.08);
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--plum);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 72px; } }

/* 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 var(--s4); color: var(--plum); text-wrap: balance; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 600; color: var(--ink); }
@media (min-width: 900px) { h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } }
p { margin: 0 0 var(--s4); max-width: 68ch; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
table { border-collapse: collapse; width: 100%; }
small { font-size: var(--fs-sm); }
.skip-link { position: absolute; left: var(--s4); top: -60px; background: var(--plum); color: var(--white); padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: var(--s2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding: var(--s7) 0; }
@media (min-width: 900px) { .section { padding: var(--s8) 0; } }
.section--mist { background: var(--mist); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }
.page-head { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.page-head h1 { margin-bottom: var(--s2); }
.page-head p { color: var(--ink-soft); margin: 0; }
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s3); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); }

/* 4. Announcement bar, header and navigation --------------------------- */
.announce { background: var(--plum); color: var(--butter); font-size: var(--fs-sm); text-align: center; padding: var(--s2) var(--gutter); }
.announce a { color: var(--butter); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.logo { font-family: var(--font-display); font-size: 1.75rem; color: var(--plum); text-decoration: none; line-height: 1; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: var(--s2); }
.logo small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--ink-soft); letter-spacing: 0; display: none; }
@media (min-width: 1100px) { .logo small { display: inline; } }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; display: none; }
.header-search input { width: 100%; height: 40px; padding: 0 var(--s4) 0 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: var(--fs-sm); background: var(--white); }
.header-search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
@media (min-width: 900px) { .header-search { display: block; } }
.header-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; height: 44px; padding: 0 var(--s2); border: 0; background: none; color: var(--ink); text-decoration: none; font: inherit; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--radius); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.icon-btn .label { display: none; }
@media (min-width: 1100px) { .icon-btn .label { display: inline; } }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--plum); color: var(--white); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count[data-count="0"] { background: var(--line); color: var(--ink-soft); }
.cart-count.is-bumped { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.menu-toggle { display: inline-flex; }
@media (min-width: 900px) { .menu-toggle, .search-toggle { display: none; } }

.main-nav { border-top: 1px solid var(--line); display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.main-nav a { display: block; padding: var(--s3) 0; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--plum); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--plum); color: var(--plum); font-weight: 600; }
@media (min-width: 900px) { .main-nav { display: block; } }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(35, 26, 36, .45); animation: fade .2s ease; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--white); padding: var(--s4); overflow-y: auto; box-shadow: var(--shadow-float); animation: slide-in .25s var(--ease); display: flex; flex-direction: column; gap: var(--s5); }
.drawer--right .drawer__panel { left: auto; right: 0; animation-name: slide-in-right; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head h2 { margin: 0; font-size: var(--fs-md); }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.drawer nav a[aria-current="page"] { color: var(--plum); font-weight: 700; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes slide-in-right { from { transform: translateX(100%); } }
.mobile-search { padding-bottom: var(--s3); display: none; }
.mobile-search.is-open { display: block; }
.mobile-search form { position: relative; }
@media (min-width: 900px) { .mobile-search { display: none !important; } }

/* 5. Buttons and forms ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--radius); border: 1px solid var(--plum); background: var(--plum); color: var(--white); font: inherit; font-weight: 600; font-size: var(--fs-base); text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { background: var(--plum-700); border-color: var(--plum-700); text-decoration: none; }
.btn--secondary { background: var(--white); color: var(--plum); }
.btn--secondary:hover { background: var(--plum-100); color: var(--plum); border-color: var(--plum); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--plum); padding: 0 var(--s3); }
.btn--quiet:hover { background: var(--mist); border-color: transparent; }
.btn--danger { background: var(--white); color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: var(--error); color: var(--white); border-color: var(--error); }
.btn--small { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--white) var(--white) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--secondary.is-loading::after { border-color: var(--plum) var(--plum) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn--danger { color: var(--error); }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.form > .btn:not(.btn--block) { justify-self: start; }   /* grid items stretch by default */
.form > .hint { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-sm); color: var(--ink-soft); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px var(--s3); font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233B1E3F' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-sm); font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--plum); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* choice cards (delivery and payment options, sizes) */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.choice { position: relative; display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: var(--white); }
.choice:hover { border-color: var(--ink-soft); }
.choice input { margin: 3px 0 0; accent-color: var(--plum); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); background: #FCFAFC; }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice__body { flex: 1; display: grid; gap: 2px; }
.choice__title { font-weight: 600; }
.choice__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.choice__price { font-weight: 600; white-space: nowrap; }

.size-options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-option span { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 104px; padding: var(--s2) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius); text-align: left; font-size: var(--fs-sm); }
.size-option strong { font-size: var(--fs-base); }
.size-option input:checked + span { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.size-option input:focus-visible + span { box-shadow: var(--focus); }
.size-option input:disabled + span { color: var(--ink-soft); text-decoration: line-through; background: var(--mist); }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius); height: 48px; }
.qty button { width: 44px; border: 0; background: none; font-size: 20px; color: var(--plum); cursor: pointer; }
.qty button:hover { background: var(--mist); }
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; background: none; }
.qty input { width: 48px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--small { height: 38px; } .qty--small button { width: 34px; } .qty--small input { width: 40px; }

/* 6. Product card and label strip ------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
@media (min-width: 1200px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--stage); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.card__media .alt-img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .card__media .alt-img { opacity: 1; } }
.badge { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; background: var(--white); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; padding: 3px var(--s2); border-radius: 2px; }
.badge--sale { background: var(--gold); color: var(--white); }
.badge--out { background: var(--ink); color: var(--white); }

/* The label strip: the brand's signature, taken from the wraparound jar label */
.label-strip { background: var(--plum); color: var(--butter); font-size: var(--fs-xs); line-height: 1.4; padding: 7px var(--s3); border-top: 2px solid #A8823A; }
.card .label-strip { border-radius: 0 0 var(--radius) var(--radius); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-strip--wide { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); padding: var(--s3) var(--s4); font-size: var(--fs-sm); border-radius: var(--radius); }
.label-strip--wide dt { opacity: .8; }
.label-strip--wide dd { margin: 0; font-weight: 600; }
.label-strip--wide div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

.card__body { padding-top: var(--s3); display: grid; gap: 2px; flex: 1; align-content: start; }
.card__title { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.3; color: var(--ink); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }   /* whole card is clickable */
.card__title a:focus-visible { box-shadow: none; }
.card:has(.card__title a:focus-visible) { box-shadow: var(--focus); border-radius: var(--radius); }
.card__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); position: relative; z-index: 1; }
.price { font-weight: 700; font-size: var(--fs-base); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price del { color: var(--ink-soft); font-weight: 400; margin-left: 6px; font-size: var(--fs-sm); }
.price--sale ins { text-decoration: none; color: var(--gold); }
.stock { font-size: var(--fs-sm); }
.stock--low { color: var(--gold); font-weight: 600; }
.stock--out { color: var(--ink-soft); }
.stock--in { color: var(--success); }
.card .quick-add { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-sm); }
@media (max-width: 599px) { .card__foot { flex-direction: column; align-items: stretch; } .card .quick-add { width: 100%; } }

/* 7. Page sections ----------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5) var(--s7); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 5fr 7fr; gap: var(--s7); padding-block: var(--s6); } }
.hero__copy { max-width: 470px; }
.hero__copy h1 { font-size: 2.125rem; line-height: 1.12; margin-bottom: var(--s4); }
@media (min-width: 900px) { .hero__copy h1 { font-size: 3rem; } }
.hero__copy p { font-size: 1.0625rem; color: var(--ink-soft); }
.hero__facts { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.hero__facts li { display: flex; gap: var(--s2); align-items: baseline; }
.hero__facts li::before { content: ""; width: 10px; height: 2px; background: #A8823A; flex: none; transform: translateY(-4px); }
.hero__media { background: var(--stage); border-radius: var(--radius); overflow: hidden; aspect-ratio: 8 / 9; order: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero__media { order: 0; aspect-ratio: 1 / 1; } .hero__media img { object-position: 50% 65%; } }
@media (max-width: 899px) { .hero__media { aspect-ratio: 4 / 3; } .hero__media img { object-position: 50% 70%; } }

.categories { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } }
.cat { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.cat img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat__text { background: var(--white); padding: var(--s3) 0 0; }
.cat__text strong { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-md); color: var(--plum); display: block; }
.cat__text span { font-size: var(--fs-sm); color: var(--ink-soft); }
.cat:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.promo { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--butter); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .promo { grid-template-columns: 1fr 1fr; } }
.promo__copy { padding: var(--s6) var(--s5); align-self: center; }
@media (min-width: 900px) { .promo__copy { padding: var(--s7); } }
.promo__copy h2 { margin-bottom: var(--s3); }
.promo__price { font-size: var(--fs-md); margin-bottom: var(--s5); }
.promo__price del { color: var(--ink-soft); font-size: var(--fs-base); margin-left: var(--s2); }
.promo__terms { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--s4); }
.promo img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }

.promises { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.promise { border-top: 2px solid var(--plum); padding-top: var(--s4); }
.promise h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.promise p { color: var(--ink-soft); margin-bottom: var(--s2); }

.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.story img { border-radius: var(--radius); background: var(--stage); }
.story blockquote { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.35; color: var(--plum); }

.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.owner-note { background: var(--warning-bg); border-left: 3px solid var(--gold); padding: var(--s3) var(--s4); font-size: var(--fs-sm); margin: var(--s4) 0; }

/* 8. Shop -------------------------------------------------------------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding-bottom: var(--s8); }
@media (min-width: 900px) { .shop { grid-template-columns: 240px 1fr; gap: var(--s6); } }
.filters { display: none; }
@media (min-width: 900px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 56px); align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; } }
.filter-group { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); margin: 0 0 var(--s3); }
.filter-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.filter-group .count { color: var(--ink-soft); margin-left: auto; font-variant-numeric: tabular-nums; }
.filter-group .check { align-items: center; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.price-range .input { min-height: 40px; }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.shop-toolbar .result-count { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }
.shop-toolbar .sort { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.shop-toolbar .select { min-height: 40px; width: auto; }
.filter-btn { display: inline-flex; }
@media (min-width: 900px) { .filter-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: calc(var(--s3) * -1) 0 var(--s5); list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--s2) 4px var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--fs-sm); text-decoration: none; color: var(--ink); background: var(--white); }
.chip:hover { border-color: var(--plum); }
.chip svg { width: 14px; height: 14px; }

.pagination { display: flex; justify-content: center; gap: var(--s1); margin-top: var(--s7); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; }
.pagination a:hover { border-color: var(--plum); }
.pagination [aria-current="page"] { background: var(--plum); color: var(--white); border-color: var(--plum); }

.empty-state { text-align: center; padding: var(--s8) var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h2 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.empty-state p { margin: 0 auto var(--s5); color: var(--ink-soft); }
.empty-state__actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }

/* 9. Product page ------------------------------------------------------ */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-bottom: var(--s7); }
@media (min-width: 900px) { .product { grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: start; } }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .gallery { grid-template-columns: 76px 1fr; position: sticky; top: calc(var(--header-h) + 56px); } }
.gallery__main { background: var(--stage); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .gallery__thumbs { flex-direction: column; order: -1; } }
.gallery__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stage); width: 72px; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy-box h1 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.buy-box .lede { color: var(--ink-soft); margin-bottom: var(--s4); }
.buy-box .price { font-size: var(--fs-lg); font-weight: 600; display: block; margin-bottom: var(--s1); }
.buy-box form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin: var(--s5) 0; }
.buy-row { display: flex; gap: var(--s3); align-items: stretch; }
.buy-row .btn { flex: 1; }
.rating-summary { display: flex; gap: var(--s2); align-items: center; font-size: var(--fs-sm); margin-bottom: var(--s3); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 1rem; line-height: 1; }
.info-list { list-style: none; padding: 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.info-list li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.info-list svg { width: 20px; height: 20px; flex: none; color: var(--plum); margin-top: 1px; }
.share-link { display: inline-flex; gap: var(--s2); align-items: center; font-size: var(--fs-sm); font-weight: 600; margin-top: var(--s4); }
.share-link svg { width: 18px; height: 18px; }

.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; padding: var(--s4) 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--plum); line-height: 1; }
.details details[open] summary::after { content: "−"; }
.details .details__body { padding-bottom: var(--s5); }
.details .details__body p:last-child { margin-bottom: 0; }

.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 900px) { .reviews { grid-template-columns: 1fr 2fr; gap: var(--s7); } }
.review { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.review h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; color: var(--ink); margin: var(--s2) 0; }
.review footer { font-size: var(--fs-sm); color: var(--ink-soft); }
.verified { color: var(--success); font-weight: 600; }

/* 10. Cart and checkout ------------------------------------------------ */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-bottom: var(--s8); align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; } .checkout-layout { grid-template-columns: 1fr 380px; gap: var(--s7); } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .cart-line { grid-template-columns: 104px 1fr auto; } }
.cart-line__img { background: var(--stage); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); align-content: start; }
.cart-line__info h3 { font-size: var(--fs-base); margin: 0; }
.cart-line__info h3 a { color: var(--ink); text-decoration: none; }
.cart-line__info h3 a:hover { text-decoration: underline; }
.cart-line__meta { font-size: var(--fs-sm); color: var(--ink-soft); }
.cart-line__actions { display: flex; gap: var(--s4); align-items: center; margin-top: var(--s2); flex-wrap: wrap; }
.cart-line__total { grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .cart-line__total { grid-column: auto; text-align: right; } }
.cart-line.is-updating { opacity: .55; pointer-events: none; }
.line-note { font-size: var(--fs-sm); color: var(--gold); font-weight: 600; }

.summary { background: var(--mist); border-radius: var(--radius); padding: var(--s5); position: sticky; top: calc(var(--header-h) + 56px); }
.summary h2 { font-size: var(--fs-md); margin-bottom: var(--s4); }
.summary dl { margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.summary dl div { display: flex; justify-content: space-between; gap: var(--s3); font-variant-numeric: tabular-nums; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }
.summary .total { border-top: 1px solid var(--line-strong); padding-top: var(--s3); margin-top: var(--s2); font-size: var(--fs-md); }
.summary .total dt { color: var(--ink); font-weight: 600; }
.summary .total dd { font-weight: 700; }
.summary small { display: block; color: var(--ink-soft); margin-top: var(--s3); }
.free-delivery-meter { margin-bottom: var(--s4); font-size: var(--fs-sm); }
.free-delivery-meter progress { width: 100%; height: 6px; appearance: none; border: 0; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: var(--s2); display: block; }
.free-delivery-meter progress::-webkit-progress-bar { background: var(--line); }
.free-delivery-meter progress::-webkit-progress-value { background: var(--plum); }
.free-delivery-meter progress::-moz-progress-bar { background: var(--plum); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); }
.summary-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s3); font-size: var(--fs-sm); align-items: center; }
.summary-lines img { border-radius: var(--radius); background: var(--stage); aspect-ratio: 4/5; object-fit: cover; }
.summary-lines .qty-badge { color: var(--ink-soft); }

.checkout-steps { display: flex; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s6); font-size: var(--fs-sm); counter-reset: step; flex-wrap: wrap; }
.checkout-steps li { counter-increment: step; display: flex; align-items: center; gap: var(--s2); color: var(--ink-soft); }
.checkout-steps li::before { content: counter(step); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.checkout-steps li + li::after { order: -1; content: ""; width: 24px; height: 1px; background: var(--line-strong); }
.checkout-steps [aria-current="step"] { color: var(--plum); font-weight: 600; }
.checkout-steps [aria-current="step"]::before { background: var(--plum); color: var(--white); border-color: var(--plum); }
.checkout-steps .is-done::before { content: "✓"; background: var(--plum-100); border-color: var(--plum-100); color: var(--plum); }
.checkout-section { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.checkout-section h2 { font-size: var(--fs-md); margin-bottom: var(--s4); }
.test-mode { display: flex; gap: var(--s3); background: var(--warning-bg); border: 1px solid #E8D59B; border-radius: var(--radius); padding: var(--s3) var(--s4); font-size: var(--fs-sm); }
.test-mode strong { white-space: nowrap; }

.confirmation { text-align: left; }
.confirmation__ref { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--plum); }
.bank-details { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); background: var(--mist); padding: var(--s4) var(--s5); border-radius: var(--radius); margin: var(--s4) 0; font-size: var(--fs-sm); }
.bank-details dt { color: var(--ink-soft); }
.bank-details dd { margin: 0; font-weight: 600; }

/* 11. Account ---------------------------------------------------------- */
.auth { max-width: 440px; margin: 0 auto; padding: var(--s7) 0 var(--s8); }
.auth h1 { margin-bottom: var(--s2); }
.auth .lede { color: var(--ink-soft); margin-bottom: var(--s5); }
.auth__switch { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.password-field { position: relative; }
.password-field .input { padding-right: 72px; }
.password-field button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 var(--s3); border: 0; background: none; color: var(--plum); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; border-radius: var(--radius); }
.password-field button:hover { background: var(--mist); }
.strength { display: flex; gap: 4px; margin-top: 4px; }
.strength span { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.strength[data-score="1"] span:nth-child(-n+1) { background: var(--error); }
.strength[data-score="2"] span:nth-child(-n+2) { background: var(--gold); }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--success); }
.strength[data-score="4"] span { background: var(--success); }

.account { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-bottom: var(--s8); }
@media (min-width: 900px) { .account { grid-template-columns: 220px 1fr; gap: var(--s7); } }
.account-nav ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); overflow-x: auto; }
@media (min-width: 900px) { .account-nav ul { flex-direction: column; } }
.account-nav a { display: block; padding: var(--s2) var(--s3); border-radius: var(--radius); text-decoration: none; color: var(--ink); white-space: nowrap; font-weight: 500; }
.account-nav a:hover { background: var(--mist); }
.account-nav a[aria-current="page"] { background: var(--plum); color: var(--white); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.panel + .panel { margin-top: var(--s5); }
.panel h2 { font-size: var(--fs-md); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1fr; } }
.panel-grid .panel + .panel { margin-top: 0; }

.data-table { width: 100%; font-size: var(--fs-sm); }
.data-table th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.data-table td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; position: relative; }
@media (max-width: 599px) {
  .data-table--stack thead { display: none; }
  .data-table--stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .data-table--stack td { border: 0; padding: 0; }
  .data-table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); }
}
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 2px var(--s2); border-radius: 2px; background: var(--mist); color: var(--ink); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--awaiting_payment { background: var(--warning-bg); color: #6E5420; }
.status--received { background: var(--plum-100); color: var(--plum); }
.status--preparing { background: #EDEAF7; color: #3F3A7A; }
.status--dispatched, .status--ready_for_collection { background: #E6F0F4; color: #1F5568; }
.status--delivered, .status--collected { background: var(--success-bg); color: var(--success); }
.status--cancelled { background: var(--error-bg); color: var(--error); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 var(--s4) var(--s6); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--plum); }
.timeline li.is-current::after { background: var(--plum); }
.timeline strong { display: block; }
.timeline time { font-size: var(--fs-sm); color: var(--ink-soft); }

.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 28px; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 2px; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }

/* 12. Feedback: alerts, toasts, dialog --------------------------------- */
.alert { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--radius); border: 1px solid; font-size: var(--fs-sm); margin-bottom: var(--s5); }
.alert p { margin: 0; }
.alert ul { margin: var(--s1) 0 0; padding-left: 1.1em; }
.alert--success { background: var(--success-bg); border-color: #BCD8BF; color: var(--success); }
.alert--error { background: var(--error-bg); border-color: #EBC1C2; color: var(--error); }
.flash-area { padding-top: var(--s4); display: grid; gap: var(--s2); }
.flash-area .alert { margin-bottom: 0; }
.alert--info { background: var(--mist); border-color: var(--line); color: var(--ink); }
.alert--warning { background: var(--warning-bg); border-color: #E8D59B; color: #5E4718; }

.toasts { position: fixed; z-index: 80; bottom: var(--s4); left: var(--s4); right: var(--s4); display: grid; gap: var(--s2); pointer-events: none; }
@media (min-width: 600px) { .toasts { left: auto; width: 380px; bottom: var(--s5); right: var(--s5); } }
.toast { pointer-events: auto; display: flex; gap: var(--s3); align-items: center; background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--radius); box-shadow: var(--shadow-float); font-size: var(--fs-sm); animation: toast-in .3s var(--ease); }
.toast a { color: var(--butter); font-weight: 600; margin-left: auto; white-space: nowrap; }
.toast--error { background: var(--error); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

dialog.dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(92vw, 440px); box-shadow: var(--shadow-float); color: var(--ink); }
dialog.dialog::backdrop { background: rgba(35, 26, 36, .5); }
.dialog__body { padding: var(--s5); }
.dialog__body h2 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.dialog__actions { display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--mist); }

/* 13. Footer ----------------------------------------------------------- */
.site-footer { background: var(--plum); color: #E9DFEA; margin-top: var(--s8); font-size: var(--fs-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); padding-block: var(--s7) var(--s6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: var(--butter); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-brand .logo { color: var(--white); margin-bottom: var(--s3); }
.footer-brand p { color: #D9CCDA; }
.newsletter form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s3); }
.newsletter__row { display: flex; gap: var(--s2); align-items: flex-start; }
.newsletter__row .field { flex: 1; }
.newsletter .field-error { color: var(--butter); }
.newsletter .field-error::before { background: var(--butter); color: var(--plum); }
.newsletter .input { min-height: 44px; background: var(--white); border-color: transparent; }
.newsletter .btn { min-height: 44px; background: var(--butter); color: var(--plum); border-color: var(--butter); }
.newsletter .btn:hover { background: var(--white); border-color: var(--white); }
.newsletter .check { color: #D9CCDA; font-weight: 400; }
.newsletter .check a { text-decoration: underline; }
.newsletter-msg { margin-top: var(--s2); color: var(--butter); font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: var(--s4) var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; color: #CBBCCD; font-size: var(--fs-xs); }
.payment-marks { display: flex; gap: var(--s2); align-items: center; }
.payment-marks span { border: 1px solid rgba(255, 255, 255, .35); padding: 2px 6px; border-radius: 2px; color: var(--white); font-weight: 600; }

/* 14. Utilities -------------------------------------------------------- */
.muted { color: var(--ink-soft); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.split { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.demo-banner { background: var(--ink); color: var(--white); font-size: var(--fs-xs); text-align: center; padding: 6px var(--gutter); }
.demo-banner strong { color: var(--butter); }

/* 15. Motion and print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .announce, .site-header, .site-footer, .toasts, .btn, .demo-banner { display: none !important; }
  body { font-size: 11pt; }
}

.btn svg { width: 18px; height: 18px; flex: none; }

/* Error pages (403, 404, 419, 429, 500, 503) */
.error-page { max-width: 640px; padding-block: var(--s8); }
.error-page__code { font-size: var(--fs-sm); color: var(--gold); font-weight: 600; margin-bottom: var(--s2); }

/* ---------- Payment and information pages ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.box + .box { margin-top: var(--s5); }
.box form { margin-top: var(--s4); display: grid; gap: var(--s3); }
.lead { font-size: var(--fs-md); color: var(--ink-soft); }
.prose h2 { margin-top: var(--s6); }

/* ---------- Small phones: keep the header inside the screen ---------- */
.site-header .container { min-width: 0; }
@media (max-width: 599px) {
  .icon-btn--admin { display: none; }            /* admins reach the admin website from My account */
  .header-actions { gap: 0; }
  .header-actions .icon-btn { min-width: 40px; padding: 0 6px; }
}
@media (max-width: 359px) {
  .logo { font-size: 1.5rem; }
  .header-actions .icon-btn { min-width: 36px; padding: 0 4px; }
}
.account-nav { min-width: 0; max-width: 100%; }
@media (max-width: 899px) { .account-nav ul { flex-wrap: wrap; overflow-x: visible; } .account-nav li form .btn { width: auto !important; } }
/* ---------- Log in popup before checkout ---------- */
dialog.dialog--auth { width: min(92vw, 420px); }
.dialog--auth .dialog__body { position: relative; padding-top: var(--s6); }
.dialog--auth h2 { font-size: var(--fs-lg); }
.dialog--auth .form { margin-top: var(--s4); }
.dialog__close { position: absolute; top: var(--s2); right: var(--s2); width: 44px; height: 44px; border: 0; background: none; font-size: 1.75rem; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: var(--radius); }
.dialog__close:hover { background: var(--mist); color: var(--ink); }
.dialog__divider { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s4); color: var(--ink-soft); font-size: var(--fs-sm); }
.dialog__divider::before, .dialog__divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }