/* MundoSari — launch site styles.
   Self-hosted fonts only: no external font or framework dependencies, and no
   third-party runtime requests (font-src 'self').
   Brand palette and design language ported from the owner's prototype
   ("MundoSari Shop"): fluid type scale, 1180px container, teal/cream/mango
   theme, rounded pill controls and 1.5px-line cards. */

/* ---------- Self-hosted fonts (see fonts/README.md for sources/licence) ---------- */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */

:root {
  color-scheme: light;
  --teal: #124d46;
  --teal-deep: #0c3631;
  --cream: #fff8ec;
  --cream-deep: #f5e9d3;
  --mango: #f2b544;
  --mango-soft: #fce7b8;
  --ink: #1c2b28;
  --muted: #56655f;
  --line: #e4d5bb;
  --white: #fffdf8;
  --warn-ink: #6a4705;

  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Rubik", ui-rounded, system-ui, -apple-system, sans-serif;

  /* Fluid type scale, ported from the prototype. */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.6rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.8rem);

  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

    * { box-sizing: border-box; }

    /* The UA rule for [hidden] loses to any class that sets `display`, so the
       basket drawer and the other hidden blocks would render on load. */
    [hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--teal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 0.75em; }
a { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: 800px; }

/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  padding-block: 12px;
  flex-wrap: wrap;
}

/* Fix the height and let the ratio derive the width, exactly like the
   prototype. max-width: none keeps the global img rule from clamping it, and
   the flex anchor cannot stretch a fixed-height replaced element. */
.brand { display: block; flex: none; }
.brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: none;
}

.site-nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.site-nav a {
  color: var(--teal);
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 700;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { border-color: var(--mango); }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.lang-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
}
.lang-select {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}
.lang-select:focus-visible {
  outline: 2px solid var(--mango);
  outline-offset: 2px;
}

/* ---------- Pre-launch notice ---------- */
.notice-bar {
  background: var(--cream);
  padding-block: 4px;
}
.notice-note {
  background: var(--mango-soft);
  color: var(--warn-ink);
  font-size: 0.96rem;
  border-radius: 14px;
  padding: 12px 16px;
}
.notice-note p { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.hero-inner {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  max-width: 62rem;
}
.hero-copy { display: grid; gap: 20px; min-width: 0; }

.badge {
  justify-self: start;
  display: inline-block;
  background: var(--mango-soft);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}
.hero-note { color: var(--muted); font-size: var(--step--1); margin: 0; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Shop by aisle ---------- */
.aisle-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 18px;
}
.aisle-card {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  font: inherit;
  padding: 20px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(18, 77, 70, 0.1);
  cursor: pointer;
}
.aisle-card:hover { border-color: var(--teal); }
.aisle-card .aisle-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--teal-deep);
}
.aisle-card .aisle-desc {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--teal);
}
.btn-primary {
  background: var(--teal);
  color: var(--cream);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
}
.btn-ghost:hover { background: var(--white); }

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 88px); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }

.section h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.015em; }
.section-lead { max-width: 46rem; color: var(--muted); margin-bottom: 22px; }

/* ---------- Catalogue cards ---------- */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: var(--teal); }

.product-visual {
  height: 6.5rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--teal-deep);
  background:
    repeating-linear-gradient(-45deg, var(--cream-deep) 0 12px, var(--cream) 12px 24px);
  border: 1.5px solid var(--line);
  margin-bottom: 8px;
}

.product-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0; }

/* Real label photo variant: the photo replaces the striped initials
   placeholder. The container keeps its fixed height so the card layout
   never reflows while the (lazy) image loads. */
.product-visual-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 8px;
}
.product-visual-photo img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-flip-btn:hover { border-color: var(--teal); }

    /* The product photo is a real button that opens the lightbox. It wraps
       the <img> and inherits the same layout the bare image had, so the card
       grid is untouched. */
    button.product-photo-trigger {
      flex: 1 1 auto;
      min-height: 0;
      padding: 0;
      border: none;
      background: none;
      cursor: zoom-in;
      font: inherit;
    }
    button.product-photo-trigger:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
      border-radius: 8px;
    }

        /* Full product dialog (native <dialog>). The browser owns the
           backdrop, Escape, focus trapping and background inertness. The
           dialog takes ~90% of the viewport (capped so it stays sane on very
           large screens); the photo column gets ~80% of the width and the
           text column ~20% with its own scroll and 16px-minimum body text. */
        #product-dialog {
          width: min(90vw, 1440px);
          height: min(90vh, 940px);
          max-width: min(90vw, 1440px);
          max-height: min(90vh, 940px);
          padding: 0;
          border: 1.5px solid var(--line);
          border-radius: 14px;
          background: var(--white);
          color: var(--ink);
          overflow: hidden;
        }
        #product-dialog .pd-body {
          width: 100%;
          height: 100%;
          display: grid;
          grid-template-columns: 4fr 1fr; /* photo ~80% / text ~20% */
        }
        #product-dialog.pd-no-photo .pd-body { grid-template-columns: 1fr; }
        #product-dialog .pd-visual {
          display: flex;
          flex-direction: column;
          min-width: 0;
          min-height: 0;
          padding: 18px;
          background: var(--cream);
        }
        #product-dialog .pd-visual img {
          flex: 1 1 auto;
          min-height: 0;
          width: 100%;
          object-fit: contain;
          display: block;
        }
        #product-dialog .pd-visual-bar {
          flex: 0 0 auto;
          display: flex;
          align-items: center;
          gap: 8px;
          padding-top: 12px;
        }
        #product-dialog .pd-switch {
          font: inherit;
          font-size: 0.78rem;
          font-weight: 700;
          padding: 5px 14px;
          border-radius: 999px;
          border: 1.5px solid var(--line);
          background: var(--cream);
          color: var(--teal-deep);
          cursor: pointer;
        }
        #product-dialog .pd-switch[aria-pressed="true"] {
          background: #d9ece7;
          border-color: var(--teal);
        }
        #product-dialog .pd-switch:disabled {
          opacity: 0.45;
          cursor: not-allowed;
        }
        #product-dialog .pd-info {
          min-width: 0;
          min-height: 0;
          display: flex;
          flex-direction: column;
          gap: 10px;
          padding: 18px 20px;
        }
        #product-dialog.pd-no-photo .pd-info { max-width: 46rem; }
        #product-dialog .pd-info-head {
          flex: 0 0 auto;
          display: flex;
          align-items: flex-start;
          justify-content: space-between;
          gap: 10px;
        }
        #product-dialog .pd-info-head h3 {
          margin: 0;
          font-size: 1.35rem;
        }
        #product-dialog .pd-close {
          flex: 0 0 auto;
          font: inherit;
          font-size: 0.78rem;
          font-weight: 700;
          padding: 5px 14px;
          border-radius: 999px;
          border: 1.5px solid var(--teal-deep);
          background: var(--teal-deep);
          color: var(--cream);
          cursor: pointer;
        }
        #product-dialog .pd-details {
          flex: 1 1 auto;
          min-height: 0;
          overflow-y: auto;
          display: flex;
          flex-direction: column;
          gap: 10px;
        }
        /* Body text in the dialog never drops below 16px, whatever the
           smaller card-level styles would do. */
        #product-dialog .pd-details p { font-size: 1rem; }
        #product-dialog .pd-desc { font-size: 1.0625rem; margin: 0; }
        #product-dialog .pd-actions { flex: 0 0 auto; margin-top: 4px; }
        #product-dialog .product-add-btn { font-size: 1rem; padding: 10px 18px; }
        #product-dialog .pd-close:hover,
        #product-dialog .pd-switch:hover:not(:disabled) {
          filter: brightness(1.06);
        }
        #product-dialog::backdrop {
          background: rgba(12, 20, 18, 0.65);
        }

        @media (max-width: 719px) {
          #product-dialog {
            width: 92vw;
            height: 92vh;
            max-width: 92vw;
            max-height: 92vh;
          }
          /* Stack: photo on top (~56vh), text below, one shared scroll. */
          #product-dialog .pd-body {
            display: flex;
            flex-direction: column;
            overflow-y: auto;
          }
          #product-dialog .pd-visual {
            flex: 0 0 auto;
            height: 56vh;
          }
          #product-dialog .pd-info { flex: 0 0 auto; }
          #product-dialog .pd-details { overflow: visible; }
        }

.product-card .product-desc { color: var(--muted); font-size: 0.9rem; flex-grow: 1; margin: 0; }
.product-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.product-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warn-ink);
  background: var(--mango-soft);
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
  margin: 6px 0 0;
  white-space: nowrap;
}
.product-status-in {
  color: var(--teal-deep);
  background: #d9ece7;
}
.product-status-out {
  color: var(--muted);
  background: var(--cream-deep);
}
.product-status-held {
  white-space: normal;
  color: var(--teal-deep);
  background: #d9ece7;
}
.product-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.product-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.product-add { margin-top: 8px; }
.product-add-btn { padding: 8px 16px; font-size: 0.9rem; }
.product-add-btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Header cart button ---------- */
.head-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}
.cart-btn:hover { background: var(--white); border-color: var(--teal-deep); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mango);
  color: var(--ink);
  font-size: 0.8rem;
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(24rem, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 54, 49, 0.18);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-head h2 { margin: 0; font-size: var(--step-1); }
.cart-close {
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.cart-notice {
  background: var(--mango-soft);
  border: 1.5px solid var(--mango);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--warn-ink);
  font-size: 0.88rem;
}
.cart-notice p { margin: 0; }
.cart-empty { color: var(--muted); margin: 0; font-size: 0.92rem; }
.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cart-line {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  background: var(--cream);
}
.cart-line-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}
.cart-line-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cart-line-price { font-weight: 700; color: var(--ink); }
.cart-line-actions { display: flex; gap: 6px; }
.cart-qty-btn {
  font: inherit;
  font-weight: 700;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: var(--white);
  color: var(--teal);
  cursor: pointer;
}
.cart-qty-btn:disabled { opacity: 0.4; cursor: default; }
.cart-summary {
  border-top: 1.5px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}
.cart-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.cart-row-total { font-weight: 700; font-size: 1rem; }
.cart-hint { font-size: 0.78rem; color: var(--muted); margin: 0; }
.cart-actions { display: grid; gap: 8px; justify-items: stretch; }
.cart-release { border-color: var(--line); color: var(--muted); }

/* ---------- Checkout page (docs/checkout.html) ---------- */
/* The basket summary sits above the form, as a white card on the cream page. */
.checkout-basket {
background: var(--white);
border: 1.5px solid var(--line);
border-radius: var(--radius);
padding: 16px 18px;
display: grid;
gap: 14px;
}
.checkout-basket .cart-summary { gap: 6px; }
.checkout-empty {
display: grid;
gap: 14px;
justify-items: start;
}
.checkout-empty .cart-empty { margin: 0; }

/* ---------- Orders page (docs/orders.html) ---------- */
.orders-status { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.orders-count { margin: 0 0 12px; font-weight: 700; color: var(--teal-deep); }
.orders-empty { color: var(--muted); margin: 0; }
.order-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.order-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.order-card-code { font-size: 1.05rem; letter-spacing: 0.02em; }
.order-card-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.order-card .myorder-lines { margin: 0; }
.order-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--teal-deep);
}
.order-status-new { border-color: var(--mango); background: var(--mango-soft); color: var(--warn-ink); }
.order-status-confirmed { border-color: var(--teal); background: #d9ece7; color: var(--teal-deep); }
.order-status-delivered { border-color: var(--teal-deep); background: var(--teal-deep); color: var(--cream); }
.order-status-cancelled { border-color: var(--line); background: var(--white); color: var(--muted); }

/* ---------- Forms (checkout + leads) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}
.form-field {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-deep);
}
.form-field-wide { grid-column: 1 / -1; }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.form-consent input { margin-top: 3px; }
.form-error {
  color: #8a2d1d;
  background: #f9ddd5;
  border: 1.5px solid #e0a896;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
}
.form-ok {
  color: var(--teal-deep);
  background: #d9ece7;
  border: 1.5px solid var(--teal);
}
.form-hint { margin-top: 10px; }
.form-panel {
  background: var(--cream);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
.form-panel h3 { margin: 0; font-size: var(--step-1); }
.form-panel p { margin: 0; }
.form-panel-conflict { border-color: var(--mango); }
.form-panel ul { margin: 0; padding-inline-start: 1.2rem; }
.order-totals { margin: 0; display: grid; gap: 4px; }
.order-totals div { display: flex; justify-content: space-between; gap: 10px; }
.order-totals dt { color: var(--muted); }
.order-totals dd { margin: 0; font-weight: 700; }
    .form-panel .btn { justify-self: start; }

    /* ---------- My order lookup ---------- */
    .myorder-status {
      margin: 6px 0 14px;
      font-weight: 600;
    }
    .myorder-items-heading {
      margin: 16px 0 6px;
      color: var(--muted);
      font-size: 0.88rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .myorder-lines {
      list-style: none;
      margin: 0 0 14px;
      padding: 0;
      display: grid;
      gap: 6px;
    }
    .myorder-lines li { display: flex; justify-content: space-between; gap: 10px; }
    .myorder-line-name { color: var(--ink); }
    .myorder-line-total { font-weight: 600; white-space: nowrap; }
    .myorder-total-row dt { color: var(--ink); }

    /* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}
.step h3 { font-size: var(--step-1); font-weight: 600; }

/* ---------- Areas ---------- */
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 18px;
}
.area-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.area-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25em;
}
.area-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.areas-note {
  margin-top: 1.5rem;
  font-size: var(--step-0);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 0.75rem;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #cfe0db;
  padding-block: 40px 24px;
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
}
.site-footer p { color: #cfe0db; margin: 0; max-width: 34rem; }
.site-footer .footer-heading {
  font-family: var(--font-display);
  margin: 0 0 10px;
  color: var(--mango);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.footer-links a {
  color: #cfe0db;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(255, 248, 236, 0.14);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--step--1);
}
.footer-base p { margin: 0; }

/* Reduced-visibility link row (FAQ / contact / legal) — footer only on every
   page, never a primary-menu entry (S8). */
.footer-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 4px;
  font-size: var(--step--1);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand img { height: 34px; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 4px;
  }
  .head-actions { margin-inline-start: auto; }
  .product-grid { gap: 12px; }
  .product-card { padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-drawer { margin: 8px; }
}
