/* ============================================================
   XI'AN — KAIFUN PLAYFUL REDESIGN
   Warm cream · fire red · chunky borders · sticker shadows
   ============================================================ */

:root {
  --bg: #fef6e4;
  --bg-2: #faeed2;
  --paper: #fffdf8;
  --white: #ffffff;

  --red: #e63917;
  --red-dark: #b02507;
  --red-soft: #ffe3db;
  --red-glow: rgba(230,57,23,.18);

  --orange: #ff8c1a;
  --orange-soft: #ffe8cc;
  --yellow: #ffc91a;
  --yellow-soft: #fff3c4;

  --jade: #0ea878;
  --jade-soft: #d4f4e8;

  --ink: #1a1410;
  --ink-soft: #4a3f38;
  --ink-mute: #8a7d70;
  --line: #1a1410;
  --line-soft: rgba(26,20,16,.12);

  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --shadow-red: 4px 4px 0 var(--red);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --font-display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(255,140,26,.08), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(230,57,23,.06), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,201,26,.03), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 rgba(26,20,16,.08);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  max-width: 1300px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--bounce);
}
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.06); }
.brand-text h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.brand-text small {
  display: block;
  margin-top: 3px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 360px;
  padding: 9px 16px;
  background: var(--jade-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  white-space: nowrap;
}
.loc-icon { font-size: .95rem; flex-shrink: 0; }
.loc-text { overflow: hidden; text-overflow: ellipsis; }

.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: .92rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--bounce), box-shadow .2s var(--bounce);
  flex-shrink: 0;
}
.cart-toggle:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.cart-toggle:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.cart-emoji { font-size: 1.1rem; }
.cart-count {
  background: var(--yellow);
  color: var(--ink);
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 800;
  border: 1.5px solid var(--ink);
}

/* SEARCH */
.search-wrap {
  position: relative;
  max-width: 1300px;
  margin: 0 auto 10px;
  padding: 0 22px;
}
.search-wrap input {
  width: 100%;
  padding: 12px 44px 12px 48px;
  background: var(--bg-2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, background .2s;
}
.search-wrap input::placeholder { color: var(--ink-mute); font-weight: 600; font-style: italic; }
.search-wrap input:focus {
  outline: none;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--red);
  transform: translate(-1px, -1px);
}
.search-icon {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
.clear-search {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* NAV TABS */
.nav-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 22px 14px;
  max-width: 1300px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--bounce);
}
.nav-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow-soft);
}
.nav-btn.active {
  background: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.nav-emoji { font-size: 1rem; }

/* ============================================================
   MAIN
   ============================================================ */
.main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

/* ============================================================
   HERO GRANDE (se despide al primer pedido)
   ============================================================ */
.hero {
  position: relative;
  margin: 22px 0 30px;
  padding: 44px 48px;
  background:
    radial-gradient(circle at 25% 100%, var(--yellow-soft) 0%, transparent 55%),
    radial-gradient(circle at 90% 0%, var(--red-soft) 0%, transparent 45%),
    linear-gradient(135deg, var(--paper), var(--bg-2));
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: height .4s var(--smooth), opacity .3s ease, margin .4s var(--smooth), padding .4s var(--smooth), border-width .4s var(--smooth);
}

/* Estado "despedido": se colapsa suavemente */
.hero.dismissed {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
}

/* Emojis decorativos flotantes */
.hero-decos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-deco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 2.2rem;
  transform: rotate(var(--r));
  opacity: .8;
  animation: heroFloat 5s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes heroFloat {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50%      { transform: rotate(var(--r)) translateY(-10px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: badgePulse 1.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero-hl {
  position: relative;
  color: var(--red);
  display: inline-block;
}
.hero-hl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .18em;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 13px 26px;
  background: var(--red);
  color: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: var(--shadow);
  transition: all .2s var(--bounce);
}
.hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.hero-cta:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.hero-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 900;
  border: 1.5px solid var(--ink);
}

/* Panda mascot (AHORA MÁS GRANDE) */
.hero-mascot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}
.mascot-bubble {
  position: relative;
  padding: 8px 16px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  animation: bubbleFloat 2.5s ease-in-out infinite;
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  border-bottom-right-radius: 3px;
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(-2deg); }
}

.mascot-emoji {
  font-size: 6.5rem;   /* ← MÁS GRANDE que antes (era 5.5rem) */
  line-height: 1;
  animation: pandaBounce 3s ease-in-out infinite;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
@keyframes pandaBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

.mascot-shadow {
  width: 90px;
  height: 9px;
  background: var(--ink);
  opacity: .18;
  border-radius: 50%;
  margin-top: 6px;
  filter: blur(2px);
  animation: shadowPulse 3s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: .18; }
  50%      { transform: scaleX(.7); opacity: .1; }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2.5px dashed var(--line-soft);
  flex-wrap: wrap;
}
.section-emoji {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.section-count {
  margin-left: auto;
  padding: 5px 14px;
  background: var(--jade-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .3s var(--bounce), box-shadow .3s var(--bounce);
}
.product-card:hover {
  transform: translate(-2px, -2px) rotate(-.4deg);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-3deg);
}

.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-2), var(--yellow-soft));
  overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--smooth);
}
.product-card:hover .product-img img { transform: scale(1.07); }
.emoji-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3.8rem;
  background: linear-gradient(135deg, var(--yellow-soft), var(--red-soft));
}

.product-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
}
.product-info p {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  flex: 1;
  font-weight: 500;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--line-soft);
}
.price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--red);
}

.add-btn {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all .2s var(--bounce);
}
.add-btn:hover {
  background: var(--orange);
  transform: translate(-1px, -1px) rotate(-4deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.add-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.empty-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-mute);
  font-style: italic;
  font-weight: 600;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--smooth);
  z-index: 200;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--bg);
  border-left: 2.5px solid var(--ink);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right .4s var(--smooth);
  box-shadow: -8px 0 0 rgba(26,20,16,.06);
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--yellow);
  border-bottom: 2.5px solid var(--ink);
}
.cart-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

.close-btn {
  width: 36px;
  height: 36px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: all .2s var(--bounce);
  box-shadow: 2px 2px 0 var(--ink);
}
.close-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 2px dashed var(--line-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 2px;
}
.cart-item-subtotal {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--red);
  font-size: .95rem;
  text-align: right;
  align-self: center;
}

.qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-ctrl button {
  width: 30px;
  height: 30px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .15s var(--bounce);
}
.qty-ctrl button:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.qty-ctrl button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.qty-ctrl span {
  font-family: var(--font-mono);
  font-weight: 800;
  min-width: 26px;
  text-align: center;
  color: var(--ink);
  font-size: .95rem;
}

/* ============================================================
   PANDA EN CARRITO VACÍO
   ============================================================ */
.cart-empty {
  text-align: center;
  padding: 40px 20px 50px;
  color: var(--ink-mute);
  font-weight: 600;
}
.empty-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}
.empty-mascot-bubble {
  position: relative;
  padding: 9px 18px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  animation: bubbleFloat 2.5s ease-in-out infinite;
}
.empty-mascot-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  border-bottom-right-radius: 3px;
}
.empty-mascot-emoji {
  font-size: 5.5rem;
  line-height: 1;
  animation: pandaBounce 3s ease-in-out infinite;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.empty-mascot-shadow {
  width: 80px;
  height: 8px;
  background: var(--ink);
  opacity: .18;
  border-radius: 50%;
  margin-top: 8px;
  filter: blur(2px);
  animation: shadowPulse 3s ease-in-out infinite;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.empty-sub {
  font-size: .86rem;
  color: var(--ink-mute);
  font-weight: 600;
}

.cart-totals {
  padding: 18px 24px;
  background: var(--paper);
  border-top: 2.5px solid var(--ink);
}
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.totals-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}
.totals-row.total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px dashed var(--line-soft);
}
.totals-row.total span:last-child {
  color: var(--red);
  font-size: 1.4rem;
  font-family: var(--font-mono);
  font-weight: 800;
}

.cash-calc {
  padding: 16px 24px;
  background: var(--jade-soft);
  border-top: 2.5px solid var(--ink);
}
.cash-calc label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.cash-calc input {
  width: 100%;
  padding: 11px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow .2s;
}
.cash-calc input:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); }
.change-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.change-row strong {
  font-family: var(--font-mono);
  color: var(--jade);
  font-size: 1.05rem;
  font-weight: 800;
}
.change-row strong.negative { color: var(--red); }

.checkout-btn {
  margin: 0 24px 24px;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: var(--shadow);
  transition: all .2s var(--bounce);
}
.checkout-btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.checkout-btn:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.checkout-btn:disabled { background: var(--ink-mute); cursor: not-allowed; opacity: .5; box-shadow: none; }

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(26,20,16,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  padding: 20px;
  overflow-y: auto;
}
.checkout-modal.open { display: block; }

.checkout-content {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  background: var(--yellow);
  border-bottom: 2.5px solid var(--ink);
}
.checkout-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.checkout-body { padding: 22px 26px 26px; overflow-y: auto; flex: 1; }

.order-summary {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: .88rem;
  box-shadow: var(--shadow-sm);
}
.order-summary h3 {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  font-weight: 900;
}
.order-summary .sum-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--ink-soft);
  font-weight: 600;
}
.order-summary .sum-item span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}
.order-summary .sum-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 2px dashed var(--line-soft);
  color: var(--ink);
}
.order-summary .sum-total span:last-child {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

fieldset { border: none; margin-bottom: 22px; }
fieldset legend {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--line-soft);
  display: block;
  width: 100%;
  letter-spacing: -.01em;
}

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .2s var(--bounce);
}
.radio-card:hover {
  background: var(--yellow-soft);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.radio-card input { accent-color: var(--red); width: 16px; height: 16px; }
.radio-card:has(input:checked) {
  background: var(--red);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid input,
.checkout-body input[type="text"],
.checkout-body input[type="tel"],
.checkout-body textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.checkout-body input::placeholder,
.checkout-body textarea::placeholder { color: var(--ink-mute); font-weight: 500; }
.checkout-body input:focus,
.checkout-body textarea:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}
.field-grid input[name="name"],
.field-grid input[name="phone"],
.field-grid input[name="address"],
.field-grid input[name="location"] { grid-column: 1 / -1; }

.location-btns { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-soft {
  flex: 1;
  padding: 11px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .2s var(--bounce);
}
.btn-soft:hover {
  background: var(--jade-soft);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-soft:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.info-box {
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--yellow);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.info-box strong { color: var(--red); }
.info-address {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 4px 0;
}
.info-hours { color: var(--ink-soft); font-size: .8rem; margin-top: 4px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  margin-bottom: 22px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: background .2s;
}
.checkbox-row:hover { background: var(--yellow-soft); }
.checkbox-row input { accent-color: var(--red); width: 18px; height: 18px; }

textarea { resize: vertical; min-height: 70px; }

.small-note {
  font-size: .78rem;
  color: var(--ink-mute);
  margin: 4px 0 18px;
  line-height: 1.5;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: var(--shadow);
  transition: all .2s var(--bounce);
}
.submit-btn:hover { background: var(--orange); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.submit-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: var(--jade);
  color: var(--white);
  padding: 13px 26px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all .4s var(--bounce);
  z-index: 500;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    padding: 32px 30px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-mascot {
    position: absolute;
    right: 24px;
    bottom: 20px;
    transform: scale(.7);
    margin-left: 0;
  }
  .hero-deco { font-size: 1.7rem; }
}

@media (max-width: 720px) {
  .header-top {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .location-pill {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    font-size: .74rem;
    margin-top: 4px;
  }
  .brand-logo { width: 40px; height: 40px; font-size: 1.3rem; }
  .brand-text h1 { font-size: 1.3rem; }
  .brand-text small { font-size: .62rem; }
  .cart-toggle { padding: 9px 14px; font-size: .82rem; }
  .cart-label { display: none; }

  .search-wrap { padding: 0 14px; }
  .search-icon { left: 28px; }
  .clear-search { right: 24px; }

  .nav-tabs { padding: 4px 14px 12px; gap: 6px; }
  .nav-btn { padding: 8px 14px; font-size: .78rem; }

  .main { padding: 0 14px 60px; }

  .hero {
    padding: 26px 22px 40px;
    border-radius: 28px;
    margin: 16px 0 22px;
  }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: .88rem; }
  .hero-cta { padding: 11px 22px; font-size: .92rem; }
  .hero-mascot {
    transform: scale(.6);
    right: 6px;
    bottom: -6px;
  }
  .hero-deco { font-size: 1.4rem; opacity: .55; }

  .section-title { font-size: 1.5rem; gap: 10px; }
  .section-emoji { width: 40px; height: 40px; font-size: 1.05rem; }
  .section-count { font-size: .66rem; padding: 4px 10px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-card { border-radius: 22px; }
  .product-info { padding: 12px 13px 14px; }
  .product-info h3 { font-size: .95rem; }
  .product-info p { font-size: .74rem; }
  .price { font-size: .92rem; }
  .add-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .product-badge { font-size: .6rem; padding: 4px 9px; }

  .cart-drawer { width: 100%; right: -100%; }
  .cart-header { padding: 16px 18px; }
  .cart-header h2 { font-size: 1.15rem; }
  .cart-items { padding: 12px 18px; }
  .cart-totals, .cash-calc { padding: 14px 18px; }
  .checkout-btn { margin: 0 18px 18px; }

  .empty-mascot-emoji { font-size: 4.5rem; }
  .cart-empty { padding: 32px 16px 40px; }

  .field-grid { grid-template-columns: 1fr; }
  .checkout-modal { padding: 0; }
  .checkout-content {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .checkout-header { padding: 16px 18px; }
  .checkout-header h2 { font-size: 1.2rem; }
  .checkout-body { padding: 16px 18px 20px; }
  .radio-card { min-width: 100%; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero-mascot { display: none; }
}