/* ==========================================================================
   Design tokens
   Palette, type and depth follow templates/aegean_botanical_haven/DESIGN.md.
   ========================================================================== */
:root {
  --color-primary: #2d5a27;
  --color-primary-hover: #1f3f1c;
  --color-primary-deep: #16301a;
  --color-primary-soft: #edf2e8;
  --color-accent: #a85a3a;
  --color-gold: #d4af37;
  --color-gold-ink: #7a5f0a;
  --color-text: #1c281b;
  --color-muted: #5a6356;
  --color-border: #e5dfd7;
  --color-border-soft: rgb(45 90 39 / 0.12);
  --color-surface: #ffffff;
  --color-background: #faf8f5;
  --color-linen: #f4efeb;
  --color-sage: #e6ede0;
  --color-stage: #f7f4ef;
  --color-danger: #dc2626;
  --color-danger-soft: #fef2f2;
  --color-success: #15803d;
  --color-success-soft: #f0fdf4;
  --color-warning: #b45309;
  --color-warning-soft: #fffbeb;
  --color-info: #1d4ed8;
  --color-info-soft: #eff6ff;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgb(28 40 27 / 0.06);
  --shadow-md: 0 12px 32px -8px rgb(35 68 31 / 0.14), 0 4px 12px -2px rgb(28 40 27 / 0.05);
  --shadow-lg: 0 28px 56px -20px rgb(35 68 31 / 0.3), 0 8px 20px -8px rgb(28 40 27 / 0.08);

  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container-width: 80rem;
  --focus-ring: 0 0 0 3px rgb(45 90 39 / 0.22);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgb(45 90 39 / 0.18);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

/* Page titles speak in the editorial serif; denser headings stay in the sans. */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* An outline (not a shadow) so components with their own elevation keep a visible focus ring. */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Inline SVG icons drawn from a per-page <symbol> sprite. */
.icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--arrow {
  transition: transform 0.25s var(--ease-out);
}

a:hover > .icon--arrow,
a:hover > * > .icon--arrow {
  transform: translateX(3px);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--color-muted);
}

.text-danger {
  color: var(--color-danger);
}

.inline-form {
  display: inline;
  margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  --topbar-height: 2.25rem;
  position: sticky;
  /* The announcement bar scrolls away; the brand row and navigation stay pinned. */
  top: calc(var(--topbar-height) * -1);
  z-index: 20;
  background: rgb(250 248 245 / 0.94);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.topbar {
  background: var(--color-primary-deep);
  color: rgb(250 248 245 / 0.86);
  font-size: 0.8125rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--topbar-height);
}

.topbar__message {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__link {
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
}

.topbar strong {
  color: #fff;
}

.topbar :focus-visible {
  outline-color: var(--color-gold);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 5.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  color: var(--color-primary-hover);
}

.brand:hover {
  text-decoration: none;
}

.brand__emblem {
  flex-shrink: 0;
  width: auto;
  height: 3.25rem;
}

.brand__wordmark {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.375rem;
  line-height: 1;
}

.brand__efe {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand__naturel {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.34em;
}

.brand__tag {
  grid-column: 1 / -1;
  margin-top: 0.375rem;
  color: var(--color-muted);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.search {
  display: flex;
  flex: 1;
  max-width: 28rem;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.search__input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.125rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  outline: none;
}

.search__input::placeholder {
  color: var(--color-muted);
}

.search__button {
  display: grid;
  place-items: center;
  align-self: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search__button:hover {
  background: var(--color-primary-hover);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-link {
  padding: 0.375rem 0.5rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.user-dropdown {
  position: relative;
}

.user-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.user-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.user-dropdown__trigger:hover,
.user-dropdown[open] .user-dropdown__trigger {
  background: var(--color-primary-soft);
}

.user-dropdown__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  z-index: 30;
  min-width: 14rem;
  padding: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.user-dropdown__panel form {
  margin: 0;
}

.user-dropdown__email {
  margin: 0 0 0.375rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
  text-align: left;
}

.user-dropdown__link:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.user-dropdown__link--button {
  font: inherit;
  font-size: 0.9375rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.cart-button:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.cart-badge--empty {
  background: var(--color-border);
  color: var(--color-muted);
}

.icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

/* ==========================================================================
   Category navigation
   ========================================================================== */
.primary-nav {
  border-top: 1px solid var(--color-border-soft);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__item {
  position: relative;
  display: flex;
  align-items: center;
}

.menu__link {
  position: relative;
  display: block;
  padding: 0.8125rem 0.75rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.menu__link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.menu__toggle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-muted);
  cursor: pointer;
}

.menu__toggle svg {
  transition: transform 0.15s ease;
}

.menu__item.is-open .menu__toggle svg {
  transform: rotate(180deg);
}

.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 25;
  display: none;
  min-width: 18rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.menu__item.is-open > .menu__panel {
  display: block;
}

@media (hover: hover) and (min-width: 64.0625rem) {
  .menu__item.has-children:hover > .menu__panel,
  .menu__item.has-children:focus-within > .menu__panel {
    display: block;
  }

  /* Champagne hairline that draws in under the hovered category. */
  .menu__link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.5rem;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
  }

  .menu__link:hover::after,
  .menu__item.is-open > .menu__link::after {
    transform: scaleX(1);
  }
}

.menu__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.menu__group-link {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
  font-weight: 700;
}

.menu__leaves {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__leaf-link {
  display: block;
  padding-block: 0.125rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.menu__all {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   Main & alerts
   ========================================================================== */
.site-main {
  flex: 1;
  padding-bottom: 3rem;
}

.site-main:focus {
  outline: none;
}

.site-main > .container:first-child,
.store-alerts + .container {
  padding-top: 2rem;
}

.store-alerts {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
}

/* On the home page the alerts sit directly above the full-bleed hero. */
.store-alerts:has(+ .hero) {
  padding-bottom: 1rem;
}

.store-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.store-alert__message {
  flex: 1;
  margin: 0;
}

.store-alert__close {
  padding: 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.store-alert--success {
  background: var(--color-success-soft);
  border-color: rgb(21 128 61 / 0.25);
  color: var(--color-success);
}

.store-alert--error {
  background: var(--color-danger-soft);
  border-color: rgb(220 38 38 / 0.25);
  color: var(--color-danger);
}

.store-alert--warning {
  background: var(--color-warning-soft);
  border-color: rgb(180 83 9 / 0.25);
  color: var(--color-warning);
}

.store-alert--info {
  background: var(--color-info-soft);
  border-color: rgb(29 78 216 / 0.2);
  color: var(--color-info);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-sm {
  min-height: 2.125rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-background);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: 0 10px 24px -12px rgb(31 63 28 / 0.65);
}

.btn-outline {
  background: transparent;
  border-color: rgb(45 90 39 / 0.4);
  color: var(--color-text);
}

.btn-outline:hover:not(:disabled) {
  background: rgb(45 90 39 / 0.06);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-primary-soft);
}

.btn-light {
  background: var(--color-background);
  color: var(--color-primary-hover);
}

.btn-light:hover {
  background: #fff;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgb(255 255 255 / 0.55);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form {
  display: grid;
  gap: 1.125rem;
}

.form-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.form-group {
  display: grid;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.form-control.input-validation-error {
  border-color: var(--color-danger);
}

.form-help {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.field-error {
  color: var(--color-danger);
  font-size: 0.8125rem;
}

.field-validation-valid {
  display: none;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.alert ul {
  margin: 0;
  padding-left: 1.125rem;
}

.alert-error {
  background: var(--color-danger-soft);
  border: 1px solid rgb(220 38 38 / 0.25);
  color: var(--color-danger);
}

.validation-summary-valid {
  display: none;
}

/* ==========================================================================
   Auth & status pages
   ========================================================================== */
.auth-card {
  width: 100%;
  max-width: 26rem;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card--wide {
  max-width: 34rem;
}

.auth-card__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-card__header h1 {
  font-size: 1.625rem;
}

.auth-card__header p {
  margin: 0;
}

.auth-card__footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.status-page {
  max-width: 34rem;
  margin: 3rem auto 1rem;
  padding-inline: 1.25rem;
  text-align: center;
}

.status-page__code {
  margin: 0;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.status-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero {
  --trust-overlap: 3rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 32rem at 88% -10%, rgb(212 175 55 / 0.14), transparent 60%),
    radial-gradient(48rem 30rem at -8% 108%, rgb(45 90 39 / 0.12), transparent 62%),
    linear-gradient(180deg, var(--color-linen), var(--color-background));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem) calc(clamp(3.5rem, 6vw, 5.5rem) + var(--trust-overlap));
}

.hero__content {
  min-width: 0;
  animation: rise-in 0.7s var(--ease-out) both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border: 1px solid rgb(212 175 55 / 0.55);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.65);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__title em {
  color: var(--color-primary);
}

.hero__lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.7;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
  animation: rise-in 0.9s 0.1s var(--ease-out) both;
}

/* Champagne hairline tracing the arch, set slightly outside the frame. */
.hero__visual::before {
  content: "";
  position: absolute;
  /*
   * Sized from the width so it keeps hugging the 4:5 frame when the product card stacks below it.
   * The ratio is the frame plus the 0.875rem offset on every side, across the 19rem to 26rem range.
   */
  inset: -0.875rem -0.875rem auto;
  aspect-ratio: 0.812;
  border: 1px solid rgb(212 175 55 / 0.6);
  border-radius: 50% 50% var(--radius-xl) var(--radius-xl) / 40% 40% var(--radius-xl) var(--radius-xl);
  pointer-events: none;
}

.hero__frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* 50% of the width equals 40% of the height at 4:5, which makes the top a true half circle. */
  border-radius: 50% 50% var(--radius-xl) var(--radius-xl) / 40% 40% var(--radius-xl) var(--radius-xl);
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--color-sage) 82%);
  box-shadow: var(--shadow-lg);
}

/* Pack shots sit on the stage; multiply dissolves their white backdrop into it. */
.hero__frame img {
  width: 74%;
  height: 66%;
  margin-top: 2%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero__frame--photo img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  mix-blend-mode: normal;
}

.hero__sprig {
  position: absolute;
  height: auto;
  color: var(--color-primary);
  pointer-events: none;
}

.hero__sprig--back {
  top: 1.5rem;
  left: -4rem;
  width: 7rem;
  opacity: 0.32;
  transform: rotate(-28deg);
}

.hero__sprig--front {
  right: -2.75rem;
  bottom: 4.5rem;
  z-index: 2;
  width: 5.5rem;
  opacity: 0.85;
  transform: rotate(24deg);
}

.hero__card {
  position: absolute;
  left: -2.5rem;
  bottom: -1.5rem;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  width: min(17.5rem, 80%);
  padding: 1rem 1.125rem;
  background: rgb(255 255 255 / 0.97);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero__card:hover {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transform: translateY(-3px);
}

.hero__card-kicker {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--color-gold-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__card-title {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero__card-price {
  grid-column: 1;
  margin-top: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-hover);
}

.hero__card-cta {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Home: trust strip
   ========================================================================== */
.trust-strip {
  position: relative;
  z-index: 2;
  /* Straddles the hero's lower edge; .hero reserves the same amount of space. */
  margin-top: -3rem;
}

.trust-strip__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-width: 0;
  padding: 1.125rem 1rem;
}

.trust-strip__item + .trust-strip__item {
  border-left: 1px solid var(--color-border);
}

.trust-strip__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.125rem;
}

.trust-strip__text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
  line-height: 1.35;
}

.trust-strip__title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.trust-strip__note {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  margin-top: 3rem;
}

.home-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.home-section--linen {
  background: var(--color-linen);
}

.home-section--flush {
  padding-block: 0;
}

/* .site-main already adds space above the footer. */
.home-section:last-of-type {
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section__header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  color: var(--color-gold-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--color-gold);
}

.section__header--center .section__eyebrow {
  margin-bottom: 0;
}

.section__header--center .section__eyebrow::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--color-gold);
}

.section__eyebrow--light {
  color: var(--color-gold);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid currentColor;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section__link:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

/* ==========================================================================
   Home: category cards
   ========================================================================== */
.ritual-grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.875rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ritual-grid > li {
  flex: 1 1 0;
  min-width: 0;
  max-width: 24rem;
}

.ritual-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ritual-card:hover {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-4px);
}

.ritual-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-sage);
}

/* Natural tones behind the photos: sage, sand, clay and olive linen in turn. */
.ritual-grid > li:nth-child(4n + 2) .ritual-card__media {
  background: #f1e7dc;
}

.ritual-grid > li:nth-child(4n + 3) .ritual-card__media {
  background: #ecdcd0;
}

.ritual-grid > li:nth-child(4n + 4) .ritual-card__media {
  background: #e9e6d6;
}

.ritual-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.ritual-card:hover .ritual-card__media img {
  transform: scale(1.06);
}

.ritual-card__media .image-placeholder {
  background: none;
}

.ritual-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: rgb(255 255 255 / 0.94);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.ritual-card__body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem 1.125rem;
}

.ritual-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.ritual-card__more {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(45 90 39 / 0.25);
  border-radius: 50%;
  color: var(--color-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

.ritual-card:hover .ritual-card__more {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateX(2px);
}

/* ==========================================================================
   Home: showcase
   ========================================================================== */
.showcase .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Five or six picks fill a single row instead of leaving one or two orphans. */
.showcase[data-count="5"] .product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.showcase[data-count="6"] .product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.empty-state--home {
  max-width: 34rem;
  margin-inline: auto;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-xl);
}

.empty-state--home h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
}

.empty-state--home p {
  margin: 0;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.375rem;
}

/* ==========================================================================
   Home: story
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.story__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 34rem;
  padding: 0 1.25rem 1.25rem 0;
}

/* Offset champagne frame behind the photo. */
.story__visual::before {
  content: "";
  position: absolute;
  inset: 1.25rem 0 0 1.25rem;
  border: 1px solid rgb(212 175 55 / 0.65);
  border-radius: var(--radius-xl);
}

.story__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-sage);
  box-shadow: var(--shadow-md);
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__photo--product {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--color-sage) 85%);
}

.story__photo--product img {
  width: 70%;
  height: 80%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.story__inset {
  position: absolute;
  right: 0;
  bottom: -0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(16rem, 80%);
  padding: 0.625rem 1rem 0.625rem 0.625rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}

.story__inset:hover {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transform: translateY(-3px);
}

.story__inset-thumb {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-stage);
}

.story__inset-thumb img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.story__inset-text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
  line-height: 1.35;
}

.story__inset-kicker {
  color: var(--color-gold-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story__inset-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
}

.story__content {
  min-width: 0;
}

.story__lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.reason {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.reason:hover {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-sm);
}

.reason__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.125rem;
}

.reason h3 {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.reason p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.story__more {
  margin-top: 1.75rem;
}

/* ==========================================================================
   Home: invite band & gallery
   ========================================================================== */
.invite {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40rem 22rem at 100% 0%, rgb(212 175 55 / 0.24), transparent 60%),
    linear-gradient(120deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
  box-shadow: var(--shadow-lg);
  color: var(--color-background);
}

.invite :focus-visible {
  outline-color: var(--color-gold);
}

.invite__sprig {
  position: absolute;
  right: 1rem;
  bottom: -3.5rem;
  z-index: -1;
  width: clamp(9rem, 18vw, 15rem);
  height: auto;
  color: #fff;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(-14deg);
}

.invite__content {
  flex: 1 1 26rem;
  min-width: 0;
}

.invite__title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.invite__text {
  max-width: 36rem;
  margin: 0;
  color: rgb(250 248 245 / 0.84);
}

.invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 18rem);
  justify-content: center;
  gap: clamp(0.625rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-stage);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-md);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease-out);
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.07);
}

.gallery-tile__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgb(22 48 26 / 0.86), transparent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.gallery-tile:hover .gallery-tile__caption,
.gallery-tile:focus-visible .gallery-tile__caption {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Product card & grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-grid > li {
  display: flex;
  min-width: 0;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.product-card:hover {
  border-color: rgb(212 175 55 / 0.6);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-stage);
}

/* Pack shots keep their full silhouette; multiply dissolves a white backdrop into the stage. */
.product-card__media img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card.is-sold-out .product-card__media img {
  filter: grayscale(0.7);
  opacity: 0.75;
}

.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.375rem;
  pointer-events: none;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem 1.125rem;
}

.product-card__category {
  margin: 0;
  overflow: hidden;
  color: var(--color-gold-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__title {
  /* Two lines are always reserved so prices line up across a row. */
  min-height: 2.7em;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-card__title a {
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card__title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.product-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__action {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 0.875rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-sage), var(--color-linen));
  color: rgb(45 90 39 / 0.55);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
}

.image-placeholder--large {
  font-size: 6rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0.25rem 0 0;
}

.price__current {
  color: var(--color-primary-hover);
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price__old {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.price--large .price__current {
  font-size: 2rem;
}

.price--large .price__old {
  font-size: 1.125rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.tag--discount {
  background: var(--color-accent);
  color: #fff;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgb(255 255 255 / 0.94);
}

.stock-badge--in {
  color: var(--color-success);
}

.stock-badge--low {
  color: var(--color-warning);
}

.stock-badge--out {
  background: var(--color-text);
  color: #fff;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 0.25rem;
  color: var(--color-border);
}

.breadcrumb__list a {
  color: var(--color-muted);
}

.breadcrumb__list [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================================
   Listing
   ========================================================================== */
.listing__header {
  margin-bottom: 1.5rem;
}

.listing__title {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.listing__lead {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: var(--color-muted);
}

.listing__layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.filters {
  position: sticky;
  top: 9.5rem;
}

.filters__panel {
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.filters__title {
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.filters__title::-webkit-details-marker {
  display: none;
}

.filters__form {
  display: grid;
  gap: 1.25rem;
}

.filters__group {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}

.filters__form .filters__group {
  margin-top: 0;
}

.filters__panel > .filters__group + .filters__form {
  margin-top: 1.25rem;
}

.filters__heading {
  margin: 0 0 0.625rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.filters__categories {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters__categories a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9375rem;
}

.filters__categories a:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.filters__back {
  font-weight: 600;
  color: var(--color-primary) !important;
}

.filters__count {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.price-inputs .form-control {
  padding-inline: 0.625rem;
}

.filters__actions {
  display: grid;
  gap: 0.5rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.toolbar__count {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-muted);
}

.toolbar__count strong {
  color: var(--color-text);
}

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.toolbar__sort .form-control {
  width: auto;
  min-height: 2.375rem;
  padding-block: 0.375rem;
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.empty-state--page {
  max-width: 40rem;
  margin: 2rem auto 0;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__link,
.pagination__gap {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}

.pagination__link {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

a.pagination__link:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.pagination__link.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination__link.is-disabled {
  color: var(--color-muted);
  opacity: 0.6;
}

.pagination__gap {
  color: var(--color-muted);
}

/* ==========================================================================
   Product detail
   ========================================================================== */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.gallery__main {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.875rem;
}

.gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery__thumb {
  width: 5rem;
  height: 5rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb:hover,
.gallery__thumb[aria-pressed="true"] {
  border-color: var(--color-primary);
}

.product-info {
  display: grid;
  gap: 0.75rem;
}

.product-info__category {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-info__title {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.product-info__sku {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.product-info__sku span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--color-text);
}

.product-price {
  padding: 1rem 0;
  border-block: 1px solid var(--color-border);
}

.product-price p {
  margin: 0;
}

.product-price__savings {
  margin-top: 0.375rem !important;
  color: var(--color-success);
  font-size: 0.9375rem;
}

.product-price__tax {
  margin-top: 0.25rem !important;
  font-size: 0.8125rem;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
}

.product-stock::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: currentColor;
}

.product-stock--instock {
  color: var(--color-success);
}

.product-stock--lowstock {
  color: var(--color-warning);
}

.product-stock--outofstock {
  color: var(--color-danger);
}

.buy-box {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.buy-box__quantity {
  display: grid;
  gap: 0.25rem;
  width: 6rem;
}

.buy-box__quantity .form-control {
  min-height: 3rem;
}

.buy-box__button {
  flex: 1;
}

.product-perks {
  display: grid;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
  padding: 1rem 1.25rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.product-perks li::before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--color-success);
  font-weight: 700;
}

/* Tabs: every panel stays visible until store.js enhances the widget. */
.tabs {
  margin-top: 3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.tabs__list {
  display: none;
  gap: 0.25rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.tabs.is-enhanced .tabs__list {
  display: flex;
}

.tabs__tab {
  padding: 1rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}

.tabs__tab[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tabs__panel {
  padding: 1.5rem;
}

.tabs__panel + .tabs__panel {
  border-top: 1px solid var(--color-border);
}

.tabs.is-enhanced .tabs__panel + .tabs__panel {
  border-top: 0;
}

.tabs.is-enhanced .tabs__panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tabs__panel-title {
  font-size: 1.125rem;
}

.tabs__panel p:last-child,
.tabs__panel ul:last-child {
  margin-bottom: 0;
}

.tabs__panel ul {
  padding-left: 1.25rem;
}

/* ==========================================================================
   Info pages
   ========================================================================== */
.info-page__layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.info-nav ul {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.info-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.info-nav a:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.prose {
  max-width: 48rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.prose h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
}

.contact-list address {
  font-style: normal;
}

/* ==========================================================================
   Shared page primitives (cart, checkout, account)
   ========================================================================== */
.container--narrow {
  max-width: 52rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.page-header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.panel {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-actions--center {
  justify-content: center;
}

.notice {
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.notice h2 {
  font-size: 1.0625rem;
}

.notice--info {
  background: var(--color-info-soft);
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.notice--warning {
  background: var(--color-warning-soft);
  border-color: #fde68a;
  color: #78350f;
}

.notice--success {
  background: var(--color-success-soft);
  border-color: #bbf7d0;
  color: #14532d;
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.pill--primary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill--warning { background: #fef3c7; color: #92400e; }
.status-pill--info { background: #dbeafe; color: #1e40af; }
.status-pill--accent { background: #ede9fe; color: #5b21b6; }
.status-pill--success { background: #dcfce7; color: #166534; }
.status-pill--danger { background: #fee2e2; color: #991b1b; }
.status-pill--neutral { background: #f1f5f9; color: #334155; }

.link-button {
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: 0;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.link-button--danger {
  color: var(--color-danger);
}

.checkbox--agreement {
  align-items: flex-start;
  margin-block: 1rem 0.25rem;
}

.cell-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.num {
  text-align: right;
  white-space: nowrap;
}

.order-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.address-text {
  font-style: normal;
  line-height: 1.55;
}

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.cart-item.has-issue {
  border-color: #fca5a5;
  background: var(--color-danger-soft);
}

.cart-item__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-background);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__title {
  margin: 0 0 0.125rem;
  font-size: 1rem;
}

.cart-item__title a {
  color: var(--color-text);
}

.cart-item__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.cart-item__price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.cart-item__issue {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-danger);
}

.cart-item__controls {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.cart-item__total {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.qty-stepper {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
}

.qty-stepper__button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.qty-stepper__button:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.qty-stepper__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper__value {
  min-width: 2rem;
  font-weight: 700;
  text-align: center;
}

.cart-lines__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.summary-card {
  position: sticky;
  top: 1rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.summary-card__title {
  font-size: 1.125rem;
}

.summary-card__hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
}

.totals {
  margin: 1rem 0;
}

.totals__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.375rem;
}

.totals__row dt,
.totals__row dd {
  margin: 0;
}

.totals__row dd {
  font-weight: 600;
  white-space: nowrap;
}

.totals__row--muted {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.totals__row--grand {
  padding-top: 0.75rem;
  margin-top: 0.375rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.125rem;
  font-weight: 700;
}

.free-shipping {
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  background: var(--color-warning-soft);
  border-radius: var(--radius-sm);
  color: #78350f;
}

.free-shipping--ok {
  background: var(--color-success-soft);
  color: var(--color-success);
  font-weight: 600;
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-steps {
  display: grid;
  gap: 1.25rem;
}

.checkout-step {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.checkout-step__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-size: 1.1875rem;
}

.checkout-step__number {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9375rem;
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 0.5rem;
  border: 0;
}

.choice-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-card:hover {
  border-color: #c7d2fe;
}

.choice-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.choice-card input {
  margin-top: 0.3rem;
  accent-color: var(--color-primary);
}

.choice-card__body {
  display: grid;
  gap: 0.25rem;
}

.choice-card__title {
  font-weight: 700;
}

.choice-card__text {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.billing-choice {
  margin-top: 1rem;
}

.billing-choice__select {
  margin-top: 0.75rem;
}

.billing-choice:has(input[type="checkbox"]:checked) .billing-choice__select {
  display: none;
}

.new-address {
  margin-top: 1.25rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 1rem;
}

.new-address__toggle {
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
}

.new-address__form {
  margin-top: 1rem;
}

.review-list {
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.review-list__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.review-list__price {
  font-weight: 600;
  white-space: nowrap;
}

.success-hero {
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.success-hero__icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 2rem;
  font-weight: 700;
}

.payment-info__list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
}

.payment-info__list div {
  display: flex;
  gap: 0.75rem;
}

.payment-info__list dt {
  min-width: 4rem;
  font-weight: 700;
}

.payment-info__list dd {
  margin: 0;
}

/* ==========================================================================
   Account: addresses & orders
   ========================================================================== */
.account-page {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.account-nav {
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.account-nav__user {
  margin-bottom: 0.75rem;
  overflow: hidden;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav ul {
  display: grid;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.account-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
}

.account-nav a:hover,
.account-nav a[aria-current="page"] {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  text-decoration: none;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.address-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.address-card.is-default {
  border-color: var(--color-primary);
}

.address-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.address-card__title {
  margin: 0;
  font-size: 1.0625rem;
}

.address-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.order-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.order-row__main {
  display: grid;
}

.order-row__code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
}

.order-row__total {
  white-space: nowrap;
}

.order-summary__addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block: 1rem 1.5rem;
}

.order-summary__heading {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.order-table th,
.order-table td {
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.order-table th {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.order-table .num {
  text-align: right;
}

.order-summary .totals {
  max-width: 22rem;
  margin-left: auto;
}

.order-summary__note {
  padding: 0.75rem 1rem;
  background: var(--color-background);
  border-radius: var(--radius-sm);
}

/* Account: profile, order tracking */
.btn-danger {
  color: #fff;
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: #b91c1c;
  text-decoration: none;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.panel__title {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.panel--danger {
  border-color: #fecaca;
  background: var(--color-danger-soft);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.profile-grid .panel {
  margin-bottom: 0;
}

.order-list--compact {
  margin-top: 1rem;
}

.order-list--compact .order-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 0.75rem 1rem;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
  counter-reset: progress;
}

.order-progress__step {
  position: relative;
  display: grid;
  gap: 0.125rem;
  padding: 0.75rem 0.875rem 0.75rem 2.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  counter-increment: progress;
}

.order-progress__step::before {
  position: absolute;
  top: 0.8rem;
  left: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  content: counter(progress);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.order-progress__step.is-done {
  border-color: #bbf7d0;
  background: var(--color-success-soft);
}

.order-progress__step.is-done::before {
  content: "\2713";
  color: #fff;
  background: var(--color-success);
  border-color: var(--color-success);
}

.order-progress__label {
  font-weight: 700;
}

.order-progress__date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.shipment__title {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.shipment__list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.shipment__list div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shipment__list dt {
  min-width: 9rem;
  color: var(--color-muted);
}

.shipment__list dd {
  margin: 0;
  font-weight: 700;
}

.shipment__tracking {
  padding: 0.125rem 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  background: var(--color-primary-soft);
  border-radius: var(--radius-sm);
}

@media (max-width: 64rem) {
  .cart-layout,
  .checkout-layout,
  .account-page,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .order-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 40rem) {
  .cart-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .cart-item__controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    justify-items: start;
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .order-summary__addresses {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-deep);
  border-top: 1px solid rgb(212 175 55 / 0.55);
  color: rgb(250 248 245 / 0.78);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr) 1.4fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}

.footer-col {
  min-width: 0;
}

.footer-col p {
  max-width: 24rem;
}

.footer-brand {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.footer-title {
  margin-bottom: 1.125rem;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgb(250 248 245 / 0.78);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
}

.newsletter .form-control {
  min-width: 0;
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.2);
  color: #fff;
}

.newsletter .form-control::placeholder {
  color: rgb(250 248 245 / 0.6);
}

.newsletter .form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgb(212 175 55 / 0.3);
}

.newsletter .btn {
  flex-shrink: 0;
  background: var(--color-background);
  color: var(--color-primary-hover);
}

.newsletter .btn:hover {
  background: #fff;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.25rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 100rem) {
  :root {
    --container-width: 88rem;
  }
}

@media (max-width: 75rem) {
  .showcase[data-count="5"] .product-grid,
  .showcase[data-count="6"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 64rem) {
  .nav-toggle {
    display: grid;
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__link {
    display: none;
  }

  /* The search drops to its own row; the remaining actions join the brand row. */
  .header-shell {
    flex-wrap: wrap;
    gap: 0.625rem 0.75rem;
    min-height: 0;
    padding-block: 0.625rem;
  }

  .header-actions {
    display: contents;
  }

  .brand {
    margin-right: auto;
  }

  .brand__emblem {
    height: 2.75rem;
  }

  .search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    margin-inline: 0;
  }

  .primary-nav {
    display: none;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: block;
  }

  /* An open menu covers page content, so the frosted header turns solid to keep links legible. */
  .site-header:has(.primary-nav.is-open) {
    background: var(--color-background);
  }

  .menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding-block: 0.5rem;
  }

  .menu__item {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
  }

  .menu__item:last-child {
    border-bottom: 0;
  }

  .menu__toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .menu__panel {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 0 0.75rem 1rem;
    background: none;
    border: 0;
    box-shadow: none;
  }

  /* Trust items stack icon over text so four still fit on one centred row. */
  .trust-strip__item {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.625rem;
    padding: 1.125rem 0.75rem;
    text-align: center;
  }

  .listing__layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 3rem 2.5rem;
  }

  .info-page__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 56rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
    text-align: center;
  }

  .hero__content {
    display: grid;
    justify-items: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 19rem;
  }

  .hero__sprig--back {
    left: -3.25rem;
    width: 5.5rem;
  }

  .hero__sprig--front {
    right: -2.25rem;
    bottom: 6rem;
    width: 4.5rem;
  }

  /* The product card leaves the frame's side and tucks under its lower edge. */
  .hero__card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 18rem);
    margin: -3.25rem auto 0;
    text-align: left;
  }

  .ritual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ritual-grid > li {
    max-width: none;
  }

  /* An odd last card spans the row with a wider crop instead of leaving a gap. */
  .ritual-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ritual-grid > li:last-child:nth-child(odd) .ritual-card__media {
    aspect-ratio: 21 / 9;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story__visual {
    max-width: 30rem;
  }

  .gallery-grid[data-count="5"],
  .gallery-grid[data-count="6"] {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .showcase .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .showcase[data-count] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .cart-button__label,
  .header-register,
  .user-dropdown__name,
  .brand__tag {
    display: none;
  }

  /* Compact lockup: NATUREL sits under EFE so the brand row fits narrow phones. */
  .brand {
    gap: 0.5rem;
  }

  .brand__emblem {
    height: 2.5rem;
  }

  .brand__wordmark {
    grid-template-columns: auto;
    row-gap: 0.25rem;
  }

  .brand__efe {
    font-size: 1.5rem;
  }

  .brand__naturel {
    font-size: 0.5625rem;
    letter-spacing: 0.3em;
  }

  .cart-button,
  .user-dropdown__trigger {
    padding-inline: 0.5rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .trust-strip__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip__item:nth-child(odd) {
    border-left: 0;
  }

  .trust-strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .section__header--center .section__eyebrow::after {
    display: none;
  }

  .ritual-card__body {
    padding: 0.75rem 0.875rem 0.875rem;
  }

  .ritual-card__more {
    display: none;
  }

  .ritual-card__badge {
    top: 0.5rem;
    left: 0.5rem;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  /* Reasons become compact rows: icon on the left, copy beside it. */
  .reason {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1rem;
  }

  .reason__icon {
    grid-row: span 2;
    align-self: start;
    margin-bottom: 0;
  }

  .story__inset {
    bottom: -1.25rem;
  }

  .invite__actions {
    width: 100%;
  }

  .invite__actions .btn {
    flex: 1 1 100%;
  }

  .gallery-grid[data-count="4"] {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .product-card__body {
    padding: 0.75rem;
  }

  .product-card__title {
    font-size: 0.9375rem;
  }

  .product-card__badges {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .buy-box {
    flex-direction: column;
    align-items: stretch;
  }

  .buy-box__quantity {
    width: 100%;
  }

  .prose {
    padding: 1.25rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 30rem) {
  /* The announcement wraps to two centred lines instead of being cut off. */
  .site-header {
    --topbar-height: 3rem;
  }

  .topbar {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .topbar__message {
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }
}

/* Two-up cards get narrow on the smallest phones; keep the cart button on a single line. */
@media (max-width: 23rem) {
  .product-card__action .btn {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Captions rely on hover; touch screens keep the tiles clean and use the image's alt text. */
@media (hover: none) {
  .gallery-tile__caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
