/* ==========================================================================
   Flower & Foliage — components.css
   Buttons, forms, header/nav, product cards, cart drawer, footer, overlays.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-rosewood-deep);
  --btn-fg: var(--c-bone);
  --btn-border: var(--c-rosewood-deep);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 1rem 2.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  isolation: isolate;
}

/* Wipe-fill hover: a pseudo-element scales up from the bottom */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-rosewood);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--dur) var(--ease);
  z-index: -1;
}

.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-rosewood-deep);
  --btn-border: var(--c-line-strong);
}
.btn--outline:hover { color: var(--c-bone); border-color: var(--c-rosewood); }

.btn--light {
  --btn-bg: var(--c-bone);
  --btn-fg: var(--c-rosewood-deep);
  --btn-border: var(--c-bone);
}
.btn--light:hover { color: var(--c-bone); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-border: transparent;
  padding: 0.5rem 0;
}
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--c-rosewood); }

.btn--full  { width: 100%; }
.btn--sm    { padding: 0.75rem 1.5rem; font-size: 0.625rem; }
.btn--lg    { padding: 1.15rem 3rem; }

/* Text link with a trailing arrow that slides on hover */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-rosewood);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line-strong);
  transition: border-color var(--dur) var(--ease);
}
.btn-arrow svg { transition: transform var(--dur) var(--ease); }
.btn-arrow:hover { border-color: var(--c-rosewood); }
.btn-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   2. Forms
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--s-5); }

/* `display: block` above outranks the UA stylesheet's `[hidden]` rule, so
   hiding a field from script would otherwise do nothing. */
.field[hidden] { display: none; }

.field__label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--s-2);
}

.field__label .req { color: var(--c-rosewood); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--c-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder,
.textarea::placeholder { color: var(--c-muted-light); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-rosewood-tint);
  box-shadow: 0 0 0 3px rgba(168, 128, 122, 0.14);
}

.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  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' fill='none' stroke='%236b605c' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.field__error {
  display: none;
  font-size: var(--fs-sm);
  color: var(--c-error);
  margin-top: var(--s-2);
}

.field--error .field__error { display: block; }

.field__hint {
  font-size: var(--fs-sm);
  color: var(--c-muted-light);
  margin-top: var(--s-2);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Checkbox / radio */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--c-rosewood);
  cursor: pointer;
}

/* Selectable card — used for delivery windows and product variants */
.option-card {
  display: block;
  position: relative;
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.option-card:hover { border-color: var(--c-rosewood-tint); }

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card:has(input:checked) {
  border-color: var(--c-rosewood);
  background: var(--c-blush-light);
  box-shadow: inset 0 0 0 1px var(--c-rosewood);
}

.option-card__title {
  font-size: var(--fs-base);
  color: var(--c-ink);
  display: block;
}

.option-card__meta {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  height: 46px;
}

.qty__btn {
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--c-muted);
  transition: color 0.2s var(--ease);
}

.qty__btn:hover:not(:disabled) { color: var(--c-rosewood); }
.qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty__value {
  min-width: 34px;
  text-align: center;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
}

.qty--sm { height: 36px; }
.qty--sm .qty__btn { width: 32px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   3. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: var(--c-rosewood-deep);
  color: var(--c-blush-light);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  min-height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 60;
}

/* The messages are stacked in one grid cell rather than absolutely
   positioned, so the bar grows to fit a message that wraps on narrow
   screens instead of clipping it. */
.announce__viewport {
  flex: 1;
  display: grid;
  min-height: var(--announce-h);
  align-items: center;
}

.announce__item {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  text-align: center;
  text-wrap: balance;
  line-height: 1.35;
  padding-block: var(--s-2);
  padding-inline: var(--s-4);
}

@media (max-width: 560px) {
  .announce {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
  }
}

.announce__item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.announce__item strong { font-weight: 400; color: var(--c-blush); }

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
/* The shell is injected into <div data-site-header>. Left as a normal block,
   that wrapper becomes the sticky header's containing block — only as tall as
   the announcement bar plus the header itself — so the header would scroll
   away immediately. display:contents removes the wrapper's box so the header
   sticks against the page instead. */
[data-site-header] { display: contents; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bone);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--c-line);
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(12px);
}

/* Brand left, nav filling the middle, actions right. A centred brand left a
   dead gap on wide screens, because the nav is far wider than the icon row. */
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
}

.header__brand { justify-self: start; }
.header__nav { justify-self: center; }
.header__actions { justify-self: end; }

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand__mark {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--c-rosewood-deep);
  white-space: nowrap;
}

.brand__mark em {
  font-style: normal;
  color: var(--c-rosewood-tint);
}

.brand__sub {
  font-size: clamp(0.5rem, 1.6vw, 0.5625rem);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-muted-light);
  margin-top: 4px;
  white-space: nowrap;
}

/* Primary nav — the gap grows with the viewport so the row keeps filling the
   middle column instead of bunching to one side. */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.2vw, 2.75rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: var(--s-2) 0;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-soft);
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--c-rosewood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--c-rosewood); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item { position: relative; }

/* Mega menu panel */
.megamenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -1.5rem;
  min-width: 460px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.nav__item:hover .megamenu,
.nav__item:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.megamenu__heading {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted-light);
  margin-bottom: var(--s-4);
}

.megamenu__list li + li { margin-top: var(--s-3); }

.megamenu__link {
  font-size: var(--fs-base);
  color: var(--c-ink-soft);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  display: inline-block;
}

.megamenu__link:hover {
  color: var(--c-rosewood);
  padding-left: 5px;
}

.megamenu__feature { }
.megamenu__feature img { border-radius: var(--radius-sm); }
.megamenu__feature-title {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  margin-top: var(--s-3);
}
.megamenu__feature-meta {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* Header icon buttons */
.header__actions { display: flex; align-items: center; gap: var(--s-2); }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--c-ink-soft);
  border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover { color: var(--c-rosewood); background: var(--c-blush-light); }

.icon-btn__count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--c-rosewood);
  color: var(--c-white);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 17px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}

.icon-btn__count.is-visible { transform: scale(1); }

/* Hamburger */
.burger {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
}

.burger__bars {
  position: relative;
  width: 20px;
  height: 11px;
}

.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 5px; }
.burger__bars span:nth-child(3) { top: 10px; }

/* Once the nav collapses the grid becomes burger | brand | actions, so the
   brand goes back to the centre. Collapsing at 1160 rather than 1080 keeps a
   comfortable gap either side of the nav — below that it crowds the brand. */
@media (max-width: 1160px) {
  .header__nav { display: none; }
  .burger { display: grid; justify-self: start; }
  .header__brand { justify-self: center; }
  .brand { align-items: center; }
}

/* --------------------------------------------------------------------------
   5. Overlays: drawer scrim, mobile menu, search, cart
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 29, 27, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: 80;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--c-bone);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
}

.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left  { left: 0;  transform: translateX(-100%); width: min(380px, 90vw); }
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  flex: none;
}

.drawer__title {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-muted);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5);
}

.drawer__foot {
  flex: none;
  padding: var(--s-5);
  border-top: 1px solid var(--c-line);
  background: var(--c-cream);
}

/* Mobile menu specifics */
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  color: var(--c-ink);
}

.mobile-nav__sub {
  padding: var(--s-2) 0 var(--s-4) var(--s-4);
  display: grid;
  gap: var(--s-3);
}

.mobile-nav__sub a {
  font-size: var(--fs-base);
  color: var(--c-muted);
}

.mobile-nav__meta {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--c-bone);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
  padding: var(--s-6) 0 var(--s-8);
}

.search-overlay.is-open { opacity: 1; visibility: visible; transform: none; }

.search-field {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  border-bottom: 1px solid var(--c-line-strong);
  padding-bottom: var(--s-4);
}

.search-field input {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--c-ink);
  padding: 0;
}

.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--c-line-strong); }

.search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

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

.search-empty {
  margin-top: var(--s-7);
  text-align: center;
  color: var(--c-muted);
}

/* --------------------------------------------------------------------------
   6. Product card
   -------------------------------------------------------------------------- */
.product-card { position: relative; display: flex; flex-direction: column; }

.product-card__media {
  position: relative;
  overflow: hidden;
  background: var(--c-sand);
  border-radius: var(--radius-sm);
}

.product-card__media img {
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
}

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

/* Secondary image cross-fades in on hover */
.product-card__media .is-alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__media .is-alt { opacity: 1; }

.product-card__badges {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  background: var(--c-bone);
  color: var(--c-rosewood-deep);
  font-size: 0.5625rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge--sage  { background: var(--c-sage); color: var(--c-white); }
.badge--gold  { background: var(--c-gold); color: var(--c-white); }
.badge--out   { background: var(--c-line-strong); color: var(--c-ink); }

/* Quick-add bar slides up over the image on hover */
.product-card__quickadd {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2;
}

.product-card:hover .product-card__quickadd,
.product-card:focus-within .product-card__quickadd {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .product-card__quickadd { opacity: 1; transform: none; }
}

.product-card__body { padding-top: var(--s-4); }

.product-card__meta {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted-light);
  margin-bottom: 6px;
}

.product-card__title {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.25;
  color: var(--c-ink);
}

.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__price {
  margin-top: 6px;
  font-size: var(--fs-base);
  color: var(--c-muted);
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.product-card__price del { color: var(--c-muted-light); font-size: var(--fs-sm); }
.product-card__price .sale { color: var(--c-rosewood); }

.product-card.is-out .product-card__media { opacity: 0.62; }

/* Swatch dots on the card */
.swatches { display: flex; gap: 5px; margin-top: var(--s-3); }
.swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
}

/* Sat inside a filter label rather than a flex row, so it needs its own
   display for the width/height above to apply. */
.swatch--inline {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 7px;
  flex: none;
}

/* --------------------------------------------------------------------------
   7. Cart line item (shared by drawer and cart page)
   -------------------------------------------------------------------------- */
.line-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--c-line);
}

.line-item:first-child { padding-top: 0; }

.line-item__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-sand);
  align-self: start;
}

.line-item__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}

.line-item__title {
  font-family: var(--f-display);
  font-size: var(--fs-md);
  line-height: 1.3;
}

.line-item__variant {
  font-size: var(--fs-sm);
  color: var(--c-muted-light);
  margin-top: 2px;
}

.line-item__price {
  font-size: var(--fs-base);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.line-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.line-item__remove {
  font-size: var(--fs-sm);
  color: var(--c-muted-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.line-item__remove:hover { color: var(--c-error); }

/* Cart drawer totals */
.totals { display: grid; gap: var(--s-3); }

.totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-base);
  color: var(--c-muted);
}

.totals__row--grand {
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: var(--fs-md);
}

.totals__row--grand strong {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  font-weight: 300;
}

.empty-state {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--c-muted);
}

.empty-state svg { margin: 0 auto var(--s-5); color: var(--c-line-strong); }

/* Free-delivery progress meter */
.ship-meter { margin-bottom: var(--s-5); }

.ship-meter__label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: var(--s-2);
}

.ship-meter__track {
  height: 3px;
  background: var(--c-sand);
  border-radius: 2px;
  overflow: hidden;
}

.ship-meter__fill {
  height: 100%;
  background: var(--c-sage);
  width: 0;
  transition: width 0.6s var(--ease);
}

/* --------------------------------------------------------------------------
   8. Toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: var(--s-2);
  width: min(420px, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--c-rosewood-deep);
  color: var(--c-bone);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  animation: toast-in 0.4s var(--ease);
}

.toast.is-leaving { animation: toast-out 0.3s var(--ease) forwards; }
.toast svg { flex: none; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-rosewood-deep);
  color: var(--c-blush-light);
  padding-top: var(--s-8);
}

.footer a { color: var(--c-blush-light); }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-6); }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand .brand__mark { color: var(--c-bone); }
.footer__brand .brand__sub  { color: var(--c-rosewood-tint); }

.footer__blurb {
  font-size: var(--fs-sm);
  color: rgba(246, 235, 231, 0.68);
  max-width: 34ch;
  margin-top: var(--s-4);
  line-height: 1.7;
}

.footer__heading {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-rosewood-tint);
  margin-bottom: var(--s-4);
}

.footer__list li + li { margin-top: var(--s-3); }

.footer__list a {
  font-size: var(--fs-sm);
  color: rgba(246, 235, 231, 0.8);
  transition: color 0.2s var(--ease);
}

.footer__list a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid rgba(246, 235, 231, 0.16);
  padding-block: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: rgba(246, 235, 231, 0.6);
}

.socials { display: flex; gap: var(--s-3); }

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 235, 231, 0.24);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.socials a:hover {
  background: rgba(246, 235, 231, 0.14);
  border-color: rgba(246, 235, 231, 0.5);
}

/* Newsletter block sitting above the footer columns */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(246, 235, 231, 0.16);
  margin-bottom: var(--s-8);
}

@media (max-width: 860px) {
  .newsletter { grid-template-columns: 1fr; gap: var(--s-5); }
}

.newsletter__form { display: flex; gap: var(--s-3); }

.newsletter__form .input {
  background: transparent;
  border-color: rgba(246, 235, 231, 0.32);
  color: var(--c-bone);
}

.newsletter__form .input::placeholder { color: rgba(246, 235, 231, 0.45); }

.newsletter__form .input:focus {
  border-color: var(--c-blush);
  box-shadow: 0 0 0 3px rgba(235, 217, 211, 0.12);
}

@media (max-width: 480px) {
  .newsletter__form { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   10. Breadcrumbs & pagination
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--c-muted-light);
  padding-block: var(--s-5);
}

.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--c-rosewood); }
.breadcrumb span[aria-current] { color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   11. Accordion (FAQ, product detail panels)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--c-line); }

.accordion__item { border-bottom: 1px solid var(--c-line); }

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  text-align: left;
  font-size: var(--fs-md);
  color: var(--c-ink);
  transition: color 0.2s var(--ease);
}

.accordion__trigger:hover { color: var(--c-rosewood); }

.accordion__icon {
  flex: none;
  position: relative;
  width: 12px;
  height: 12px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 1px; }
.accordion__icon::after  { left: 50%; top: 0; width: 1px; height: 100%; }

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }

.accordion__panel > div { overflow: hidden; }

.accordion__panel p {
  padding-bottom: var(--s-5);
  color: var(--c-muted);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   12. Misc shared blocks
   -------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--c-gold); }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.tag {
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-white);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}

.tag:hover { border-color: var(--c-rosewood-tint); color: var(--c-rosewood); }

.tag.is-active {
  background: var(--c-rosewood-deep);
  border-color: var(--c-rosewood-deep);
  color: var(--c-bone);
}

.note-card {
  background: var(--c-blush-light);
  border-left: 2px solid var(--c-rosewood-tint);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   13. Draft preview banner
   Shown on the storefront while the admin panel's preview mode is on, so an
   unpublished draft is never mistaken for the live catalogue.
   -------------------------------------------------------------------------- */
.draft-banner {
  position: fixed;
  left: 50%;
  bottom: var(--s-4);
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  background: var(--c-gold);
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 2rem);
}

.draft-banner a {
  text-decoration: underline;
  white-space: nowrap;
}

.draft-banner button {
  color: #fff;
  opacity: 0.75;
  display: grid;
  place-items: center;
  flex: none;
}

.draft-banner button:hover { opacity: 1; }
