@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/pjs-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/pjs-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;
}

:root {
  --primary: #276b55;
  --primary-2: #3c866b;
  --accent: #e9aa4a;
  --bg: #f4f3ed;
  --bg-2: #fbfaf6;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --text: #1d382e;
  --muted: #6d7b72;
  --border: rgba(29, 56, 46, 0.12);
  --shadow: 0 16px 42px rgba(34, 52, 43, 0.12);
  --shadow-sm: 0 8px 22px rgba(34, 52, 43, 0.08);
  --danger: #e23b3b;
  --nav-h: 62px;
  --radius: 18px;
}

[data-theme="dark"] {
  --primary: #69b692;
  --primary-2: #438d6d;
  --accent: #e9aa4a;
  --bg: #111a16;
  --bg-2: #18251e;
  --surface: rgba(27, 41, 33, 0.94);
  --surface-solid: #1b2921;
  --text: #edf4ed;
  --muted: #a3b2a7;
  --border: rgba(181, 211, 190, 0.16);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30rem),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--primary);
  border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent);
  box-shadow: 0 6px 20px rgba(11, 61, 145, 0.22);
}

.nav-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  flex-shrink: 0;
}

.brand-logo { width: 34px; height: 34px; display: grid; place-items: center; }
.brand-logo svg { width: 34px; height: 34px; }

.brand-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.brand-text small { font-size: 10px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.nav-link.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(0.96); }

#themeToggle .ico-moon { display: none; }
[data-theme="dark"] #themeToggle .ico-sun { display: none; }
[data-theme="dark"] #themeToggle .ico-moon { display: block; }

.hamburger { display: block; position: relative; }
.hamburger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.hamburger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(4, 12, 30, 0.5);
  backdrop-filter: blur(2px);
  z-index: 55;
  animation: fade 0.25s ease;
}
.overlay[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Account panel ===== */
.account-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: min(360px, 88vw);
  height: calc(100dvh - var(--nav-h));
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  z-index: 58;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}
.account-panel.open { transform: translateX(0); }

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent);
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  flex-shrink: 0;
}
.account-meta { flex: 1; min-width: 0; }
.account-name { margin: 0; font-weight: 800; font-size: 16px; }
.account-id { margin: 2px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.account-id span { font-weight: 800; color: var(--primary); }

.panel-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.panel-close:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }

.account-body { padding: 16px; overflow-y: auto; }
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.panel-card h3 { margin: 0 0 4px; font-size: 15px; }
.panel-card .muted { margin: 0; font-size: 12.5px; color: var(--muted); }

.panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}
.panel-toggle-text { display: block; }
.panel-toggle:hover h3 { color: var(--primary); }
.panel-toggle .toggle-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.28s ease, color 0.2s ease;
}
.panel-toggle:hover .toggle-chevron { color: var(--primary); }
.panel-toggle[aria-expanded="true"] .toggle-chevron { transform: rotate(180deg); }

.feedback-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.feedback-wrap.open { max-height: 520px; opacity: 1; }
.feedback-wrap form { padding-top: 12px; }

/* ===== Forms ===== */
form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 5px;
  color: var(--text);
}
input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-2) 22%, transparent);
}

/* ===== Buttons ===== */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(47, 126, 240, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.btn-block { width: 100%; margin-top: 12px; }

/* ===== Content ===== */
.content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 30px) 24px 52px;
}

.canteen-section { display: none; animation: rise 0.4s ease; }
.canteen-section.active { display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 258px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #fff;
  background: #254537;
  box-shadow: var(--shadow);
}
.section-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 41, 31, 0.94) 0%, rgba(17, 41, 31, 0.8) 44%, rgba(17, 41, 31, 0.24) 100%);
}
.section-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.store-avatar {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  flex: 0 0 92px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  color: var(--primary);
  background: #fffdf6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.store-mark { width: 62px; height: 62px; object-fit: contain; }
.store-name-badge {
  position: absolute;
  right: -9px;
  bottom: -9px;
  padding: 5px 9px;
  border: 3px solid #fffdf6;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.hero-copy { max-width: 590px; }
.hero-eyebrow,
.section-kicker {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-eyebrow { color: #f3c878; }
.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.hero-description {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 2vw, 17px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 2px 18px;
}
.section-kicker { color: var(--primary); margin-bottom: 4px; }
.section-heading h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.035em;
}
.section-heading .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--bg);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.4; }
.card-price { font-size: 15px; font-weight: 800; color: var(--primary); margin: 0; }
.card-foot { margin-top: auto; }

.card-add {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.card-add:hover { filter: brightness(1.12); }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 10px;
  padding: 3px;
}
.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  background: var(--surface-solid);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.stepper button:hover { background: var(--primary); color: #fff; }
.stepper .qty { font-weight: 800; font-size: 14px; min-width: 24px; text-align: center; }

/* ===== Bottom sheet (persistent) ===== */
.sheet-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 0 12px 12px;
  pointer-events: none;
}
.sheet-wrap[hidden] { display: none; }

.bottom-sheet {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 42px rgba(4, 20, 50, 0.3);
  animation: sheetUp 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.bottom-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.9;
}
@keyframes sheetUp { from { transform: translateY(120%); } to { transform: none; } }

.sheet-handle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 12px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.sheet-handle:active { cursor: grabbing; }
.sheet-handle:focus-visible { outline: 2px solid var(--primary-2); outline-offset: -4px; }
.handle-bar { width: 46px; height: 5px; border-radius: 999px; background: var(--border); transition: background 0.2s ease, width 0.2s ease; }
.sheet-handle:hover .handle-bar { background: var(--primary-2); width: 60px; }
.handle-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: transform 0.3s ease;
}
.bottom-sheet.collapsed .handle-chevron { transform: translateY(-50%) rotate(180deg); }

.sheet-panel {
  max-height: 58dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}
.bottom-sheet.collapsed .sheet-panel { max-height: 0; opacity: 0; }
.sheet-panel::-webkit-scrollbar { width: 8px; }
.sheet-panel::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 999px; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 18px 10px; }
.sheet-head h2 { margin: 0; font-size: 16px; }
.sheet-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sheet-body { padding: 0 14px 10px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.cart-info { flex: 1; min-width: 0; }
.cart-info h4 { margin: 0 0 2px; font-size: 13.5px; }
.cart-unit { font-size: 12px; color: var(--muted); margin: 0; }
.cart-sub { font-size: 13px; font-weight: 800; color: var(--primary); margin: 2px 0 0; }
.cart-stepper { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-stepper button {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-solid);
  color: var(--primary); font-weight: 800; font-size: 17px; cursor: pointer;
  display: grid; place-items: center;
}
.cart-stepper button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-stepper .qty { min-width: 20px; text-align: center; font-weight: 800; }

.sheet-foot {
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 5%, transparent));
  display: flex;
  align-items: center;
  gap: 14px;
}
.total-line { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.total-line span { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.total-line strong { font-size: 20px; color: var(--primary); line-height: 1.1; }
.sheet-foot .btn-block { width: auto; margin-top: 0; padding: 13px 26px; flex-shrink: 0; }

/* ===== Empty cart ===== */
.empty-cart { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty-cart .emoji { font-size: 40px; display: block; margin-bottom: 8px; }

/* ===== Payment modal ===== */
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-wrap[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 30, 0.6); animation: fade 0.25s ease; }
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88dvh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: pop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 0 18px 16px; overflow-y: auto; }

.pay-list { display: flex; flex-direction: column; }
.pay-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pay-row:last-child { border-bottom: 0; }
.pay-row .pay-name { font-weight: 700; }
.pay-row .pay-qty { color: var(--muted); font-size: 12px; display: block; }
.pay-row .pay-amt { font-weight: 700; white-space: nowrap; }

.grand-total { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; margin: 10px 0 16px; border-radius: 14px; background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; }
.grand-total strong { font-size: 19px; }

.pay-methods-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method span {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  transition: all 0.18s ease;
}
.method input:checked + span {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.method input:focus-visible + span { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.pay-error { color: var(--danger); font-size: 12.5px; font-weight: 700; margin: 10px 0 0; }
.pay-error[hidden] { display: none; }

.modal-foot { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.modal-foot .btn { flex: 1; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 100;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 26px 16px 34px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.footer a { font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Polish ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label.method:focus-within {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

body.cart-active { padding-bottom: 132px; }

/* ===== Responsive: tablet ===== */
@media (min-width: 640px) {
  .content { max-width: min(94%, 1240px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ===== Responsive: desktop ===== */
@media (min-width: 1024px) {
  .content { max-width: 1240px; padding-left: 28px; padding-right: 28px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .bottom-sheet { margin-bottom: 0; }
}

@media (max-width: 520px) {
  .brand-text small { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-inner { padding: 0 12px; gap: 8px; }
  .content { padding: calc(var(--nav-h) + 20px) 16px 38px; }
  .section-hero {
    min-height: 270px;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    text-align: center;
    border-radius: 22px;
  }
  .section-hero::after {
    background: linear-gradient(180deg, rgba(17, 41, 31, 0.65), rgba(17, 41, 31, 0.92));
  }
  .store-avatar { width: 78px; height: 78px; flex-basis: 78px; border-radius: 24px; }
  .store-mark { width: 54px; height: 54px; }
  .hero-copy h2 { font-size: 34px; }
  .hero-description { margin-top: 8px; }
  .section-heading { margin-top: 27px; }
  .grid { gap: 12px; }
  .card { border-radius: 16px; }
  .card-body { padding: 11px; }
  .card-name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
