/* ============================================================
   Pasteles de Abuela — design tokens
   Palette pulled from the Puerto Rican flag: red, white/cream,
   and the bright blue of the star field.
   ============================================================ */
:root {
  --cream: #fbf6ef;
  --cream-2: #e9f3fb;
  --leaf: #0b3d66;
  --leaf-dark: #062743;
  --achiote: #c8102e;
  --achiote-dark: #94081f;
  --masa: #0072ce;
  --masa-light: #8ed4f8;
  --brown: #16232e;
  --brown-soft: #4c5c6b;
  --cream-line: rgba(11, 45, 74, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius: 18px;
  --shadow-soft: 0 18px 40px -18px rgba(11, 45, 74, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* A faint paper-grain over everything so flat color fields don't read as a
   digital gradient — cheap, GPU-free texture via SVG feTurbulence. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--leaf-dark);
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- decorative texture ---------- */
.texture-cream {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 114, 206, 0.13), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(200, 16, 46, 0.1), transparent 45%),
    var(--cream);
}

.texture-leaf {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(160deg, var(--leaf) 0%, var(--leaf-dark) 100%);
  color: var(--cream);
}

.texture-leaf h1, .texture-leaf h2, .texture-leaf h3 {
  color: var(--cream);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--achiote);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--achiote-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--leaf-dark);
}

.btn-outline:hover {
  background: rgba(11, 61, 102, 0.08);
}

.texture-leaf .btn-outline {
  color: var(--cream);
  border-color: rgba(251, 241, 226, 0.6);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- launch special banner + discount pricing ---------- */
.launch-banner {
  background: linear-gradient(90deg, var(--achiote), var(--achiote-dark));
  color: var(--cream);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  letter-spacing: 0.01em;
}

.launch-banner strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.price-strike {
  text-decoration: line-through;
  opacity: 0.5;
  margin-right: 8px;
  font-size: 0.7em;
  font-weight: 500;
}

.price-special {
  color: var(--achiote);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--leaf-dark);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.brand span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--achiote);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown-soft);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--achiote);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--achiote);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--cream);
}

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

.nav-links a[aria-current="page"] {
  color: var(--achiote);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--achiote);
  background: rgba(200, 16, 46, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  max-width: 12ch;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--brown-soft);
  max-width: 44ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--leaf-dark);
}

.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(150deg, var(--masa) 0%, var(--achiote) 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  animation: floatIn 0.9s ease both;
  transform: rotate(1.5deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(251, 241, 226, 0.55);
  border-radius: 20px;
}

.hero-art svg {
  position: relative;
  width: 72%;
  filter: drop-shadow(0 12px 18px rgba(6, 39, 67, 0.35));
}

.hero-art .stamp {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--cream);
}

/* hero section with a real photo behind it, scrimmed just enough to keep
   text readable — light on purpose so the photo actually shows through */
.hero-photo {
  background-image:
    linear-gradient(180deg, rgba(251, 246, 239, 0.5) 0%, rgba(251, 246, 239, 0.3) 40%, rgba(251, 246, 239, 0.55) 100%),
    url("/images/hometown.png");
  background-size: cover;
  background-position: center 38%;
}

.hero-photo .eyebrow {
  background: rgba(251, 246, 239, 0.92);
}

.hero-photo h1 {
  text-shadow:
    0 0 2px rgba(251, 246, 239, 1), 0 0 6px rgba(251, 246, 239, 1),
    0 0 14px rgba(251, 246, 239, 0.95), 0 0 26px rgba(251, 246, 239, 0.9);
}

.hero-photo .hero-sub {
  color: var(--brown);
  font-weight: 500;
  text-shadow:
    0 0 2px rgba(251, 246, 239, 1), 0 0 5px rgba(251, 246, 239, 1),
    0 0 12px rgba(251, 246, 239, 0.95), 0 0 22px rgba(251, 246, 239, 0.9);
}

.hero-photo .hero-facts {
  background: rgba(251, 246, 239, 0.75);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(2px);
}

/* the hero-art card filled with an actual photo instead of the illustration */
.hero-art-photo {
  padding: 0;
}

.hero-art-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero-art-photo.img-missing {
  background: linear-gradient(150deg, var(--masa) 0%, var(--achiote) 100%);
}

.hero-art-photo.img-missing img {
  display: none;
}

.hero-art-label {
  position: relative;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}

.hero-art-label small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}

/* ---------- hand-stamped / scrapbook accents ---------- */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px dashed var(--achiote);
  color: var(--achiote);
  font-family: var(--font-script);
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-10deg);
  background: rgba(200, 16, 46, 0.04);
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

.stamp strong {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-dark);
  margin-top: 2px;
}

.tape {
  position: absolute;
  width: 76px;
  height: 26px;
  background: rgba(142, 212, 248, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 8px rgba(6, 39, 67, 0.15);
}

.script-accent {
  font-family: var(--font-script);
  color: var(--achiote);
  font-weight: 400;
  font-size: 1.15em;
  display: inline-block;
  transform: rotate(-3deg);
}

/* ---------- torn-paper section divider ---------- */
.divider-torn {
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: -1px;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.reveal {
  animation: riseIn 0.7s ease both;
}
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- section shell ---------- */
.section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.story-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--cream-line);
  transform: rotate(-1.2deg);
}

.story-card + .story-card {
  transform: rotate(1deg);
  margin-top: -18px;
  margin-left: 40px;
}

/* ---------- menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--cream-line);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.menu-card:nth-child(odd) { transform: rotate(-0.7deg); }
.menu-card:nth-child(even) { transform: rotate(0.6deg); }
.menu-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 24px 46px -18px rgba(11, 45, 74, 0.4); }

.menu-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--masa), var(--achiote));
}

.menu-card .filling {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--achiote);
  margin-bottom: 8px;
}

.menu-card h3 {
  font-size: 1.9rem;
  margin-bottom: 4px;
}

.menu-card .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--leaf-dark);
  margin: 14px 0 6px;
}

.menu-card .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown-soft);
}

.menu-card.featured {
  background: var(--leaf-dark);
  color: var(--cream);
  transform: translateY(-10px);
}
.menu-card.featured h3,
.menu-card.featured .price { color: var(--cream); }
.menu-card.featured p { color: rgba(251, 241, 226, 0.75); }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--masa);
  -webkit-text-stroke: 1.5px var(--achiote);
  color: transparent;
  display: block;
  margin-bottom: 8px;
}

/* ---------- service area ---------- */
.service-box {
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.service-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: inherit;
}

/* ---------- home page teasers (link out to their own pages) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.teaser-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--cream-line);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.teaser-card:nth-child(odd) { transform: rotate(-0.6deg); }
.teaser-card:nth-child(even) { transform: rotate(0.6deg); }
.teaser-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 24px 46px -18px rgba(11, 45, 74, 0.4);
}

.teaser-card .arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--achiote);
}

.teaser-card .arrow::after {
  content: "→";
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.18s ease;
}

.teaser-card:hover .arrow::after {
  transform: translateX(4px);
}

/* ---------- sub-page hero (menu / how-it-works / delivery-area) ---------- */
.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  max-width: 22ch;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--cream-line);
  padding: 18px 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--cream-line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--leaf-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--achiote);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 12px;
  color: var(--brown-soft);
  max-width: 60ch;
}

/* ---------- footer ---------- */
.footer {
  padding: 36px 0 24px;
  font-size: 0.9rem;
  color: rgba(251, 241, 226, 0.8);
}

.footer a {
  color: var(--masa-light);
  text-decoration: none;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.footer-grid p {
  margin-bottom: 6px;
}

.footer-grid .brand {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

/* ============================================================
   Order page
   ============================================================ */
.order-wizard {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 90px;
}

.wizard-progress {
  margin-bottom: 28px;
}

.wizard-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-line);
  overflow: hidden;
  margin-bottom: 10px;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--masa), var(--achiote));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.wizard-progress-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

.order-step {
  display: none;
  animation: riseIn 0.35s ease both;
}

.order-step.active {
  display: block;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.wizard-nav .btn {
  flex: 1;
  justify-content: center;
}

.wizard-nav .btn-outline:disabled {
  visibility: hidden;
}

.review-section {
  border-bottom: 1px solid var(--cream-line);
  padding: 16px 0;
}

.review-section:first-child {
  padding-top: 0;
}

.review-section:last-child {
  border-bottom: none;
}

.review-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-section-head h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--leaf-dark);
  margin: 0;
}

.review-edit {
  background: none;
  border: none;
  color: var(--achiote);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
}

.review-section p {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--brown-soft);
}

.card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.card + .card {
  margin-top: 22px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--brown-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: var(--cream);
  color: var(--brown);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--masa);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px dashed var(--cream-line);
}

@media (max-width: 560px) {
  .item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .item-row .field {
    flex: 1 1 130px;
  }
  .item-row .qty-input {
    width: 84px !important;
  }
}

.item-row:last-of-type {
  border-bottom: none;
}

.qty-input {
  width: 70px !important;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--achiote);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
}

.add-item-btn {
  margin-top: 10px;
  background: var(--cream-2);
  border: 1.5px dashed var(--brown-soft);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.fulfillment-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.fulfillment-toggle button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: var(--cream);
  font-weight: 600;
  cursor: pointer;
}

.fulfillment-toggle button.active {
  background: var(--leaf);
  color: var(--cream);
  border-color: var(--leaf);
}

.payment-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-toggle button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-line);
  background: var(--cream);
  font-weight: 600;
  cursor: pointer;
}

.payment-toggle button.active {
  background: var(--achiote);
  color: var(--cream);
  border-color: var(--achiote);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--brown-soft);
}

.summary-row.total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--leaf-dark);
  border-top: 1px solid var(--cream-line);
  margin-top: 8px;
  padding-top: 14px;
}

.estimate-banner {
  background: var(--cream-2);
  border: 1.5px solid var(--masa);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.estimate-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--leaf-dark);
}

.notice {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.notice.error {
  background: #fbe3e6;
  color: var(--achiote-dark);
}

.notice.ok {
  background: #e1eef8;
  color: var(--leaf-dark);
}

.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--cream-line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
}

.address-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--brown);
  cursor: pointer;
  border-bottom: 1px solid var(--cream-line);
}

.address-suggestions button:last-child {
  border-bottom: none;
}

.address-suggestions button:hover,
.address-suggestions button.active {
  background: var(--cream-2);
}

.zelle-box {
  background: var(--cream-2);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.92rem;
}

.ingredient-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px 14px;
}

.ingredient-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 0;
  cursor: pointer;
}

.ingredient-checkboxes input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--achiote);
  flex-shrink: 0;
}

.ingredient-checkboxes label.checked {
  color: var(--achiote-dark);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: var(--achiote);
}

/* ============================================================
   Admin page
   ============================================================ */
.admin-shell {
  padding: 48px 0 90px;
}

.admin-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.stat {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 160px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--leaf-dark);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.orders-table th,
.orders-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cream-line);
  font-size: 0.9rem;
  vertical-align: top;
}

.orders-table th {
  background: var(--cream-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-queued { background: #f2e2c4; color: #8a5a12; }
.status-in_progress { background: #d9e6f5; color: #2b5ea3; }
.status-ready { background: #d8ecd9; color: #2c6b31; }
.status-completed { background: #e2e2e2; color: #444; }
.status-cancelled { background: #f6d7d2; color: #99342a; }

.status-select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--cream-line);
}

.pay-btn {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: var(--achiote);
  color: #fff;
  cursor: pointer;
}

.login-card {
  max-width: 420px;
  margin: 100px auto;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 12px; }
}

@media (max-width: 780px) {
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .story-card, .story-card + .story-card { transform: none; margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4/3; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.15rem; gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav .container { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .brand { font-size: 0.92rem; gap: 5px; }
  .brand-mark { width: 20px; height: 20px; }
  .brand span { display: none; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 8px 14px; font-size: 0.85rem; }
}
