/* ==========================================================
   کافه ایران — customer menu
   Palette: lapis (لاجوردی), turquoise (فیروزه‌ای), saffron gold,
   pomegranate red and parchment cream — Isfahan tilework colours.
   ========================================================== */

@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url(../fonts/vazirmatn-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url(../fonts/vazirmatn-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Lalezar"; font-weight: 400; font-display: swap; src: url(../fonts/lalezar-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Lalezar"; font-weight: 400; font-display: swap; src: url(../fonts/lalezar-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF; }

:root {
  --lapis-900: #0f1f3d;
  --lapis-800: #14284d;
  --lapis-700: #1c3b6e;
  --turq-600: #0b6b6f;
  --turq-400: #2fa3a0;
  --gold-500: #c9962f;
  --gold-300: #e9c46a;
  --pomegranate: #9e2a2b;

  --bg: #f6eedc;
  --bg-deep: #ecdfc2;
  --card: #fffaf0;
  --ink: #2b1d14;
  --ink-soft: #6b5443;
  --line: rgba(156, 112, 40, .28);
  --price: var(--lapis-700);
  --title: var(--lapis-700);
  --chip-bg: rgba(255, 250, 240, .9);
  --nav-bg: rgba(246, 238, 220, .88);
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 8px 24px -10px rgba(60, 35, 10, .25);
  --pattern-opacity: .45;

  --radius: 20px;
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38Q0 13 50 0Q100 13 100 38V100Z'/%3E%3C/svg%3E");
  --girih-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e9c46a' stroke-width='.9'%3E%3Cpath d='M16 16h24v24H16z'/%3E%3Cpath d='M28 11l17 17-17 17-17-17z'/%3E%3Cpath d='M28 0v11M28 45v11M0 28h11M45 28h11M0 0l16 16M56 0 40 16M0 56l16-16M56 56 40 40'/%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --girih-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23b8862b' stroke-opacity='.16' stroke-width='.9'%3E%3Cpath d='M16 16h24v24H16z'/%3E%3Cpath d='M28 11l17 17-17 17-17-17z'/%3E%3Cpath d='M28 0v11M28 45v11M0 28h11M45 28h11M0 0l16 16M56 0 40 16M0 56l16-16M56 56 40 40'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1830;
    --bg-deep: #0a1326;
    --card: #15233f;
    --ink: #f3e9d2;
    --ink-soft: #c2b59b;
    --line: rgba(233, 196, 106, .22);
    --price: var(--gold-300);
    --title: var(--gold-300);
    --chip-bg: rgba(21, 35, 63, .9);
    --nav-bg: rgba(13, 24, 48, .86);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
    --girih-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e9c46a' stroke-opacity='.07' stroke-width='.9'%3E%3Cpath d='M16 16h24v24H16z'/%3E%3Cpath d='M28 11l17 17-17 17-17-17z'/%3E%3Cpath d='M28 0v11M28 45v11M0 28h11M45 28h11M0 0l16 16M56 0 40 16M0 56l16-16M56 56 40 40'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg) var(--girih-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turq-400); outline-offset: 3px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--gold-300);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 163, 160, .35), transparent 60%),
    var(--girih-gold) center / 56px 56px,
    linear-gradient(180deg, var(--lapis-700), var(--lapis-900));
  background-blend-mode: normal, soft-light, normal;
  padding: calc(env(safe-area-inset-top) + 40px) 16px 64px;
  overflow: hidden;
}
.hero::before { /* fade the tile pattern towards the edges */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 50% 45%, transparent 30%, rgba(15, 31, 61, .75));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.hero-star {
  width: 64px; height: 64px; margin: 0 auto 6px;
  fill: none; stroke: var(--gold-300); stroke-width: 2.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 10px rgba(233, 196, 106, .35));
  animation: spin 60s linear infinite;
}
.hero-logo {
  width: clamp(130px, 38vw, 170px); height: auto; margin: 0 auto 4px;
  filter: drop-shadow(0 3px 12px rgba(233, 196, 106, .3));
  animation: logo-in .8s var(--ease-out) both;
}
@keyframes logo-in { from { opacity: 0; transform: scale(.9); } }
.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 5.2rem);
  line-height: 1.25;
  margin: 0;
  color: var(--gold-300);
  background: linear-gradient(180deg, #f6dc94 10%, #d9a843 60%, #b9842a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(8, 16, 33, .55));
}
.tagline { margin: 4px 0 14px; color: #f3e9d2; font-size: 1.05rem; opacity: .92; }
.divider { width: 200px; height: 18px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.3; }
.hero .divider { color: var(--gold-300); }

/* scalloped tile edge at the bottom of the hero */
.hero-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: var(--bg);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 11px, #000 11.5px) 0 0 / 30px 22px repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 11px, #000 11.5px) 0 0 / 30px 22px repeat-x;
}

/* ---------- Category nav ---------- */
.cats {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
          backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.cats-track {
  display: flex; gap: 8px;
  max-width: 1120px; margin: 0 auto;
  padding: 10px 16px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.cats-track::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: center;
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: .95rem;
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip.is-active {
  background: var(--lapis-700); border-color: var(--gold-500); color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .4);
}

/* ---------- Sections ---------- */
.menu { max-width: 1120px; margin: 0 auto; padding: 8px 16px 24px; }
.cat { padding-top: 28px; scroll-margin-top: 70px; }
.cat-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  color: var(--title);
  margin: 0 0 18px; line-height: 1.4;
}
.cat-title::before, .cat-title::after {
  content: ""; flex: 1; height: 10px;
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) center / 100% 1.5px no-repeat,
    radial-gradient(circle, var(--gold-500) 2.5px, transparent 3px) 0 50% / 10px 10px no-repeat;
}
.cat-title::after { transform: scaleX(-1); }
.cat-title span { flex: none; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

/* ---------- Card ---------- */
.item { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(60, 35, 10, .08), 0 18px 34px -14px rgba(60, 35, 10, .38); }
  .card:hover .arch img { transform: scale(1.05); }
}
.card:active { transform: scale(.98); }

/* Persian arch (طاق) frame: gold outer arch, image masked inside */
.frame {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  padding: 3px;
  background: linear-gradient(160deg, #f1d488, var(--gold-500) 45%, #8f6a1f);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
}
.arch {
  display: block; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, var(--turq-600), var(--lapis-800));
  -webkit-mask: var(--arch) center / 100% 100% no-repeat;
          mask: var(--arch) center / 100% 100% no-repeat;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--girih-gold) center / 40px 40px;
}
.ph-star { width: 46%; fill: none; stroke: var(--gold-300); stroke-width: 2.2; stroke-linejoin: round; opacity: .9; }
.badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  padding: 2px 12px; border-radius: 999px;
  background: var(--pomegranate); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.is-out .arch img, .is-out .ph { filter: grayscale(.85) brightness(.9); }
.is-out .price { opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }

.info { display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 0; flex: 1; }
.name { font-weight: 800; font-size: 1.02rem; line-height: 1.5; }
.desc {
  color: var(--ink-soft); font-size: .85rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { margin-top: auto; padding-top: 6px; color: var(--price); font-variant-numeric: tabular-nums; }
.price b { font-size: 1.12rem; font-weight: 800; }
.price small { font-size: .78rem; color: var(--ink-soft); font-weight: 500; }

.empty { text-align: center; padding: 60px 16px; color: var(--ink-soft); }
.empty-star { width: 72px; margin: 0 auto 12px; fill: none; stroke: var(--gold-500); stroke-width: 2; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 40px;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center; color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-deep));
}
.foot .divider { color: var(--gold-500); margin-bottom: 18px; }
.foot-info { list-style: none; margin: 0 auto 14px; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.foot-info li { display: flex; align-items: center; justify-content: center; gap: 8px; }
.foot-info a { text-decoration: none; color: var(--ink); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--turq-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .ic { stroke: var(--turq-400); } }
.foot-name { font-family: var(--display); font-size: 1.4rem; color: var(--title); margin: 4px 0 0; }

/* ---------- Detail sheet ---------- */
.sheet {
  width: min(460px, 100%); max-height: 92vh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 26px 26px 0 0;
  background: var(--card) var(--girih-soft); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
  overflow: auto; overscroll-behavior: contain;
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 26px; } }
.sheet::backdrop { background: rgba(10, 18, 36, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .38s var(--ease-out); }
.sheet[open]::backdrop { animation: fade .3s ease; }
.sheet-close-wrap { position: sticky; top: 0; height: 0; z-index: 2; margin: 0; }
.sheet-close {
  position: absolute; top: 12px; left: 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 31, 61, .7); color: #fff;
}
.sheet-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sheet-media { padding: 22px 22px 0; }
.sheet-media .arch { aspect-ratio: 4 / 5; width: min(100%, calc(56vh * 4 / 5)); margin: 0 auto; }
.sheet-media .arch img { transition: none; }
.sheet-body { padding: 16px 22px 26px; text-align: center; }
.sheet-name { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.4; margin: 0 0 6px; color: var(--title); }
.sheet-desc { margin: 0 0 10px; color: var(--ink-soft); }
.sheet-desc:empty { display: none; }
.sheet-price b { font-size: 1.4rem; }
.sheet-out { display: none; color: var(--pomegranate); font-weight: 700; margin: 8px 0 0; }
.sheet.is-out .sheet-out { display: block; }
@media (prefers-color-scheme: dark) { .sheet-out { color: #f08a7e; } }

/* ---------- Cart: add buttons ---------- */
.item { position: relative; }
.ordering .item:not(.is-out) .card { padding-bottom: 62px; }
.add-slot {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; justify-content: center; pointer-events: none;
}
.add-slot > * { pointer-events: auto; }
.add, .step button {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--lapis-700); color: var(--gold-300);
  box-shadow: 0 4px 12px -4px rgba(20, 40, 77, .6), inset 0 0 0 1.5px rgba(233, 196, 106, .55);
  transition: transform .15s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.add { width: 100%; max-width: 150px; border-radius: 999px; gap: 6px; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: .9rem; }
.add::after { content: "افزودن"; }
.add:active, .step button:active { transform: scale(.92); }
.add svg, .step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.step {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; max-width: 150px; padding: 0;
  border-radius: 999px; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
  animation: pop-in .25s var(--ease-out);
}
.step b { min-width: 2ch; text-align: center; font-size: 1.1rem; font-weight: 800; color: var(--price); }
.step .minus { background: var(--card); color: var(--price); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (prefers-color-scheme: dark) { .add, .step button:not(.minus) { background: var(--gold-500); color: var(--lapis-900); } }

.sheet-add { margin-top: 16px; display: flex; justify-content: center; }
.sheet-add .add, .sheet-add .step { max-width: 220px; height: 50px; }
.sheet-add .add::after { content: "افزودن به سبد خرید"; }
.sheet-add .step button { width: 50px; height: 50px; }

/* ---------- Cart bar ---------- */
.ordering.has-cart { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.cart-bar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cart-bar[hidden] { display: none; }
.cart-open {
  pointer-events: auto;
  width: 100%; max-width: 560px; margin: 0 auto; min-height: 60px;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, var(--lapis-700), var(--lapis-900)) ;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(15, 31, 61, .7), inset 0 0 0 1.5px rgba(233, 196, 106, .55);
  animation: bar-in .35s var(--ease-out);
}
.cart-ic { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(233, 196, 106, .14); flex: none; }
.cart-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-300); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cart-count {
  position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--pomegranate); color: #fff; font-size: .78rem; font-weight: 800;
}
.cart-count.bump { animation: bump .35s var(--ease-out); }
.cart-label { flex: 1; text-align: start; font-weight: 700; font-size: .95rem; }
.cart-total { color: var(--gold-300); white-space: nowrap; }
.cart-total b { font-size: 1.1rem; }
.cart-total small { color: #d9cfb8; }

/* ---------- Cart sheet ---------- */
.cart-view, .cart-done { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
.cart-title { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--title); text-align: center; margin: 0 0 14px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.c-name { font-weight: 800; }
.c-unit { color: var(--ink-soft); font-size: .82rem; }
.c-item .step { grid-row: span 2; max-width: 128px; box-shadow: inset 0 0 0 1.5px var(--line); animation: none; }
.c-item .step button { width: 38px; height: 38px; }
.c-item .step svg { width: 17px; height: 17px; }
.cart-sum {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 14px 0 10px; padding: 12px 4px 0; border-top: 2px dashed var(--line);
  font-weight: 800;
}
.cart-sum .price { margin: 0; padding: 0; }
.cart-sum b { font-size: 1.3rem; }
.c-field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; font-size: .92rem; }
.c-field i { color: var(--pomegranate); font-style: normal; }
.c-field small { color: var(--ink-soft); font-weight: 400; }
.c-field input, .c-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; font-size: 16px;
}
.c-field textarea { resize: vertical; min-height: 64px; }
.c-field input:focus, .c-field textarea:focus { outline: none; border-color: var(--turq-400); box-shadow: 0 0 0 3px rgba(47, 163, 160, .22); }
.c-error { color: var(--pomegranate); font-weight: 700; min-height: 1.4em; margin: 0 0 8px; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .c-error { color: #f08a7e; } }
.c-submit {
  width: 100%; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #d9a843, var(--gold-500)); color: var(--lapis-900);
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 20px -10px rgba(150, 100, 20, .8);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.c-submit:disabled { opacity: .65; cursor: wait; }
.c-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-left-color: transparent; animation: spin .7s linear infinite; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 24px 0; }

.cart-done { text-align: center; }
.done-star { width: 84px; margin: 6px auto 8px; fill: none; stroke: var(--gold-500); stroke-width: 2.4; stroke-linejoin: round; animation: spin 18s linear infinite; }
.done-title { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: var(--title); margin: 0; }
.done-no { font-size: 1.1rem; margin: 6px 0; }
.done-no b { font-size: 1.6rem; color: var(--price); }
.done-sub { color: var(--ink-soft); margin: 0 0 18px; }

@keyframes pop-in { from { transform: scale(.8); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes bar-in { from { transform: translateY(120%); } }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px); } }

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