/* CAVA components.
   Every colour here is a token from tokens.css - no literals, no new tokens.

   The system in one paragraph: --bone is the page. --oat is the card surface and
   is exactly the studio background of the photography, so a product photo has no
   visible edge. Burgundy is the only saturated colour and appears only where
   attention is earned: the promo strip, CTAs, active states, the footer. --cream
   never touches --bone - it exists only inside a burgundy field (promo, footer,
   badges, toasts) or inside a panel that burgundy bounds. Uppercase is reserved
   for micro-labels at wide tracking; everything a person reads or clicks is
   sentence case. Motion is 200–280ms, transform and opacity only.
   ------------------------------------------------------------------------- */

/* ---------- 1. Primitives ------------------------------------------------ */

html {
  scrollbar-gutter: stable;   /* no layout shift when the drawer locks scroll */
}

[hidden] {
  display: none !important;
}

.section {
  padding-block: var(--space-10);
}
.section--sm { padding-block: var(--space-9); }
.section--lg { padding-block: var(--space-11); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Bodoni is a Didone: its hairlines vanish below ~20px, so display type never
   goes under --step-1 and body copy is never set in it. */
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--taupe);
  max-width: 58ch;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
}

/* The only sanctioned --cream surface on a --bone page: burgundy bounds every
   edge, so the two never actually meet. */
.panel--cream {
  background: var(--cream);
  border: 1px solid var(--burgundy);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--burgundy);
  color: var(--bone);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 2. Media and blur-up ----------------------------------------- */

.media {
  --ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio);
  background-color: var(--oat);
  background-image: var(--lqip);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media--hero   { --ratio: 3 / 2; }
.media--square { --ratio: 1; }
.media--auto   { aspect-ratio: auto; }

.media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--auto .media__img { position: static; height: auto; }

/* Scoped to .js so the images are never invisible without JavaScript. */
.js .media__img[data-blur] {
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.js .media__img[data-blur].is-loaded { opacity: 1; }

/* ---------- 3. Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .95rem var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
              color 220ms var(--ease), transform 220ms var(--ease),
              box-shadow 220ms var(--ease);
}

.btn--primary {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--bone);
}
.btn--primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: none; box-shadow: none; }

/* No fill on hover - the border and the label carry it. */
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.btn--block { display: flex; width: 100%; }

/* --stone is the disabled voice. It carries the label rather than the fill: a
   solid stone block sits too close in weight to an active button and reads as a
   third state instead of an inert one. */
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--line);
  border-color: var(--line);
  color: var(--stone);
}
.btn--ghost:disabled,
.btn--ghost[aria-disabled="true"] {
  background: none;
  border-color: var(--line);
  color: var(--stone);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.icon-btn:hover { color: var(--burgundy); }
.icon-btn .icon { width: 22px; height: 22px; display: block; }

/* Text link with a burgundy rule that draws in from the left. */
.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--burgundy), var(--burgundy));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 240ms var(--ease), color 240ms var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--burgundy); }

/* ---------- 4. Card ------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--oat);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.card__media { border-radius: 0; }

/* The second studio angle fades in on hover. Opacity only, and never on touch.
   Kept at the fast end of the motion range: two different poses cross-fading
   any slower reads as a double exposure at the midpoint. */
.media__img--alt {
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
@media (hover: hover) {
  .card:hover .media__img--alt,
  .card:focus-within .media__img--alt { opacity: 1; }
}

.card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: .3rem var(--space-3);
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--ink);
}
/* The rule is on the inner span so it tracks the text, not the column width. */
.card__name span {
  background-image: linear-gradient(var(--burgundy), var(--burgundy));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 260ms var(--ease);
}
.card__link:hover .card__name span,
.card__link:focus-visible .card__name span { background-size: 100% 1px; }

.card__desc {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--taupe);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__rating {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}
.card__rating span { color: var(--stone); }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-5);
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card__price--sale > span { color: var(--wine); }
.card__compare {
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--stone);
}

.card__colors {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card__color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--swatch, transparent);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- 5. Forms ------------------------------------------------------ */

.form-field {
  display: grid;
  gap: var(--space-2);
}
.form-field > label,
.form-field__label {
  font-size: var(--step--1);
  letter-spacing: .02em;
  color: var(--taupe);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .8rem var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.4;
  transition: border-color 200ms var(--ease);
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--stone); }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--taupe); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--burgundy); }

.form-field__hint {
  font-size: var(--step--2);
  color: var(--stone);
}
.form-field__error {
  font-size: var(--step--2);
  color: var(--wine);
}
.form-field--error input,
.form-field--error select,
.form-field--error textarea { border-color: var(--wine); }
.form-field--error > label,
.form-field--error .form-field__label { color: var(--wine); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bone);
}
.qty-stepper__btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.qty-stepper__btn:hover { color: var(--burgundy); }
.qty-stepper__btn:disabled { color: var(--stone); cursor: not-allowed; }
.qty-stepper__value {
  min-width: 2.5rem;
  text-align: center;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch, transparent);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--bone), 0 0 0 3px var(--burgundy);
}
.swatch:disabled { cursor: not-allowed; opacity: .4; transform: none; }

.size-pill {
  min-width: 56px;
  padding: .6rem var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: .06em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
              color 200ms var(--ease);
}
.size-pill:hover { border-color: var(--burgundy); }
.size-pill[aria-pressed="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--bone);
}
.size-pill:disabled {
  color: var(--stone);
  border-color: var(--line);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- 6. Header ----------------------------------------------------- */

.promo {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  padding-block: .55rem;
}
.promo__text {
  font-size: var(--step--2);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.wordmark {
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--step-2);
  /* Live type rather than the logo raster: that file is a flat --cream square,
     and --cream on the --bone bar is exactly the adjacency the palette forbids.
     Weight and tracking were matched against assets/img/logo/wordmark-512.webp. */
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--burgundy);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.wordmark:hover { color: var(--burgundy-deep); }

.site-nav__list {
  display: flex;
  gap: var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.site-nav__link:hover { color: var(--burgundy); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--burgundy); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-size: var(--step--2);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 13px;
}
.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 240ms var(--ease);
}
.burger i:first-child { top: 0; }
.burger i:last-child  { bottom: 0; }
[aria-expanded="true"] .burger i:first-child { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .burger i:last-child  { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed;
  top: var(--menu-top, 6.5rem);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow-y: auto;
  background: var(--bone);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease),
              visibility 0s linear 240ms;
}
.menu[data-open] {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.menu__inner { padding-block: var(--space-6) var(--space-9); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__link {
  display: block;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.menu__link:hover,
.menu__link[aria-current="page"] { color: var(--burgundy); }
.menu__note {
  margin-top: var(--space-6);
  font-size: var(--step--2);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
}

.menu-btn { display: none; }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__bar { grid-template-columns: 1fr auto; }

  /* Without JavaScript the panel can never open, so the links stay in the bar
     and wrap instead of hiding behind a button that does nothing. */
  .no-js .site-nav { display: block; grid-column: 1 / -1; }
  .no-js .site-nav__list { flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
  .no-js .menu-btn { display: none; }
  .no-js .site-header__bar { grid-template-columns: 1fr auto; row-gap: var(--space-2); }
}

/* ---------- 7. Footer ----------------------------------------------------- */

.site-footer {
  background: var(--burgundy);
  color: var(--cream);
  padding-block: var(--space-10) var(--space-6);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: var(--space-8) var(--space-9);
}
.site-footer__brand { max-width: 34ch; }

.medallion {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--cream);
  background-image: var(--lqip);
  background-size: cover;
}
.medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(49%);   /* the source art has square white corners */
}

.site-footer__wordmark {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--cream);
}
.site-footer__claim {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--rose);
}

.site-footer__head {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}
.site-footer__list {
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--cream);
}
.site-footer__link {
  color: var(--cream);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.site-footer__link:hover { color: var(--rose); }
.site-footer :focus-visible { outline-color: var(--rose); }

.site-footer__base {
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid var(--burg-soft);
  font-size: var(--step--2);
  letter-spacing: .08em;
  color: var(--rose);
}

@media (max-width: 899px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- 8. Cart drawer ------------------------------------------------ */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  transition: visibility 0s linear 280ms;
}
.drawer[data-open] { visibility: visible; transition-delay: 0s; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 280ms var(--ease);
}
.drawer[data-open] .drawer__backdrop { opacity: .42; }

.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bone);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  transition: transform 280ms var(--ease);
}
.drawer[data-open] .drawer__panel { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--line);
}
.drawer__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: .04em;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.drawer__foot {
  border-top: 1px solid var(--line);
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.drawer__empty {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
  padding-block: var(--space-8);
}
.drawer__empty p { color: var(--taupe); }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-line__body { display: grid; gap: var(--space-2); align-content: start; }
.cart-line__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.cart-line__name:hover { color: var(--burgundy); }
.cart-line__meta {
  font-size: var(--step--2);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe);
}
.cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.cart-line__price {
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;   /* "4.990 RSD" must not break across two lines at 360px */
  font-variant-numeric: tabular-nums;
}
.cart-line__remove {
  align-self: start;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--stone);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.cart-line__remove:hover { color: var(--wine); }
.cart-line__remove .icon { width: 16px; height: 16px; margin-inline: auto; }

.ship-meter { display: grid; gap: var(--space-2); }
.ship-meter__label {
  font-size: var(--step--2);
  letter-spacing: .06em;
  color: var(--taupe);
}
.ship-meter__label strong { color: var(--burgundy); font-weight: 500; }
.ship-meter__track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.ship-meter__fill {
  display: block;
  height: 100%;
  background: var(--burgundy);
  transform-origin: left;
  transition: width 320ms var(--ease);
}

.totals {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--step--1);
}
.totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}
.totals dt { color: var(--taupe); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__grand {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.totals__grand dt { color: var(--ink); }
.totals__grand dd {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

/* ---------- 9. Toast ------------------------------------------------------ */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  z-index: 90;
  transform: translateX(-50%);
  width: min(26rem, calc(100% - 2 * var(--space-5)));
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  pointer-events: none;
}
.toast {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--burgundy);
  color: var(--bone);
  box-shadow: var(--shadow-md);
  font-size: var(--step--1);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- 10. Scroll lock ----------------------------------------------- */

html.is-locked, html.is-locked body { overflow: hidden; }
