/* =========================================================
   Casa Verde Press — public website
   Mobile-first. Breakpoints: 40em (large phone / small tablet),
   60em (tablet landscape / desktop), 75em (wide desktop).
   ========================================================= */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.section-title {
  font-size: var(--step-4);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  min-height: 64px;
  display: flex; align-items: center; gap: 0.75rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--olive-deep); text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.wordmark__leaf { width: 28px; height: 28px; }
.wordmark__text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.wordmark__text em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; margin-left: 0.35em; vertical-align: 0.25em; color: var(--olive); }

.site-nav { order: 3; }
.site-nav__toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--olive-deep);
}
.site-nav__toggle-bars, .site-nav__toggle-bars::before, .site-nav__toggle-bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.site-nav__toggle-bars::before, .site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bars::before { top: -6px; }
.site-nav__toggle-bars::after { top: 6px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list {
  list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1.25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line);
  display: none;
}
.site-nav__list.is-open { display: block; animation: drop 0.25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.site-nav__list a {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--olive-deep); text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.cart-button {
  order: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 0.85rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--olive-deep); cursor: pointer;
  font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cart-button:hover { border-color: var(--olive); background: var(--cream-2); }
.cart-button__label { display: none; }
.cart-button__count {
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--olive); color: var(--cream);
  font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
.cart-button__count.is-empty { background: var(--cream-3); color: var(--text-muted); }
.cart-button.is-bumped .cart-button__count { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

@media (min-width: 40em) {
  .cart-button__label { display: inline; }
}
@media (min-width: 60em) {
  .site-nav { order: 1; margin-right: 1.5rem; }
  .site-nav__toggle { display: none; }
  .site-nav__list { position: static; display: flex; gap: 2rem; padding: 0; background: none; border: 0; }
  .site-nav__list a {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    border: 0; min-height: 44px; position: relative; color: var(--text);
  }
  .site-nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--olive);
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
  }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 2.5rem; align-items: center;
}
.hero__copy { text-align: center; display: grid; justify-items: center; }
.hero__eyebrow { margin-bottom: 1.25rem; letter-spacing: 0.18em; }
@media (min-width: 40em) { .hero__eyebrow { letter-spacing: 0.26em; } }
.hero__logo { width: min(74vw, 21rem); margin: 0 0 1rem; }
.hero__logo img { width: 100%; }
.hero__lede {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--step-2); line-height: 1.25; color: var(--olive-deep);
  max-width: 24ch; margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero__actions .btn { flex: 1 1 12rem; }
.hero__facts {
  margin: 2.25rem 0 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero__facts > div { padding: 0.9rem 0.4rem 0; border-right: 1px solid var(--line); }
.hero__facts > div:last-child { border-right: 0; }
.hero__facts dt { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.hero__facts dd { margin: 0; font-size: 0.88rem; line-height: 1.35; color: var(--olive-deep); font-weight: 500; }

.hero__visual { position: relative; width: min(72vw, 19rem); justify-self: center; }
.hero__badge {
  position: absolute; width: 6.5rem; height: 6.5rem; left: -1.5rem; bottom: 1.25rem;
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.08em; fill: var(--olive);
}
.hero__badge-bg { fill: var(--cream); }
.hero__badge-ring { fill: none; stroke: var(--olive); stroke-width: 0.75; }
.hero__badge-whisk { fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; }
.hero__badge-text { transform-origin: 100px 100px; animation: turn 40s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

@media (min-width: 60em) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .hero__copy { text-align: left; justify-items: start; }
  .hero__logo { width: 26rem; margin-left: -0.6rem; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__facts { max-width: 34rem; }
  .hero__facts > div { padding-left: 0; padding-right: 1rem; margin-right: 1rem; }
  .hero__visual { width: 100%; max-width: 27rem; justify-self: end; }
  .hero__badge { width: 9rem; height: 9rem; left: -3.5rem; bottom: 2.5rem; }
}

/* ---------- Photo slots (illustration now, photography later) ---------- */
.photo-slot { position: relative; margin: 0; isolation: isolate; }
.photo-slot__art, .photo-slot picture, .photo-slot img {
  width: 100%; height: 100%; object-fit: cover;
}
.photo-slot--arch { aspect-ratio: 4 / 5; }
.photo-slot--arch > .photo-slot__art,
.photo-slot--arch > picture { border-radius: 999px 999px 0 0; overflow: hidden; }
.photo-slot--arch::after {
  /* offset outline arch for an editorial, layered frame */
  content: ""; position: absolute; inset: -0.7rem 0.7rem 0.7rem -0.7rem; z-index: -1;
  border: 1px solid var(--line-strong); border-radius: 999px 999px 0 0;
}
.photo-slot__art { display: grid; place-items: end center; background: var(--sage-soft); }
.photo-slot__art svg { width: 78%; height: auto; }
.photo-slot.has-photo .photo-slot__art { display: none; }
.photo-slot picture { display: block; }
/* Keep each drink comfortably inside the arch */
.photo-slot--hero img { object-position: 50% 62%; }
.photo-slot--about img { object-position: 50% 45%; }

/* Illustration colours */
.ill-line { fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill-matcha { fill: var(--sage); }
.ill-fill-milk { fill: var(--paper); }
.ill-fill-coffee { fill: #b99a76; }
.ill-fill-deep { fill: #8d6c4c; }
.ill-fill-juice { fill: #c9b45f; }
.ill-fill-leaf { fill: var(--olive); }
.ill-fill-cream { fill: var(--cream); }
.ill-ground { fill: var(--cream-3); }

/* ---------- Menu ---------- */
.menu { padding-block: var(--section) calc(var(--section) * 0.75); background: var(--paper); border-top: 1px solid var(--line); }
.menu__head {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 1rem; margin-bottom: 2rem;
}
.menu__intro { color: var(--text-muted); max-width: 40ch; margin: 0; }
@media (min-width: 60em) {
  .menu__head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 3rem; }
  .menu__intro { justify-self: end; }
}

.menu__tabs {
  position: sticky; top: 64px; z-index: 30;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.menu__tabs ul {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  list-style: none; padding: 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
}
.menu__tabs ul::-webkit-scrollbar { display: none; }
.menu__tabs a {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  min-height: 52px; padding: 0 0.85rem;
  text-decoration: none; color: var(--text-muted);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.3s var(--ease);
}
.menu__tabs a span { font-family: var(--font-display); font-style: italic; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--matcha); }
.menu__tabs a:hover { color: var(--olive-deep); }
.menu__tabs a[aria-current="true"] { color: var(--olive-deep); border-bottom-color: var(--olive); }
.menu__tabs li:first-child a { padding-left: 0; }

.menu-category {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  display: grid; gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.menu-category:last-child { border-bottom: 0; }
.menu-category__aside { display: grid; gap: 0.75rem; align-content: start; }
.menu-category__number {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--matcha);
  display: flex; align-items: center; gap: 0.75rem;
}
.menu-category__number::after { content: ""; height: 1px; width: 3rem; background: var(--line-strong); }
.menu-category__title { font-size: var(--step-3); }
.menu-category__desc { color: var(--text-muted); margin: 0; max-width: 38ch; }
.menu-category__options { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.25rem 0 0; }
.menu-category__options li {
  font-size: 0.78rem; padding: 0.25rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--olive-deep); background: var(--cream);
}
.menu-category .photo-slot { display: none; }
.menu-category .photo-slot.has-photo { display: block; width: min(100%, 18rem); margin-top: 1rem; }

@media (min-width: 60em) {
  .menu-category { grid-template-columns: minmax(16rem, 0.8fr) 1.4fr; gap: 4rem; }
  .menu-category__aside { position: sticky; top: 150px; }
  .menu-category .photo-slot { display: block; width: min(100%, 15rem); margin-top: 2rem; }
}

.drinks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drink { border-bottom: 1px solid var(--line); }
.drink__button {
  width: 100%; display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 0.75rem 1rem;
  padding: 1rem 0.25rem; min-height: 72px;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
  transition: background-color 0.25s var(--ease), padding 0.3s var(--ease);
}
.drink__name {
  font-family: var(--font-display); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 500; line-height: 1.15;
  color: var(--olive-deep);
  display: flex; align-items: baseline; gap: 0.5rem; min-width: 0;
}
.drink__in-cart {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--olive); background: var(--sage-soft); border-radius: 999px; padding: 0.15em 0.6em; white-space: nowrap;
}
.drink__in-cart:empty { display: none; }
.drink__text { display: grid; gap: 0.3rem; min-width: 0; }
.drink__desc { font-size: 0.86rem; line-height: 1.45; color: var(--text-muted); max-width: 42ch; }
.drink__prices { display: grid; justify-items: end; gap: 0.1rem; font-variant-numeric: tabular-nums; }
.drink__price { font-size: 1rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.drink__price small { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.06em; margin-right: 0.35rem; }
.drink__add {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--olive);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.drink__button:hover { background: var(--cream); }
.drink__button:hover .drink__add, .drink__button:focus-visible .drink__add { background: var(--olive); color: var(--cream); border-color: var(--olive); transform: rotate(90deg); }
.drink__button:focus-visible { box-shadow: inset 0 0 0 2px var(--olive); border-radius: var(--radius); }

/* Dotted leader between name and price appears from 40em up */
.drink__leader { display: none; }
@media (min-width: 40em) {
  .drink__button { grid-template-columns: auto 1fr auto 44px; padding-inline: 0.75rem; }
  .drink__leader { display: block; border-bottom: 1px dotted var(--line-strong); align-self: center; transform: translateY(0.35rem); min-width: 1.5rem; }
  .drink__prices { display: flex; gap: 1.25rem; }
  .drink__button:hover { padding-left: 1.1rem; }
}

/* ---------- About ---------- */
.about { padding-block: var(--section); }
.about__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 3rem; align-items: center;
}
.about .photo-slot { width: min(68vw, 20rem); justify-self: center; }
.about__copy .section-title { margin: 0.6rem 0 1.5rem; }
.about__text {
  font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.95rem); line-height: 1.42; color: var(--text);
  max-width: 34em;
}
.about__sprig { width: 13rem; color: var(--olive); margin-top: 1.5rem; }
@media (min-width: 60em) {
  .about__inner { grid-template-columns: 0.75fr 1.25fr; gap: 5rem; }
  .about .photo-slot { width: 100%; max-width: 24rem; }
}

/* ---------- Hours & info (dark band) ---------- */
.info { background: var(--olive-deep); color: var(--cream); padding-block: var(--section); }
.info .eyebrow { color: var(--sage); }
.info .section-title { color: var(--cream); margin: 0.6rem 0 1.75rem; }
.info__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 3.5rem;
}
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { padding: 0.8rem 0; border-bottom: 1px solid rgba(250, 245, 239, 0.18); text-align: left; font-weight: 400; }
.hours-table th { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.hours-table td { text-align: right; }
.hours-table .is-closed td { color: rgba(250, 245, 239, 0.62); }
.hours-table .is-today th::after {
  content: "Today"; margin-left: 0.6rem; vertical-align: 0.2em;
  font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.15em 0.6em; border-radius: 999px; background: var(--sage); color: var(--forest);
}
.info__tz { font-size: 0.86rem; color: rgba(250, 245, 239, 0.75); margin-top: 1rem; }
.info-list { margin: 1.25rem 0 0; display: grid; gap: 0; }
.info-list__item { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-top: 1px solid rgba(250, 245, 239, 0.18); }
.info-list dt { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--sage-soft); }
.info-list dd { margin: 0; color: rgba(250, 245, 239, 0.9); max-width: 46ch; }
.info-list__text { margin: 0; }
.info-list__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.info-list__actions:empty { display: none; }
@media (min-width: 60em) {
  .info__inner { grid-template-columns: 0.9fr 1.1fr; gap: 6rem; }
  .info-list__item { grid-template-columns: 9rem 1fr; gap: 1.5rem; }
  .info__details { padding-top: 0.35rem; }
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); }
.contact__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 2rem;
}
.contact .section-title { margin: 0.6rem 0 1rem; }
.contact__lede { color: var(--text-muted); max-width: 36ch; }
.socials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.socials li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.socials__platform { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.socials__handle { font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); color: var(--olive-deep); overflow-wrap: anywhere; }
.socials__handle a { text-decoration: none; }
.socials__handle a:hover { text-decoration: underline; }
@media (min-width: 60em) {
  .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding: 4rem 0 calc(6rem + env(safe-area-inset-bottom)); }
.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; gap: 2rem; justify-items: center; text-align: center;
}
.site-footer__logo { width: 11rem; }
.site-footer a { color: var(--cream); }
.site-footer__meta p { margin: 0 0 0.4rem; }
.site-footer__small { font-size: 0.82rem; color: rgba(250, 245, 239, 0.72); margin-top: 1rem !important; }
@media (min-width: 60em) {
  .site-footer { padding-bottom: 4rem; }
  .site-footer__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 4rem; }
}

/* ---------- Floating order bar ---------- */
.order-bar {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 60%, rgba(250, 245, 239, 0));
  animation: rise 0.35s var(--ease);
}
.order-bar[hidden] { display: none; }
@keyframes rise { from { transform: translateY(100%); } }
.order-bar__button {
  width: 100%; min-height: 56px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--olive); color: var(--cream);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 1.1rem;
  font-size: 0.9rem; box-shadow: 0 8px 24px -12px rgba(44, 51, 31, 0.6);
}
.order-bar__button > :first-child { text-align: left; }
.order-bar__cta { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.order-bar__total { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
@media (min-width: 60em) {
  .order-bar { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0; background: none; width: 24rem; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--forest); color: var(--cream);
  padding: 0.75rem 1.1rem; border-radius: var(--radius);
  font-size: 0.9rem; max-width: calc(100% - 2rem); width: max-content;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.3s var(--ease);
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Dialog sheets ---------- */
.sheet {
  padding: 0; border: 0; margin: 0; background: transparent; color: var(--text);
  max-width: 100vw; max-height: 100dvh; width: 100%;
  inset: auto 0 0 0;
  overflow: visible;
}
.sheet::backdrop { background: rgba(36, 39, 29, 0.5); }
.sheet[open] { animation: sheet-up 0.35s var(--ease); }
.sheet[open]::backdrop { animation: fade 0.35s var(--ease); }
.sheet.is-closing { animation: sheet-down 0.25s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fade 0.25s var(--ease) reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.sheet__panel {
  display: flex; flex-direction: column;
  max-height: 92dvh;
  background: var(--cream);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.4);
}
.sheet__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter) 1rem;
  border-bottom: 1px solid var(--line);
}
.sheet__title { font-size: var(--step-2); margin-top: 0.2rem; }
.sheet__desc { font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); margin: 0.35rem 0 0; max-width: 40ch; }
.sheet__close {
  flex: none; width: 44px; height: 44px; margin: -0.4rem -0.5rem 0 0;
  border: 0; background: none; cursor: pointer; color: var(--olive-deep);
  display: grid; place-items: center; border-radius: 50%;
}
.sheet__close:hover { background: var(--cream-2); }
.sheet__body { padding: 1.25rem var(--gutter); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__body:focus { outline: none; }
.sheet__footer {
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--cream);
  display: grid; gap: 0.6rem;
}
.sheet__footer:empty { display: none; }

@media (min-width: 40em) {
  .sheet--customize { inset: 0; margin: auto; width: min(100% - 2rem, 32rem); height: fit-content; }
  .sheet--customize .sheet__panel { border-radius: 8px; max-height: min(88dvh, 52rem); }
  .sheet--customize[open] { animation: pop 0.3s var(--ease); }
  .sheet--customize.is-closing { animation: pop 0.2s var(--ease) reverse forwards; }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

  .sheet--cart { inset: 0 0 0 auto; width: min(100%, 30rem); height: 100dvh; }
  .sheet--cart .sheet__panel { height: 100dvh; max-height: none; border-radius: 0; }
  .sheet--cart[open] { animation: slide-in 0.35s var(--ease); }
  .sheet--cart.is-closing { animation: slide-out 0.25s var(--ease) forwards; }
  @keyframes slide-in { from { transform: translateX(100%); } }
  @keyframes slide-out { to { transform: translateX(100%); } }
}

/* Customize */
.customize__price { font-family: var(--font-display); font-size: 1.4rem; color: var(--olive-deep); margin: 0 0 1.25rem; }
.customize__note { font-size: 0.88rem; color: var(--text-muted); margin: -0.25rem 0 1rem; }
.customize__qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.25rem; }
.customize__qty-label { font-weight: 500; font-size: 0.9rem; }

/* Cart lines */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0.25rem; }
.cart-line__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--olive-deep); line-height: 1.15; }
.cart-line__details { font-size: 0.86rem; color: var(--text-muted); grid-column: 1; margin: 0; }
.cart-line__price { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.cart-line__controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; }
.cart-line.is-removing { animation: collapse 0.3s var(--ease) forwards; }
@keyframes collapse { to { opacity: 0; transform: translateX(16px); } }

.cart-empty { text-align: center; padding: 2.5rem 0 1rem; color: var(--text-muted); }
.cart-empty svg { width: 5rem; margin: 0 auto 1rem; }
.cart-empty p { margin-bottom: 1.25rem; }

.totals { margin: 1.25rem 0 0; display: grid; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--text-muted); }
.totals dd { margin: 0; }
.totals .totals__total { border-top: 1px solid var(--line-strong); padding-top: 0.6rem; margin-top: 0.35rem; font-weight: 500; font-size: 1.1rem; }
.totals .totals__total dt { color: var(--text); }

/* Checkout */
.checkout-section { margin-bottom: 1.75rem; }
.checkout-section > h3 {
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: var(--olive); margin: 0 0 0.85rem; display: flex; align-items: center; gap: 0.75rem;
}
.checkout-section > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field-row { display: grid; gap: 0 0.75rem; }
@media (min-width: 30em) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--zip { grid-template-columns: 1.6fr 1fr; } }
.city-fixed { padding: 0.7rem 0.85rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-muted); min-height: 48px; display: flex; align-items: center; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error-summary:focus { outline: none; box-shadow: var(--focus); }

/* Confirmation */
.confirm__number {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem; margin: 0 0 1rem;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.confirm__number dt { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.confirm__number dd { margin: 0; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--olive-deep); letter-spacing: 0.04em; line-height: 1.1; }
.confirm__statuses { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.confirm__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; padding: 0.75rem 0; border-block: 1px solid var(--line); margin-bottom: 1.25rem; }
.confirm__total strong { font-variant-numeric: lining-nums tabular-nums; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--olive-deep); font-variant-numeric: tabular-nums; }
.pay-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.pay-steps li { counter-increment: step; position: relative; padding: 0 0 1rem 2.6rem; }
.pay-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--olive);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; color: var(--olive-deep);
}
.pay-steps strong { font-weight: 500; }
.copy-inline { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.confirm__summary { font-size: 0.92rem; }
.confirm__summary summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--olive); }
.confirm__items { list-style: none; margin: 0.25rem 0 0; padding: 0; }
.confirm__items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dotted var(--line); }
.confirm__items small { display: block; color: var(--text-muted); }

/* ---------- Scroll reveal (only when JS + motion are OK) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero__badge-text { animation: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem var(--gutter); }
.not-found img { width: 12rem; margin: 0 auto 2rem; }
.not-found h1 { font-size: var(--step-3); margin-bottom: 1rem; }

/* ---------- Small shared pieces ---------- */
.hint { font-size: 0.86rem; color: var(--text-muted); }
.field-label { font-size: 0.9rem; font-weight: 500; }
.checkout-section-title {
  font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: var(--olive); margin: 1.5rem 0 0.9rem;
}
.customize__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
