/* =====================================================================
   كشري السلطان — El Sultan Koshary
   Awwwards-Inspired Modern Egyptian Culinary Identity
   Palette: Tomato Red (#C8102E), Golden Cumin (#E59A24),
            Warm Off-White (#FAF7F2), Charcoal Ink (#1A1A1A)
   ===================================================================== */
:root {
  --brand: #c8102e;
  --brand-dark: #9e0b23;
  --brand-soft: #fdf1f3;
  --gold: #e59a24;
  --gold-soft: #fef7e8;
  --ink: #1a1a1a;
  --ink-2: #3d3530;
  --muted: #6f645c;
  --bg: #faf7f2;
  --bg-soft: #f2ece2;
  --card: #fffdf9;
  --line: #e6ddd0;
  --ok: #157a43;
  --bad: #c8102e;
  --wa: #178a47;
  --r: 18px;
  --shadow-card: 0 4px 16px rgba(26, 26, 26, 0.045);
  --shadow-hover: 0 14px 32px rgba(26, 26, 26, 0.09);
  --shadow-lg: 0 24px 60px rgba(20, 12, 8, 0.28);
  --font-display: "Cairo", "Playfair Display", system-ui, sans-serif;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

html[lang="en"] {
  --font-display: "Playfair Display", "Cairo", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(96px + var(--sb));
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.skip {
  position: absolute; top: -100px; inset-inline-start: 12px; z-index: 100;
  background: var(--card); padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
}
.skip:focus { top: 12px; }

/* ===== Top Bar (3-Zone Editorial Contract) ===== */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--ink); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.topbar-logo { border-radius: 10px; flex: none; }
.topbar-links { display: none; align-items: center; gap: 26px; }
.topbar-links a {
  text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: color 0.18s; padding-block: 4px;
}
.topbar-links a:hover { color: var(--brand); }
@media (min-width: 820px) { .topbar-links { display: flex; } }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chip-btn {
  min-height: 40px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 10px; padding: 6px 14px; font-weight: 700; font-size: 13px;
  white-space: nowrap; transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.chip-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.install-chip { background: var(--gold-soft); border-color: #f0cf95; color: #7a4b00; }

/* ===== Hero Section ===== */
.hero {
  background: var(--ink);
  color: #faf7f2;
  border-bottom: 3px solid var(--brand);
  padding-block: 28px 34px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 900px) {
  .hero { padding-block: 44px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
}
.hero-content { display: flex; flex-direction: column; justify-content: center; }
.info {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 13px; font-weight: 600; color: #dcd2c4;
}
.info-sep { color: #6e635b; }
.status-txt { font-weight: 800; color: var(--gold); }
.status-txt.closed { color: #ff8e9e; }

.brand { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.logo {
  position: relative; width: 76px; height: 76px; flex: none; border-radius: 20px;
  border: 2px solid rgba(229, 154, 36, 0.55);
  background: var(--ink);
  display: grid; place-items: center; overflow: hidden; color: var(--gold);
}
.logo span { font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.brand h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.5vw, 48px); line-height: 1.12; color: #fffdf9; text-wrap: balance;
}
.brand p { margin: 8px 0 0; color: #d5cbbe; font-size: 15px; max-width: 48ch; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 26px; border-radius: 12px; background: var(--brand); color: #fffdf9;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}
.hero-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hero-cta-sec {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 22px; border-radius: 12px; border: 1px solid rgba(229, 154, 36, 0.55);
  color: var(--gold); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.hero-cta-sec:hover { background: rgba(229, 154, 36, 0.14); color: #ffd485; }

.hero-visual { display: flex; }
.hero-frame {
  position: relative; width: 100%; min-height: 240px; aspect-ratio: 16 / 10; border-radius: 20px;
  overflow: hidden; border: 1px solid rgba(255, 253, 249, 0.12);
  background: linear-gradient(135deg, #2a1d19, #4a141c);
  display: grid; place-items: center;
}
.hero-emblem { font-size: 64px; opacity: 0.6; }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 10, 0.85) 0%, rgba(20, 12, 10, 0.2) 55%, transparent 100%);
}
.hero-caption {
  position: absolute; inset-inline: 18px; bottom: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; color: #fffdf9;
}
.hero-cap-kicker { font-size: 12px; font-weight: 700; color: var(--gold); }
.hero-caption strong { font-size: 17px; font-weight: 700; }

.closed-bar {
  margin: 14px 0 0; padding: 10px 16px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid #f4c2ca; color: var(--brand-dark);
  font-weight: 700; font-size: 13.5px;
}

/* ===== Hero Offers Slider ===== */
.offers { position: relative; margin-top: 22px; }
.track {
  direction: ltr; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 20px; border: 1px solid var(--line);
  background: var(--ink); overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  aspect-ratio: 16 / 6.5; min-height: 230px; overflow: hidden; color: #fffdf9;
  background: linear-gradient(135deg, #2b1416, #7a0c1e 65%, #a86411); isolation: isolate;
}
.slide.clickable { cursor: pointer; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide img.ok ~ .slide-emoji { display: none; }
.slide-emoji {
  position: absolute; inset-inline-end: 8%; top: 50%; transform: translateY(-50%);
  font-size: clamp(64px, 14vw, 120px); z-index: -3; opacity: 0.85;
}
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.slide[dir="rtl"]::after {
  background: linear-gradient(to left, rgba(20, 14, 12, 0.9) 0%, rgba(20, 14, 12, 0.55) 50%, rgba(20, 14, 12, 0.15) 100%);
}
.slide[dir="ltr"]::after {
  background: linear-gradient(to right, rgba(20, 14, 12, 0.9) 0%, rgba(20, 14, 12, 0.55) 50%, rgba(20, 14, 12, 0.15) 100%);
}
.slide-txt {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(90%, 580px);
  padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.slide-tag { color: var(--gold); font-weight: 800; font-size: 12.5px; letter-spacing: 0.02em; }
.slide h3 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(19px, 3.8vw, 32px); line-height: 1.24; text-wrap: balance;
}
.slide p { margin: 0; color: #ece3d7; font-size: clamp(12.5px, 2.5vw, 15px); line-height: 1.5; max-width: 48ch; }
.slide-cta {
  align-self: flex-start; margin-top: 8px; background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 13px; padding: 8px 18px; border-radius: 10px;
  transition: transform 0.18s, background 0.18s;
}
.slide:hover .slide-cta { background: #f5ad38; transform: translateY(-1px); }

.nav {
  position: absolute; top: calc(50% - 14px); transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 253, 249, 0.35);
  background: rgba(26, 26, 26, 0.8); color: #fffdf9; font-size: 22px; line-height: 1;
  display: grid; place-items: center; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.2s, background 0.2s;
}
.offers:hover .nav, .offers:focus-within .nav { opacity: 1; pointer-events: auto; }
.nav:hover { background: var(--brand); border-color: var(--brand); }
@media (hover: none) { .nav { display: none !important; } }
@media (hover: hover) { .slide-txt { padding-inline: 82px; } }
.nav.prev { left: 26px; }
.nav.next { right: 26px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; direction: ltr; }
.dot {
  position: relative; width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0;
  background: #d5c8b6; transition: width 0.25s, background 0.25s;
}
.dot::before { content: ""; position: absolute; inset: -10px; }
.dot.on { width: 28px; background: var(--brand); }

/* ===== Search + Sticky Category Rail ===== */
.search-wrap { margin-top: 22px; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; height: 50px;
  box-shadow: var(--shadow-card); transition: border-color 0.18s;
}
.search:focus-within { border-color: var(--brand); }
.search svg { flex: none; color: var(--brand); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; }
.clear-search {
  border: 0; background: var(--bg-soft); color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 8px; font-size: 13px; display: grid; place-items: center;
}

.toolbar {
  position: sticky; top: 0; z-index: 20; margin-top: 14px;
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
@media (min-width: 1024px) { .tabs { justify-content: space-between; } }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); border-radius: 10px; padding: 6px 12px;
  font-weight: 700; font-size: 12.5px; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.on { background: var(--brand); color: #fffdf9; border-color: var(--brand); }

/* ===== Menu Sections & Cards ===== */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1.5px solid var(--line); padding-bottom: 10px; margin: 34px 0 18px;
}
.sec {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--ink);
}
.sec-accent {
  width: 10px; height: 10px; border-radius: 3px; background: var(--brand); display: inline-block;
}
.sec-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat { scroll-margin-top: 72px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.hscroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .card { flex: 0 0 min(64%, 250px); scroll-snap-align: start; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(200, 16, 46, 0.35); }
}
.card:active { transform: scale(0.99); }
.card.off { cursor: not-allowed; opacity: 0.6; filter: grayscale(0.8); }

.media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f3eae0, #eadbc8);
  display: grid; place-items: center; overflow: hidden;
}
.media .ph { font-size: 42px; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s, transform 0.35s; }
.media img.ok { opacity: 1; }
@media (hover: hover) { .card:hover .media img.ok { transform: scale(1.04); } }

.badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 7px;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.badge.crimson { background: var(--brand); color: #fffdf9; }
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.spicy { background: #1a1a1a; color: #ff8a65; border: 1px solid rgba(255, 138, 101, 0.45); }
.badge.family { background: #1a1a1a; color: var(--gold); }

.off-tag {
  position: absolute; inset-inline: 10px; bottom: 10px; text-align: center;
  background: rgba(26, 26, 26, 0.9); color: #fffdf9; font-size: 12px; font-weight: 700;
  border-radius: 8px; padding: 4px;
}

.card-b { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.card h3 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.card p {
  margin: 0; flex: 1; color: var(--muted); font-size: 12.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.price { font-weight: 800; font-size: 15.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.old { color: #8c7e73; text-decoration: line-through; font-size: 12px; font-weight: 500; margin-inline: 6px; }
.old.light { color: #d4c6b8; }

.plus {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--brand); color: #fffdf9; font-size: 22px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; transition: background 0.18s, transform 0.15s;
}
.plus:hover { background: var(--brand-dark); transform: scale(1.05); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty div { font-size: 48px; margin-bottom: 8px; }

.foot {
  text-align: center; color: var(--muted); font-size: 13.5px; padding-top: 36px; margin-top: 52px;
  border-top: 1.5px solid var(--line);
}
.foot a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color 0.18s;
}
.foot a:hover { border-color: var(--brand); color: var(--brand); }
.foot-name { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 24px; margin: 0 0 6px; }
.credit { opacity: 0.78; font-size: 12px; margin-top: 14px; }

/* ===== Floating Bottom Cart Bar ===== */
.cart-bar {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + var(--sb));
  max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; padding: 11px 18px; min-height: 54px;
  background: var(--ink); color: #fffdf9; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-lg); animation: barUp 0.22s ease;
}
.cb-count {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px;
  background: var(--gold); color: var(--ink); display: grid; place-items: center;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cb-total { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; }
.cart-bar .grow { flex: 1; text-align: start; }
.cart-bar.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.03); } }
@keyframes barUp { from { transform: translateY(120%); } }

/* ===== Quick-Add Modal & Cart Sheet ===== */
dialog.sheet {
  position: fixed; inset: 0; padding: 0; border: 1px solid var(--line);
  width: 100%; max-width: 580px; height: fit-content; max-height: 92dvh;
  margin: auto auto 0; border-radius: 24px 24px 0 0;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetUp 0.24s cubic-bezier(0.16, 1, 0.3, 1); }
dialog::backdrop { background: rgba(20, 12, 10, 0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes sheetUp { from { transform: translateY(32px); opacity: 0; } }
@media (min-width: 720px) { dialog.sheet { margin: auto; border-radius: 24px; max-height: 88vh; } }

.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.sheet-foot {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 20px calc(12px + var(--sb)); border-top: 1px solid var(--line); background: var(--card);
}
.sheet-foot.col { flex-direction: column; align-items: stretch; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card);
}
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.x {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96); font-size: 16px; font-weight: 700; display: grid; place-items: center;
}
.x.inline { position: static; background: var(--bg); border: 1px solid var(--line); }

.dlg-media { aspect-ratio: 16 / 9.5; margin-inline: -20px; }
.dlg-media .ph { font-size: 72px; }
.dlg-txt { padding-top: 16px; }
.dlg-txt h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.dlg-txt p { margin: 0 0 8px; font-size: 14px; }
.muted { color: var(--muted); }

.opt { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.opt legend { font-weight: 800; font-size: 14.5px; margin-bottom: 10px; padding: 0; color: var(--ink); }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; margin-bottom: 8px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; flex: none; }
.choice .n { flex: 1; font-weight: 600; font-size: 14px; }
.choice .p { color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.stepper {
  display: flex; align-items: center; gap: 4px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex: none;
}
.stepper button {
  width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: var(--card); font-size: 18px; font-weight: 700;
}
.stepper.sm button { width: 34px; height: 34px; font-size: 16px; }
.qv { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.primary {
  flex: 1; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 0; border-radius: 14px; padding: 12px 18px;
  background: var(--brand); color: #fffdf9; font-weight: 700; font-size: 15px;
  transition: background 0.18s;
}
.primary:hover { background: var(--brand-dark); }
.primary:disabled { background: #c9beb0; cursor: not-allowed; }
.primary.wa { justify-content: center; background: var(--wa); color: #fff; }
.primary.wa:hover { background: #127039; }

.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb { width: 60px; height: 60px; aspect-ratio: auto; border-radius: 12px; border: 1px solid var(--line); flex: none; }
.thumb .ph { font-size: 24px; }
.info2 { flex: 1; min-width: 0; }
.info2 b { display: block; font-size: 14.5px; }
.info2 small { display: block; color: var(--muted); font-size: 12px; }
.lt { font-weight: 800; font-size: 13.5px; color: var(--brand); margin-top: 2px; font-variant-numeric: tabular-nums; }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px;
  background: var(--card); font-size: 15px; outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--bad) !important; }

.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; }
.coupon button {
  min-height: 44px; border: 0; border-radius: 12px; padding: 0 18px;
  background: var(--ink); color: #fffdf9; font-weight: 700; font-size: 13px;
}

.summary {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px;
}
.summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.summary .disc { color: var(--ok); font-weight: 700; }
.summary .tot {
  border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px;
  font-weight: 800; font-size: 17px; color: var(--ink);
}
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.notice {
  margin-top: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid #f4c2ca; color: var(--brand-dark); font-size: 13.5px; font-weight: 700;
}
.linkbtn { border: 0; background: none; color: var(--bad); font-weight: 700; padding: 8px 0; font-size: 13px; }
.err { margin: 0; color: var(--bad); font-size: 13px; font-weight: 700; }
.err:empty { display: none; }

/* Payment Methods */
.pay-methods-wrap {
  margin: 16px 0 6px; padding: 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.pay-methods-wrap > span { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pay-opt {
  min-height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 6px;
  text-align: center; cursor: pointer; font-weight: 700; font-size: 12.5px;
  background: var(--bg); color: var(--ink-2); transition: 0.18s;
}
.pay-opt.active { border-color: var(--brand); background: var(--brand); color: #fffdf9; }
.pay-info-box {
  display: none; background: var(--gold-soft); border: 1px dashed var(--gold);
  border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 12.5px; color: var(--ink); line-height: 1.65;
}
.pay-info-box.show { display: block; }
.copy-num-btn {
  background: var(--ink); color: #fffdf9; border: 0; border-radius: 8px;
  padding: 4px 10px; font-size: 11.5px; cursor: pointer; margin-inline-start: 6px; font-weight: 700;
}

/* Toast */
.toast {
  position: fixed; z-index: 1000; left: 50%; bottom: calc(88px + var(--sb));
  transform: translate(-50%, 16px); max-width: calc(100% - 32px);
  background: var(--ink); color: #fffdf9; padding: 10px 18px; border-radius: 12px;
  font-weight: 700; font-size: 13.5px; text-align: center; opacity: 0;
  pointer-events: none; transition: opacity 0.22s, transform 0.22s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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