:root {
  --rose: #c94b54;
  --rose-deep: #912f33;
  --rose-soft: #cf564d;
  --cream: #f8f1ea;
  --cream-2: #f3e6da;
  --paper: #fffdfb;
  --ink: #3c2426;
  --muted: #8a5c58;
  --line: rgba(145, 47, 51, 0.14);
  --shadow: 0 14px 40px rgba(145, 47, 51, 0.12);
  --radius: 22px;
  --font: "Outfit", "Gill Sans", Calibri, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }

.app {
  width: 100%;
  min-height: 100dvh;
  background: var(--cream);
  position: relative;
}

.patterns { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.patterns img {
  position: absolute;
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: sepia(0.35) saturate(1.1) hue-rotate(-12deg);
  user-select: none;
}
.patterns .tr { top: -40px; right: -70px; width: 240px; }
.patterns .bl { bottom: 40px; left: -90px; width: 280px; }

.view { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.view[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid rgba(201, 75, 84, 0.12);
}
.logo { height: 36px; width: auto; }
.icon-btn, .back-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.icon-btn { position: relative; background: transparent; }
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.avatar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f6ddd9;
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.avatar.is-in {
  background: rgba(235, 34, 43, 0.1);
  color: #c94b54;
  border: 1px solid rgba(235, 34, 43, 0.2);
  font-size: 12px;
  font-weight: 800;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 40px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
}
.flag {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(145, 47, 51, 0.12);
}
.flag svg { display: block; width: 28px; height: 28px; }
.flag-us {
  background:
    linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 46% 54% no-repeat,
    repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px);
}
.pop {
  position: fixed;
  z-index: 25;
  width: min(280px, calc(100% - 24px));
  padding: 8px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 16px 40px rgba(60, 36, 38, 0.18);
}
.pop button.menu-row, .pop a.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  font-weight: 650;
  color: var(--rose-deep);
  text-decoration: none;
}
.pop button.menu-row:hover, .pop a.menu-row:hover { background: #fff5f3; }
.pop .field { margin-top: 8px; }
.pop .primary { margin-top: 10px; }
.pop-name { margin: 4px 10px 0; font-weight: 750; color: var(--rose-deep); }
.pop-phone { margin: 0 10px 8px; color: var(--muted); font-size: 13px; }
.pop.user-menu {
  width: 188px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f6ebe0;
  border: 1px solid #f3f4f6;
  box-shadow: 0 18px 40px rgba(34, 27, 16, 0.18);
}
.pop.user-menu .user-id { padding: 8px 12px 10px; border-bottom: 1px solid #f3f4f6; }
.pop.user-menu .pop-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #221b10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pop.user-menu .pop-phone { margin: 1px 0 0; font-size: 11px; font-weight: 700; color: #6b7280; }
.pop.user-menu .menu-row {
  gap: 12px;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #221b10;
}
.pop.user-menu .menu-row svg { color: #6b7280; flex: none; }
.pop.user-menu .menu-row:hover { background: rgba(229, 231, 235, 0.7); }
.account-name { margin: 8px 0 0; font-size: 20px; font-weight: 800; color: #221b10; }
.account-phone { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.tx-empty { margin: 18px 0; text-align: center; color: var(--muted); font-weight: 650; }
.tx-row {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
}
.tx-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.badge[hidden] { display: none !important; }
.top-title { font-weight: 650; font-size: 15px; color: var(--rose-deep); }
.grow { flex: 1; }

.home { padding: 8px var(--gutter) 28px; }
.kicker {
  margin: 8px 0 0;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--rose-soft);
}
.home h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--rose-deep);
}
.home h1 em { font-style: italic; font-weight: 560; }
.lead { margin: 10px 0 0; color: var(--muted); max-width: 34ch; }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
  align-items: stretch;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 22px 22px 18px;
  border: 0;
  border-radius: 26px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.choice::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -36px;
  top: -48px;
  pointer-events: none;
}
.choice-instant {
  background: linear-gradient(165deg, #d65a62 0%, #c94b54 48%, #b13e48 100%);
  color: white;
  box-shadow: 0 16px 32px rgba(201, 75, 84, 0.28);
}
.choice-instant::after { background: rgba(255, 255, 255, 0.1); }
.choice-later {
  background: linear-gradient(180deg, #fffdfb 0%, #f8efe8 100%);
  color: var(--rose-deep);
  box-shadow: 0 14px 30px rgba(145, 47, 51, 0.1), inset 0 0 0 1.5px rgba(201, 75, 84, 0.2);
}
.choice-later::after { background: rgba(201, 75, 84, 0.08); }
.choice:hover { transform: translateY(-3px); }
.choice-instant:hover { box-shadow: 0 20px 36px rgba(201, 75, 84, 0.34); }
.choice-later:hover { box-shadow: 0 18px 34px rgba(145, 47, 51, 0.14), inset 0 0 0 1.5px rgba(201, 75, 84, 0.35); }
.choice:active { transform: translateY(0) scale(0.99); }
.choice-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}
.choice-icon svg { width: 72px; height: 72px; }
.choice-kicker {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.choice-instant .choice-kicker { color: rgba(255, 255, 255, 0.82); }
.choice-later .choice-kicker { color: var(--rose-soft); }
.choice strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.choice p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 32ch;
}
.choice-instant p { color: rgba(255, 255, 255, 0.92); }
.choice-later p { color: var(--muted); }
.choice-go {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.choice-instant .choice-go { color: white; }
.choice-later .choice-go { color: var(--rose); }
.choice-go::after { content: " →"; }

@media (max-width: 640px) {
  .choices { gap: 10px; }
  .choice { padding: 16px 14px 14px; border-radius: 20px; }
  .choice-icon, .choice-icon svg { width: 56px; height: 56px; }
  .choice-icon { margin-bottom: 10px; }
  .choice p { font-size: 13px; }
  .choice strong { font-size: 28px; }
}

.home-note {
  margin: 18px 4px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.7);
  color: var(--rose-deep);
  font-size: 14px;
}
.home-note strong { font-weight: 700; }
.resume {
  margin-top: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--rose-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slider {
  position: relative;
  z-index: 1;
  margin: 4px var(--gutter) 0;
  height: clamp(200px, 42vw, 380px);
  border-radius: 22px;
  overflow: hidden;
  background: #e7d3cb;
  box-shadow: var(--shadow);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}
.slide { position: relative; min-width: 100%; height: 100%; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 28px;
  background: linear-gradient(transparent, rgba(60, 28, 32, 0.78));
  color: white;
}
.slide strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 26px;
  line-height: 1.05;
}
.slide span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.slider-arrow {
  position: absolute;
  top: 42%;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  display: grid;
  place-items: center;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}
.slider-dots button.is-on { width: 22px; background: white; }

.locations { margin-top: 28px; scroll-margin-top: 72px; }
.locations h2 {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 34px;
  color: var(--rose-deep);
}
.locations .hint { text-align: center; margin-top: 6px; }
.loc {
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(145, 47, 51, 0.06);
}
.loc h3 { margin: 0; font-size: 16px; color: var(--rose-deep); }
.loc-hours { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--rose-soft); }
.loc p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.loc a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 32px var(--gutter);
  background: #cf564d;
  color: white;
}
.foot-grid { display: grid; gap: 32px; }
.foot-brand {
  margin: 0;
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-stretch: condensed;
  font-size: 24px;
  letter-spacing: 0.025em;
  line-height: 1.2;
}
.foot-tag {
  margin: 8px 0 0;
  max-width: 20rem;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.9);
}
.socials { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: white;
  display: grid;
  place-items: center;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer a,
.foot-row {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.foot-row { background: none; }
.site-footer a:hover,
.foot-row:hover { text-decoration: underline; }
.site-footer .socials a { background: rgba(255, 255, 255, 0.15); }
.site-footer .socials a:hover { background: rgba(255, 255, 255, 0.25); text-decoration: none; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-contact p { margin: 0; font-size: 14px; font-weight: 500; }
.foot-row { display: flex; align-items: center; gap: 8px; }
.fine-foot {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.contact-sheet {
  position: fixed;
  z-index: 31;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  margin: 0 auto;
  max-height: min(92dvh, 760px);
  overflow: auto;
  background: #f6efe8;
  border-radius: 28px 28px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  letter-spacing: 0;
  text-transform: none;
}
.contact-sheet .field { margin-top: 10px; }
.contact-sheet .primary { margin-top: 12px; background: #eb222b; }
@media (min-width: 640px) {
  .contact-sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 28px; }
}
@media (min-width: 768px) {
  .site-footer { padding-top: 40px; padding-bottom: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}

.pad { padding: 4px var(--gutter) 120px; }
#view-checkout .pad { padding-bottom: 150px; }
.section-label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rose-soft);
}
.hint { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option, .store, .addr, .slot, .courier {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  text-align: left;
}
.option, .slot, .courier { padding: 12px; }
.option strong, .slot strong, .courier strong, .store strong, .addr strong {
  display: block;
  font-size: 15px;
  color: var(--rose-deep);
}
.option span, .slot span, .courier span, .store span, .addr span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.store, .addr { width: 100%; padding: 12px 14px; margin-bottom: 8px; }
.store-km {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
  color: var(--rose);
}
.nearest-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--rose-deep);
}
.add-address { margin-top: 4px; }
.is-on {
  border-color: var(--rose);
  background: #fff5f3;
  box-shadow: inset 0 0 0 1px var(--rose);
}
.when-grid { display: grid; gap: 4px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.field { display: grid; gap: 6px; margin-top: 8px; }
.field span { font-size: 13px; font-weight: 650; color: var(--rose-deep); }
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--rose); }
.date-field { position: relative; }
.date-face {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  color: var(--ink);
}
.date-field:focus-within .date-face { border-color: var(--rose); }
.date-field input[type="date"] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.primary, .ghost {
  width: 100%;
  border-radius: 999px;
  min-height: 52px;
  font-weight: 700;
}
.primary {
  border: 0;
  background: var(--rose);
  color: white;
  box-shadow: 0 10px 24px rgba(201, 75, 84, 0.28);
}
.primary:disabled { background: #e4c7c4; box-shadow: none; }
.ghost {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--rose-deep);
}
.sticky-action {
  position: sticky;
  bottom: 0;
  margin: 18px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, transparent);
}
.form-error { min-height: 1.2em; margin: 8px 0 0; color: var(--rose); font-size: 13px; font-weight: 650; }

.mode-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px var(--gutter) 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.mode-chip b { display: block; font-size: 13px; color: var(--rose-deep); }
.mode-chip span { display: block; font-size: 12px; color: var(--muted); }
.mode-chip button {
  border: 0;
  background: #fff1ef;
  color: var(--rose-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}

.search-wrap { position: relative; z-index: 1; margin: 12px var(--gutter) 0; }
.search-wrap input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: white;
  padding: 0 16px 0 42px;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.search-wrap svg { position: absolute; left: 14px; top: 13px; color: var(--muted); }

.catalog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px var(--gutter) 110px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, var(--sans);
}
.cat-title {
  margin: 0 0 8px;
  color: #a34343;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  border: 0;
  background: #e5e7eb;
  color: #221b10;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.cat.is-on { background: #a34343; color: white; }

.grid { display: grid; gap: 32px; padding: 0; }
.product { background: transparent; }
.product-photo {
  position: relative;
  background: rgba(229, 231, 235, 0.8);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.product-qty { position: absolute; right: 8px; bottom: 8px; }
.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.product-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: #a34343;
}
.price { margin: 2px 0 0; font-weight: 650; }
.price-pill {
  flex-shrink: 0;
  border: 1px solid #a34343;
  border-radius: 999px;
  background: white;
  color: #a34343;
  padding: 2px 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.product-desc {
  margin: 4px 0 0;
  color: #a34343;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
}
.open-detail {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  text-align: left;
  cursor: pointer;
}
.plus, .stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}
.product-qty .stepper {
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.product-qty .stepper button { width: 28px; height: 28px; font-size: 18px; box-shadow: none; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { font-size: 20px; }
.stepper span { min-width: 16px; text-align: center; font-weight: 800; color: #221b10; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.sheet .hint { white-space: pre-line; }

.dock {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px var(--gutter) 16px;
  pointer-events: none;
}
.view-cart {
  pointer-events: auto;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: #eb222b;
  color: white;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(235, 34, 43, 0.35);
}
.view-cart-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.view-cart-icon {
  position: relative;
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
}
.view-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #eb222b;
  border-radius: 999px;
  background: white;
  color: #eb222b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.view-cart-copy { min-width: 0; text-align: left; }
.view-cart-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}
.view-cart-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}
.view-cart-total {
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.checkout-dock { z-index: 25; }

#cart-modal, #pay-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}
#cart-modal .backdrop, #pay-modal .backdrop {
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.modal-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.modal-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: min(512px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  border-radius: 18px;
  background: #f6ebe0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
#cart-modal-body, #pay-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 16px 12px;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  color: #221b10;
}
.modal-head p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}
.modal-x {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(229, 231, 235, 0.9);
  color: #221b10;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 8px;
}
.modal-foot { flex-shrink: 0; padding: 8px 16px 16px; }
.modal-card .primary {
  background: #eb222b;
  box-shadow: 0 8px 22px rgba(235, 34, 43, 0.28);
}
.modal-foot .fine { margin: 8px 0 0; text-align: center; }
.modal-sub, .pay-totals, .bill {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #221b10;
  font-size: 14px;
  font-weight: 700;
}
.modal-sub, .pay-totals div, .bill div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.cart-row img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
}
.cart-row-copy { min-width: 0; flex: 1; }
.cart-row h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  color: #221b10;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-row p { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #6b7280; }
.line-price { font-size: 14px; color: #221b10; }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-ctrl button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  color: #221b10;
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.qty-ctrl span { min-width: 16px; text-align: center; font-weight: 800; color: #221b10; }

.fulfill-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 14px;
  background: #ece7e2;
}
.fulfill-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #9ca3af;
  font-weight: 800;
  cursor: pointer;
}
.fulfill-tabs button.is-on { background: #eb222b; color: white; }
.summary-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #221b10; }
.summary-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
}
.summary-line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.summary-line h3 { margin: 0; font-size: 14px; font-weight: 800; color: #221b10; }
.summary-line p { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: #6b7280; }
.summary-qty { display: grid; justify-items: end; gap: 4px; }
.summary-qty > span { font-size: 11px; font-weight: 700; color: #9ca3af; }
.add-product {
  width: 100%;
  min-height: 52px;
  margin: 8px 0 16px;
  border: 1.5px dashed #eb222b;
  border-radius: 12px;
  background: transparent;
  color: #eb222b;
  font-weight: 700;
  cursor: pointer;
}
.bill { margin-bottom: 14px; }
.voucher {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.voucher input {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 14px;
  outline: none;
}
.voucher button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eb222b;
  color: white;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.voucher .form-error { grid-column: 1 / -1; }
.pay-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pay-card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 16px;
  background: white;
}
.pay-pair .pay-card { margin-bottom: 0; }
.pay-k { margin: 0; color: #eb222b; font-size: 13px; font-weight: 700; }
.pay-card strong { display: block; margin-top: 6px; color: #221b10; font-size: 16px; line-height: 1.3; }
.pay-card p { margin: 4px 0 0; color: #4b5563; font-size: 13px; line-height: 1.4; }
.pay-grand {
  margin-top: 4px;
  padding-top: 8px;
}
.pay-grand strong { color: #eb222b; font-size: 18px; }
.pay-totals .free, .bill .free { color: #16a34a; }

.lines { display: grid; gap: 10px; }
.line, .sum-card, .total-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 12px;
}
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.line h3 { margin: 0; font-size: 15px; color: var(--rose-deep); }
.line p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.sum-card h2, .block-title { margin: 0 0 6px; font-size: 16px; color: var(--rose-deep); }
.sum-row, .total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 14px;
}
.total-row { font-size: 16px; font-weight: 750; color: var(--rose-deep); }
.free { color: #2f7d4a; font-weight: 700; }
.progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: #f3e0dc;
  overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--rose); border-radius: inherit; }
.note-mini { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.done { padding: 28px var(--gutter) 40px; text-align: center; }
.done-mark {
  width: 84px;
  height: 84px;
  margin: 12px auto 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--rose);
  color: white;
}
.done h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 40px;
  color: var(--rose-deep);
}
.order-no { margin: 8px 0 0; font-weight: 750; letter-spacing: 0.04em; }
.done .sum-card { text-align: left; margin-top: 18px; }
.done .primary, .done .ghost { margin-top: 10px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 13px; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(60, 36, 38, 0.45);
}
.sheet {
  position: fixed;
  z-index: 31;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: min(88dvh, 760px);
  overflow: auto;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom));
}
.grabber { width: 42px; height: 4px; border-radius: 99px; background: #e4cdc6; margin: 4px auto 12px; }
.sheet img.hero { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.sheet h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 32px;
  color: var(--rose-deep);
}
.sheet .price { font-size: 18px; }
.sheet-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.sheet-actions .primary { flex: 1; }

.toast {
  position: fixed;
  z-index: 40;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  width: auto;
  background: var(--rose-deep);
  color: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
}
[hidden] { display: none !important; }

@media (min-width: 768px) {
  .when-grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .locations-list, #home-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .loc { margin-top: 0; }
}

@media (min-width: 1024px) {
  .catalog { flex-direction: row; align-items: flex-start; gap: 56px; }
  .cats-col { position: sticky; top: 84px; width: 280px; flex-shrink: 0; }
  .cats { flex-direction: column; gap: 2px; overflow: visible; }
  .cat {
    width: 100%;
    border-radius: 0;
    background: transparent;
    color: #a34343;
    border-bottom: 1px solid rgba(163, 67, 67, 0.35);
    padding: 12px 4px;
    font-size: 17px;
    white-space: normal;
  }
  .cat.is-on {
    border-bottom-color: transparent;
    border-radius: 16px;
    background: #a34343;
    color: white;
    padding: 8px 16px;
  }
  .grid { flex: 1; min-width: 0; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 8rem; }
}
