/* ✏️ EDITAR: paleta, radios, sombras y medidas base del tema. */
:root {
  --bg: #09090b;
  --bg-elevated: #111116;
  --panel: rgba(15, 15, 18, 0.82);
  --panel-strong: rgba(10, 10, 12, 0.94);
  --primary: #ff003c;
  --primary-dark: #d60034;
  --text: #f5f4f1;
  --muted: #a6acb5;
  --line: rgba(255, 255, 255, 0.08);
  --glow: 0 10px 26px rgba(7, 10, 15, 0.22);
  --glow-soft: 0 14px 36px rgba(7, 10, 15, 0.18);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: min(1180px, calc(100vw - 32px));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* Tipografía: escala y leading consistente */
:root {
  --type-scale-xs: 0.8125rem; /* 13px */
  --type-scale-sm: 0.875rem;  /* 14px */
  --type-scale-md: 1rem;      /* 16px */
  --type-scale-lg: 1.125rem;  /* 18px */
  --type-scale-xl: 1.25rem;   /* 20px */
  --type-scale-xxl: 1.5rem;   /* 24px */

  --leading-tight: 1.12;
  --leading-snug: 1.25;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;
}

/* Aplicar escala por defecto */
html, body {
  font-size: var(--type-scale-md);
  line-height: var(--leading-normal);
}

/* Headings y jerarquía */
h1, .hero h1 { font-size: var(--type-scale-xxl); line-height: var(--leading-tight); }
h2 { font-size: var(--type-scale-xl); line-height: var(--leading-snug); }
h3, .product-card h3 { font-size: var(--type-scale-lg); line-height: var(--leading-snug); }
p, .product-card__description, .product-card__meta, .product-addons { font-size: var(--type-scale-sm); line-height: var(--leading-normal); }

/* Badges / microcopy legibilidad */
.product-card__price, .product-card__price-label { font-size: var(--type-scale-sm); }
.product-badge__microcopy { display: block; font-size: 0.8125rem; line-height: 1.2; color: rgba(0,0,0,0.6); margin-top: 6px; }

/* Mobile adjustments */
@media (max-width: 480px) {
  html, body { font-size: var(--type-scale-sm); }
  h1, .hero h1 { font-size: 1.25rem; line-height: 1.08; }
  h2 { font-size: 1.125rem; }
  h3, .product-card h3 { font-size: 1rem; }
  .product-card__description { font-size: 0.95rem; line-height: 1.45; }
  .product-card { padding: 12px; }
  .product-card__price { font-size: 0.95rem; }
  .product-addons { font-size: 0.95rem; }
}

/* Splash de inicio */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #0f1113);
  z-index: 1200;
  transition: opacity 360ms cubic-bezier(.2,.9,.15,1), visibility 360ms;
  opacity: 1;
}
.splash__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  transform: scale(1);
  transition: transform 360ms cubic-bezier(.2,.9,.15,1), filter 360ms;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}
.splash--hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__inner { display:flex; flex-direction:column; align-items:center; gap:12px; }
.splash__assistant-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.splash__text { color: white; font-family: "Shippori Mincho", serif; font-size: 1.125rem; letter-spacing: 0.02em; margin: 0; }
.splash--hidden .splash__assistant-icon { transform: scale(.92) rotate(-6deg); opacity: .6; }

/* Oferta modal */
.offer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  pointer-events: none;
}
.offer-modal[aria-hidden="false"] { pointer-events: auto; }
.offer-modal__card {
  width: min(560px, calc(100% - 32px));
  background: linear-gradient(180deg, #0f1113, #121217);
  color: #fff;
  padding: 20px 20px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(2,6,23,0.7);
  text-align: center;
  transform: translateY(10px);
  transition: transform 260ms ease, opacity 260ms ease;
}
.offer-modal[aria-hidden="false"] .offer-modal__card { transform: translateY(0); }
.offer-modal__title { font-family: "Shippori Mincho", serif; margin: 0 0 6px; font-size: 1.25rem; }
.offer-modal__body { margin: 0 0 10px; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.offer-modal__price { margin: 0 0 14px; font-size: 1.125rem; }
.offer-modal__actions { display:flex; gap:10px; justify-content:center; }
.offer-modal .icon-button.offer-modal__close { position:absolute; right:12px; top:10px; background:transparent; color:#fff; font-size:18px; }
.offer-modal[hidden] { display:none; }

@media (max-width:480px) {
  .offer-modal__card { padding:16px; border-radius:10px; }
  .offer-modal__title { font-size:1.125rem; }
  .offer-modal__price { font-size:1rem; }
}

* {
  box-sizing: border-box;
}

html {
  background-color: #0a0a0a;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 0, 60, 0.14), transparent 24%),
    linear-gradient(180deg, #060607 0%, #0d0d11 54%, #121218 100%);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .daikon-chat,
  .install-app-button {
    transition: opacity 220ms ease, transform 220ms ease;
  }
}

.topbar__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.open-orders-button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(35, 35, 35, 0.96), rgba(18, 18, 18, 0.98));
  color: #eef2ef;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.open-orders-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.open-orders-button.is-open {
  border-color: rgba(88, 255, 169, 0.58);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(18, 70, 42, 0.98), rgba(9, 42, 24, 0.98));
  color: #effff5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
  animation: open-orders-pulse 3.4s ease-in-out infinite;
}

.open-orders-button.is-open:hover {
  border-color: rgba(110, 255, 180, 0.9);
  box-shadow: 0 0 0 1px rgba(88, 255, 169, 0.26), 0 18px 40px rgba(0, 0, 0, 0.36), 0 0 32px rgba(46, 214, 122, 0.32);
}

.open-orders-button.is-closed {
  border-color: rgba(255, 90, 90, 0.9);
  background:
    radial-gradient(circle at top left, rgba(255, 130, 130, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(60, 10, 10, 0.95), rgba(30, 6, 6, 0.95));
  color: #fff5f5;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.06), 0 8px 20px rgba(0,0,0,0.36);
}

.open-orders-button__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #a0aba4;
  box-shadow: 0 0 0 4px rgba(160, 171, 164, 0.12);
  flex: 0 0 auto;
}

.open-orders-button.is-closed .open-orders-button__dot { background: #ff6b6b; box-shadow: 0 0 0 6px rgba(255,107,107,0.12); }

.open-orders-button.is-open .open-orders-button__dot {
  background: #7cffb5;
  box-shadow: 0 0 0 4px rgba(124, 255, 181, 0.14), 0 0 14px rgba(124, 255, 181, 0.8);
}

.open-orders-button__label {
  font-family: "Shippori Mincho", serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.install-app-button:hover {
  border-color: rgba(255, 0, 60, 0.72);
  box-shadow: var(--glow-soft);
}

.install-app-button__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  background: #080808 url("assets/products/logodaikon.jpg") center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--glow-soft);
  overflow: hidden;
}

.install-app-button__label {
  font-family: "Shippori Mincho", serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daikon-chat {
  position: fixed;
  left: calc(18px + var(--safe-left));
  bottom: calc(18px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 4;
}

.install-app-button {
  position: fixed;
  right: calc(18px + var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.98), rgba(8, 8, 10, 0.99));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
  cursor: pointer;
  transition: 180ms ease;
  z-index: 4;
}

/* Update app button shown when SW update is available (for installed PWA) */
.update-app-button {
  position: fixed;
  right: calc(18px + var(--safe-right));
  bottom: calc(80px + var(--safe-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg,#1b8f5a,#12824a);
  color: #fff;
  border: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  z-index: 1600;
  cursor: pointer;
}
.update-app-button__label { font-weight:700; font-size:0.95rem; }

/* Roulette floating button */
.roulette-button {
  position: fixed;
  left: calc(18px + var(--safe-left));
  /* sitúa la ruleta justo arriba del botón de menú/chat */
  bottom: calc(200px + var(--safe-bottom));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: linear-gradient(90deg,#ff7a5a,#ffbf60);
  color: #111;
  font-weight:700;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.36);
  border: none;
  cursor: pointer;
  z-index: 1600;
}
.roulette-button__icon { font-size: 14px; }

/* Roulette modal */
.roulette-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3,6,9,0.6);
  z-index: 1401;
}
.roulette-modal__card {
  width: min(420px, calc(100% - 32px));
  background: linear-gradient(180deg,#0f1113,#121217);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0,0,0,0.6);
}
.roulette-wheel {
  width: 260px;
  height: 260px;
  margin: 8px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  background: conic-gradient(
    #ff7a5a 0deg 90deg,
    #ffd27a 90deg 180deg,
    #ffc7d0 180deg 270deg,
    #ffd27a 270deg 360deg
  );
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 -10px 40px rgba(0,0,0,0.25);
  transform: rotate(0deg);
  transition: transform 1800ms cubic-bezier(.15,.9,.2,1);
}
.roulette-wheel:after {
  /* needle */
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #fff;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
}
.roulette-wheel__inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(180deg,#131418,#1c1f23);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), inset 0 2px 6px rgba(255,255,255,0.02);
  transform: translateY(-4px);
}
.roulette-wheel.spin-reset {
  transition: none;
}
.roulette-result { margin-top: 12px; }
.roulette-result p { font-size: 1.05rem; margin: 0 0 12px; }
.roulette-actions { display:flex; gap:8px; justify-content:center; }

/* Thumbnail inside roulette modal */
.roulette-thumb { display:flex; justify-content:center; margin-bottom:10px; }
.roulette-thumb img { width: 120px; height: 80px; object-fit:cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 20px rgba(0,0,0,0.45); }

@media (max-width: 640px) {
  .roulette-wheel { width: 180px; height:180px; }
  .roulette-wheel__inner { width: 100px; height:100px; }
  /* Mantener la ruleta por encima del menú flotante en pantallas pequeñas */
  .roulette-button { left: calc(12px + var(--safe-left)); bottom: calc(240px + var(--safe-bottom)); z-index:1600; padding:6px 8px; gap:6px; }
  .roulette-button__icon { font-size:12px; }
}

.floating-menu {
  position: relative;
}

.floating-menu__toggle {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(10, 10, 10, 0.98));
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.18), var(--glow-soft);
  transition: 180ms ease;
}

.floating-menu__toggle:hover {
  border-color: rgba(255, 0, 60, 0.72);
  box-shadow: var(--glow-soft);
}

.floating-menu__label {
  font-family: "Shippori Mincho", serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.floating-menu__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 1;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(25, 27, 32, 0.9);
  box-shadow: var(--glow-soft);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom left;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    visibility 0s linear 240ms;
}

.floating-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-menu__header h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
}

.floating-menu__header .eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
}

.floating-menu__chips {
  margin-top: 0;
  max-height: min(42vh, 320px);
  flex-wrap: wrap;
  overflow: auto;
  padding-right: 4px;
}

.floating-menu__chips button {
  flex: 0 0 auto;
  padding: 9px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ✏️ EDITAR: header compacto y barra superior. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  width: var(--content-width);
  margin: 0 auto;
  padding: calc(10px + var(--safe-top)) 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.94), rgba(12, 12, 16, 0.76));
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
}

.brand__mono,
.brand__kanji,
.eyebrow,
.chips button,
.section-heading h2,
.hero h1,
.hero__panel h2,
.cart-drawer h2,
.product-card h3 {
  font-family: "Shippori Mincho", serif;
}

.brand__mono {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand__kanji {
  color: var(--primary);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-shadow: none;
}

.topbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost-button,
.cart-button,
.primary-button,
.secondary-button,
.icon-button,
.chips button,
.stepper button,
.daikon-chat__suggestions button,
.daikon-chat__toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: 180ms ease;
}

.ghost-button,
.cart-button,
.secondary-button,
.primary-button,
.icon-button,
.daikon-chat__toggle,
.daikon-chat__suggestions button {
  cursor: pointer;
}

.ghost-button,
.secondary-button,
.cart-button {
  border-radius: 999px;
  padding: 10px 14px;
}

.ghost-button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  flex: 0 0 46px;
}

.ghost-button--icon svg {
  width: 18px;
  height: 18px;
}

.ghost-button:hover,
.secondary-button:hover,
.cart-button:hover,
.chips button:hover,
.stepper button:hover,
.icon-button:hover,
.daikon-chat__toggle:hover,
.daikon-chat__suggestions button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--glow-soft);
}

.daikon-chat__toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(18, 18, 22, 0.98), rgba(8, 8, 10, 0.99));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
  animation: daikon-pulse 4.2s ease-in-out infinite;
}

.daikon-chat__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  background: #080808 url("assets/products/logodaikon.jpg") center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--glow-soft);
  overflow: hidden;
}

.daikon-chat__label {
  font-family: "Shippori Mincho", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Follow on Instagram next to open status */
.follow-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  color: white;
  text-decoration: none;
  opacity: 0.95;
}
.follow-ig__icon { width: 18px; height: 18px; flex: 0 0 18px; color: white; }
.follow-ig__label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight:600; }
.follow-ig:hover { opacity: 1; transform: translateY(-1px); }

@media (max-width: 640px) {
  .follow-ig__label { display:none; }
  .follow-ig { margin-left:8px; }
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex: 0 0 46px;
  padding: 0;
  position: relative;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--glow-soft);
}

.cart-button--glow {
  animation: cart-button-glow 700ms ease;
}

.cart-button svg {
  width: 19px;
  height: 19px;
}

.cart-button__count {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border: 1px solid rgba(8, 8, 10, 0.78);
  box-shadow: 0 8px 18px rgba(234, 72, 98, 0.24);
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@keyframes cart-button-glow {
  0% {
    transform: scale(1);
    box-shadow: var(--glow-soft);
  }

  40% {
    transform: scale(1.08);
    box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.38), 0 0 22px rgba(255, 0, 60, 0.85), 0 0 42px rgba(255, 0, 60, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: var(--glow-soft);
  }
}

main {
  width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ✏️ EDITAR: hero principal con imagen, copy y panel destacado. */
.hero {
  position: relative;
  margin-top: 18px;
  min-height: 74vh;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.46), rgba(8, 8, 10, 0.82)),
    url("assets/products/hero-neon.svg") center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 0.78) 0%, rgba(10, 10, 12, 0.48) 55%, rgba(6, 6, 8, 0.8) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.22) 0%, rgba(10, 10, 12, 0.68) 100%);
}

.hero__content,
.hero__panel {
  position: relative;
  z-index: 1;
}

.hero__content::before {
  content: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 0.94;
}

.hero__notice {
  display: inline-grid;
  justify-items: start;
  gap: 8px;
  margin: 22px 0 0;
  width: min(100%, 640px);
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 68, 113, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 0, 60, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.92), rgba(9, 9, 11, 0.82));
  box-shadow:
    0 0 0 1px rgba(255, 84, 126, 0.08),
    0 0 24px rgba(255, 0, 60, 0.12),
    var(--glow-soft);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero__notice-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.hero__text,
.section-heading p,
.hero__panel p {
  color: var(--text);
  opacity: 0.85;
  max-width: 58ch;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}

.hero__actions .primary-button {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(180deg, #ff4d79 0%, #ff003c 45%, #d10032 100%);
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(255, 84, 126, 0.32),
    0 0 22px rgba(255, 0, 60, 0.34),
    0 12px 28px rgba(209, 0, 50, 0.32);
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08) saturate(1.08);
}

.primary-button--small {
  padding: 10px 16px;
}

.primary-button--wide {
  width: 100%;
  justify-content: center;
}

.secondary-button {
  background: rgba(8, 8, 8, 0.62);
}

.secondary-button--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0;
  aspect-ratio: 1;
}

.secondary-button--icon svg {
  width: 19px;
  height: 19px;
}

.secondary-button__label {
  display: none;
}

@media (min-width: 768px) {
  .secondary-button--icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
  }

  .secondary-button__label {
    display: inline-block;
  }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero__stats div,
.hero__panel,
.toolbar,
.product-card,
.cart-drawer,
.cart-item,
.toolbar__search input {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.hero__stats div {
  padding: 16px;
  border-radius: var(--radius-sm);
}

.hero__stats dt {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.hero__stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
}

.hero__panel {
  align-self: end;
  padding: 28px;
  border-radius: 30px;
  box-shadow: var(--glow-soft);
}

.hero__panel-media {
  margin-bottom: 18px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 60, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(12, 12, 15, 0.94), rgba(8, 8, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 0, 60, 0.12),
    var(--glow-soft);
}

.hero__panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 280ms ease, filter 280ms ease;
}

.hero__panel-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero__panel-footer span {
  font-size: 1.8rem;
  font-weight: 700;
}

/* ✏️ EDITAR: buscador y tabs de categorias. */
.toolbar {
  margin: 8px 0 26px;
  padding: 16px;
  border-radius: 24px;
}

.toolbar__search input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--text);
  outline: none;
}

.chips {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips button {
    white-space: nowrap;
    padding: 12px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chips button.is-active {
  background: transparent;
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
}

/* Mobile: make category chips big touch targets and bubble-like */
@media (max-width: 720px) {
  .chips {
    padding: 10px 12px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .chips button {
    padding: 14px 18px;
    min-height: 48px;
    font-size: 0.96rem;
    border-radius: 999px;
    background: rgba(20,20,22,0.6);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: rgba(255,255,255,0.06);
  }

  .chips button:active {
    transform: translateY(1px) scale(0.995);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }

  .chips { overflow-x: auto; padding-bottom: 8px; }
  .chips::-webkit-scrollbar { display: none; }
}

.chips button.is-active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  margin-top: 4px;
}

.menu-section {
  margin-top: 34px;
  padding-bottom: calc(168px + var(--safe-bottom));
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading .eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(255, 0, 60, 0.7);
  display: block;
}

.section-heading__count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  white-space: nowrap;
}

.section-heading p:last-child {
  width: 100%;
}

.section-heading h2,
.cart-drawer h2,
.hero__panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ✏️ EDITAR: grilla principal del menu responsive. */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ✏️ EDITAR: card especial de promo almuerzo. */
.promo-card {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 16, 20, 0.98), rgba(8, 8, 10, 0.98));
  box-shadow: var(--glow-soft);
}

.promo-card__media {
  position: relative;
  min-height: 100%;
  background: #120b0d;
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.promo-card__media--triplet {
  display: flex;
  gap: 6px;
}
.promo-card__media--triplet img {
  width: calc(33.333% - 4px);
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.promo-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow:
    0 0 0 1px rgba(255, 84, 126, 0.22),
    0 0 18px rgba(255, 0, 60, 0.24),
    0 8px 18px rgba(209, 0, 50, 0.24);
}

.promo-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.promo-card__eyebrow {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.promo-card h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.promo-card p {
  margin: 0;
  color: var(--text);
  opacity: 0.86;
  line-height: 1.6;
}

.promo-card__button {
  align-self: flex-start;
}

.product-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 60, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 0, 60, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(17, 17, 21, 0.98), rgba(8, 8, 10, 0.98));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
}

.product-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.product-card--featured .product-card__media {
  /* Make media fill the full height of the featured card column */
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
}

.product-card--featured .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card--featured .product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.product-card--featured .product-card__description {
  min-height: 0;
  font-size: 0.92rem;
}

.product-card--featured h3 {
  font-size: 1.5rem;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 70, 110, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 84, 126, 0.12),
    0 0 26px rgba(255, 0, 60, 0.18),
    0 18px 36px rgba(7, 10, 15, 0.22);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1.1;
  min-height: 180px;
  overflow: hidden;
  background: #0d0d11;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.product-card--featured .product-card__media img {
  /* Make featured (pancho) images behave like regular product cards */
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.combo-qty-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.size-badge {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  display: inline-block;
  margin: 8px 0;
}

.product-addons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.product-addons { margin-bottom: 8px; }

.addon-checkbox {
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.addon-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.addon-checkbox span {
  white-space: normal;
  word-break: break-word;
}

.product-card--featured .product-addons {
  width: 100%;
}

.hero__panel:hover .hero__panel-media img,
.hero__panel:focus-within .hero__panel-media img,
.promo-card:hover .promo-card__media img,
.promo-card:focus-within .promo-card__media img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.product-card:hover .product-card__media img,
.product-card:focus-within .product-card__media img {
  transform: scale(1.1);
  filter: saturate(1.08);
}

.hero__panel:active .hero__panel-media img,
.promo-card:active .promo-card__media img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

.product-card:active .product-card__media img {
  transform: scale(1.08);
  filter: saturate(1.06);
}

/* Featured (pancho) cards use same hover/active behavior as normal product cards */
.product-card--featured:hover .product-card__media img,
.product-card--featured:focus-within .product-card__media img {
  transform: scale(1.1);
  filter: saturate(1.08);
}

.product-card--featured:active .product-card__media img {
  transform: scale(1.08);
  filter: saturate(1.06);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 20, 25, 0.72);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-card__badge--hot {
  background: linear-gradient(135deg, #ff003c, #cc0030);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--glow);
  letter-spacing: 0.08em;
}

.product-card__badge--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.product-card__badge .badge__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-size: 14px 14px;
  background-repeat: no-repeat;
}

.product-card__badge--hot { }
.product-card__badge--hot .badge__icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 2s4 3 4 7c0 3.866-3 6-4 6s-4-2.134-4-6c0-4 4-7 4-7z'/></svg>"); }

.product-card__badge--promo .badge__icon { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222'><path d='M3 6h18v2H3zM3 11h18v2H3zM3 16h18v2H3z'/></svg>"); }

.product-badge__microcopy {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 0, 60, 0.06), rgba(255, 0, 60, 0.02)),
    linear-gradient(180deg, rgba(16, 16, 20, 0.88), rgba(10, 10, 12, 0.92));
}

.product-card__topline,
.product-card__footer,
.cart-summary__row,
.cart-drawer__header,
.cart-item,
.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__category,
.product-card__description,
.product-card__meta,
.cart-item__note {
  color: var(--muted);
}

.product-card__category,
.product-card__meta,
.cart-item__note {
  font-size: 0.76rem;
}

.product-card h3 {
  margin: 6px 0 8px;
  font-size: 1.22rem;
}

.product-card__description {
  min-height: 54px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.product-card__selector {
  display: grid;
  gap: 6px;
  margin: 2px 0 12px;
}

.product-card__selector-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

product-card__selector select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.product-card__selector select:focus {
  outline: none;
  border-color: rgba(255, 0, 60, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.14);
}

.product-card__footer {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.product-card__footer .product-card__meta {
  margin-right: auto;
}

.product-card__meta {
  margin-right: auto;
  max-width: calc(100% - 110px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.card-stepper,
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-stepper {
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.78);
  box-shadow: var(--glow-soft);
}

.card-stepper button,
.stepper button,
.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

/* Compact stepper for combo cards to keep + visible and avoid overflow */
.product-card__body .size-badge ~ .product-card__footer .card-stepper button,
.product-card__body .product-card__selector ~ .product-card__footer .card-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.product-card__body .size-badge ~ .product-card__footer .card-stepper,
.product-card__body .product-card__selector ~ .product-card__footer .card-stepper {
  gap: 6px;
  padding: 4px;
}

/* Slightly reduce select padding when present to avoid pushing controls */
.product-card__body .product-card__selector select {
  padding: 8px 10px;
}

@media (max-width: 960px) {
  .topbar {
    gap: 10px;
  }

  .brand__mono {
    font-size: 1.04rem;
  }

  .brand__kanji {
    font-size: 0.52rem;
  }

  .ghost-button,
  .secondary-button,
  .cart-button {
    padding: 9px 12px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card__body {
    padding: 13px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .product-card__description {
    min-height: 48px;
    font-size: 0.8rem;
  }
}

.card-stepper button {
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: 180ms ease;
}

.card-stepper button:hover {
  border-color: rgba(255, 0, 60, 0.72);
  box-shadow: var(--glow-soft);
}

.card-stepper button[data-action="increase"] {
  background: rgba(255, 0, 60, 0.18);
  color: var(--primary);
}

.card-stepper button[data-action="increase"]:hover {
  background: rgba(255, 0, 60, 0.28);
}

.card-stepper__value,
.stepper__value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.product-card__price {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
  font-weight: 700;
}

.product-card__price-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.cart-item__price,
.cart-summary strong {
  font-weight: 700;
}

/* ✏️ EDITAR: panel lateral del carrito. */
.cart-drawer {
  position: fixed;
  top: var(--safe-top);
  right: var(--safe-right);
  width: min(292px, calc(100vw - 10px));
  height: calc(100dvh - var(--safe-top));
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel-strong);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 16px));
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 320ms;
  box-shadow: -16px 0 34px rgba(0, 0, 0, 0.46);
  z-index: 3;
}

.daikon-chat__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 1;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100dvh - 120px - var(--safe-top) - var(--safe-bottom)));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(25, 27, 32, 0.92);
  box-shadow: var(--glow-soft);
  backdrop-filter: blur(20px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom left;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    visibility 0s linear 240ms;
}

.daikon-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daikon-chat__header h2 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.7rem;
}

.daikon-chat__header .eyebrow {
  margin-bottom: 6px;
}

.daikon-chat__messages {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.chat-bubble {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.55;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble--bot {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 33, 39, 0.92);
}

.daikon-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  max-height: min(112px, 28vh);
  overflow: auto;
  padding-right: 4px;
}

.daikon-chat__suggestions button {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(17, 17, 17, 0.92);
}

.cart-drawer.is-visible,
.floating-menu.is-visible .floating-menu__panel,
.daikon-chat.is-visible .daikon-chat__panel,
.backdrop.is-visible {
  visibility: visible;
}

.cart-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s;
}

.daikon-chat.is-open .daikon-chat__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    visibility 0s;
}

.floating-menu.is-open .floating-menu__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    visibility 0s;
}

.cart-drawer__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-top: 4px;
  cursor: default;
}

.cart-items-panel {
  position: relative;
  min-height: 0;
  margin-bottom: 8px;
  overflow: visible;
}

.cart-items {
  position: relative;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 4px;
  padding-bottom: 8px;
  cursor: default;
}

.cart-scroll-controls {
  display: none;
}

.cart-scroll-button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 60, 0.62);
  background: rgba(18, 8, 10, 0.96);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.2), var(--glow-soft);
  pointer-events: auto;
  transition: 180ms ease;
}

.cart-scroll-button:hover {
  border-color: rgba(255, 0, 60, 0.8);
  transform: translateY(-1px);
}

.cart-item,
.cart-summary {
  padding: 10px;
  border-radius: 18px;
}

.cart-drawer__header h2 {
  font-size: 1.2rem;
  line-height: 1.05;
}

/* Scheduled note badge shown in the cart header when the order is scheduled */
.scheduled-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg,#0f1724,#172034);
  color: #ffdf6b;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

@media (max-width: 720px) {
  .scheduled-note { display: block; margin: 8px 0 0 0; }
}

/* Aviso debajo de Programar pedido */
.delivery-warning {
  margin-top: 8px;
  background: linear-gradient(180deg, rgba(255,245,210,0.06), rgba(255,245,210,0.02));
  border: 1px solid rgba(255,215,120,0.08);
  color: #fff6e6;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .delivery-warning { font-size: 0.85rem; }
}

/* Product card micro-animations: subtle lift, glass sheen and "salsa" overlay */
.product-card {
  position: relative;
  transition: transform 240ms cubic-bezier(.2,.9,.15,1), box-shadow 240ms ease;
  will-change: transform;
  overflow: visible;
}

.product-card__media {
  position: relative;
  overflow: visible;
  border-radius: 12px;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 48px rgba(2,6,23,0.6), 0 6px 30px rgba(255,0,60,0.06);
}

.product-card:active { transform: translateY(-2px) scale(0.997); }

/* Sauce overlay: animated radial gradients that flow subtly */
.sauce-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
  mix-blend-mode: screen;
  border-radius: 12px;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(255,210,130,0.28) 0%, rgba(255,210,130,0.06) 12%, transparent 16%),
    radial-gradient(circle at 82% 72%, rgba(255,120,60,0.16) 0%, rgba(255,120,60,0.04) 12%, transparent 20%);
  background-size: 220% 220%, 180% 180%;
  background-position: 0% 0%, 100% 100%;
}

.product-card:hover .sauce-overlay { opacity: 1; animation: sauce-flow 1800ms ease-in-out infinite; }
.product-card:active .sauce-overlay { opacity: 1; animation: sauce-flow 900ms ease-in-out 1; }

@keyframes sauce-flow {
  0% { transform: translateY(0); background-position: 0% 0%, 100% 100%; }
  50% { transform: translateY(6px); background-position: 4% 10%, 96% 92%; }
  100% { transform: translateY(0); background-position: 0% 0%, 100% 100%; }
}

/* Variant colors for sauce overlay */
.product-card__media.sauce--pancho .sauce-overlay {
  background-image:
    radial-gradient(circle at 22% 12%, rgba(255,220,140,0.36) 0%, rgba(255,220,140,0.08) 12%, transparent 18%),
    radial-gradient(circle at 78% 78%, rgba(255,160,40,0.18) 0%, rgba(255,160,40,0.04) 14%, transparent 22%);
}

.product-card__media.sauce--hotburger .sauce-overlay {
  background-image:
    radial-gradient(circle at 18% 8%, rgba(255,100,80,0.32) 0%, rgba(255,80,60,0.08) 12%, transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(255,40,40,0.18) 0%, rgba(255,40,40,0.04) 12%, transparent 20%);
}

.product-card__media.sauce--combo .sauce-overlay {
  background-image:
    radial-gradient(circle at 20% 12%, rgba(160,220,255,0.18) 0%, rgba(160,220,255,0.04) 10%, transparent 16%),
    radial-gradient(circle at 80% 70%, rgba(200,160,255,0.12) 0%, rgba(200,160,255,0.03) 14%, transparent 20%);
}

.product-card__media.sauce--default .sauce-overlay {
  /* keep the existing warm default but slightly toned down */
  background-image:
    radial-gradient(circle at 18% 8%, rgba(255,210,130,0.22) 0%, rgba(255,210,130,0.04) 12%, transparent 16%),
    radial-gradient(circle at 82% 72%, rgba(255,120,60,0.12) 0%, rgba(255,120,60,0.02) 12%, transparent 20%);
}

/* Glass sheen: subtle moving band at the top of the media */
.product-card__media::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 6%;
  height: 28%;
  border-radius: 10px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  opacity: 0;
  transform: translateY(-6px) skewX(-6deg);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(.2,.9,.15,1);
  backdrop-filter: blur(6px) saturate(120%);
}

.product-card:hover .product-card__media::after { opacity: 1; transform: translateY(0) skewX(-4deg); }

@media (max-width: 720px) {
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:active { transform: translateY(-4px) scale(1.01); }
}

/* Stories / testimonials (instagram-stories style) */
.stories {
  padding: 24px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
}
.stories__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.stories__title { margin: 0 0 10px 6px; font-weight:700; }
.stories__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 6px 6px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.story-card {
  min-width: 220px;
  max-width: 280px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(18,18,20,0.9), rgba(26,26,30,0.95));
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.story-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,0.6); }
.story-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg,#ff7a5a,#ffbf60);
  flex: 0 0 auto;
}
.story-card__quote { margin: 0; font-size: 0.97rem; line-height:1.25; }
.story-card__meta { display:block; margin-top:8px; color: var(--muted); font-weight:600; font-size:0.82rem; }

@media (max-width: 480px) {
  .story-card { min-width: 84%; max-width: 92%; padding: 14px; }
  .story-card__avatar { width: 44px; height:44px; }
}

.cart-drawer__header .eyebrow {
  margin: 0 0 4px;
  font-size: 0.62rem;
}

.cart-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 0, 60, 0.28);
  background: rgba(17, 17, 17, 0.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateY(10px);
}

.cart-item__info {
  min-width: 0;
}

.cart-item__info h3 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  word-break: break-word;
}

.cart-item__note,
.cart-item__unit-price,
.cart-item__price {
  word-break: break-word;
}

.cart-item__note {
  font-size: 0.68rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__price {
  font-size: 0.9rem;
}

.cart-item__amounts {
  display: grid;
  justify-items: start;
  min-width: 0;
  gap: 2px;
}

.cart-item__unit-price {
  display: none;
}

.cart-item__actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cart-summary {
  border: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.9);
  min-height: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.cart-summary__mobile-heading {
  display: block;
  margin-bottom: 8px;
}

.cart-summary__mobile-heading .eyebrow {
  margin: 0 0 4px;
  font-size: 0.58rem;
}

.cart-summary__mobile-heading h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  line-height: 1;
}

.cart-summary .primary-button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#checkoutButton {
  border-radius: 14px;
}

#checkoutButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-drawer__body,
.cart-items,
.daikon-chat__messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 0, 60, 0.7) rgba(255, 255, 255, 0.06);
}

.cart-drawer__body::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.daikon-chat__messages::-webkit-scrollbar {
  width: 10px;
}

.cart-drawer__body::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track,
.daikon-chat__messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.cart-drawer__body::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb,
.daikon-chat__messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 0, 60, 0.95), rgba(204, 0, 48, 0.95));
  border-radius: 999px;
  border: 2px solid rgba(12, 12, 12, 0.9);
}

/* ✏️ EDITAR: formulario del cliente dentro del carrito. */
.checkout-form {
  display: grid;
  gap: 7px;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 0, 60, 0.32);
}

.checkout-field {
  display: grid;
  gap: 5px;
}

.checkout-field span,
.payment-methods legend {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.checkout-field input {
  width: 100%;
  border: 1px solid rgba(255, 0, 60, 0.35);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.82);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.76rem;
  line-height: 1.15;
  outline: none;
}

.checkout-field input::placeholder {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.checkout-field input:focus {
  border-color: rgba(255, 0, 60, 0.8);
  box-shadow: var(--glow-soft);
}

.checkout-field input.is-invalid {
  border-color: rgba(255, 0, 60, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.4), var(--glow-soft);
}

.payment-methods {
  position: relative;
}

.payment-methods::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.payment-methods select {
  appearance: none;
  width: 100%;
  padding: 8px 30px 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 0, 60, 0.24);
  background: rgba(8, 8, 8, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.15;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.payment-methods select:focus {
  outline: none;
  border-color: rgba(255, 0, 60, 0.8);
  box-shadow: var(--glow-soft);
}

.cart-summary__row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 0, 60, 0.35);
  font-size: 0.76rem;
}

.cart-summary__row strong {
  font-size: 0.94rem;
}

.cart-summary__row--total {
  border-bottom: 0;
  padding-top: 6px;
  font-size: 1.06rem;
}

.cart-summary__row--total strong {
  color: var(--primary);
  text-shadow: 0 0 14px rgba(255, 0, 60, 0.68);
  font-size: 1.18rem;
}

.icon-button {
  font-size: 1.5rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.empty-state {
  padding: 22px;
  border: 1px dashed rgba(255, 0, 60, 0.35);
  border-radius: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.cart-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}

.cart-empty__emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.cart-empty p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.94);
  border: 1px solid rgba(255, 0, 60, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
  z-index: 4;
}

.toast__icon {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ff003c, #cc0030);
  display: grid;
  place-items: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  animation: card-in 560ms ease forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes daikon-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.22), var(--glow-soft);
  }

  50% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.34), 0 0 24px rgba(255, 0, 60, 0.34);
  }
}

@keyframes open-orders-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 1px rgba(88, 255, 169, 0.18), 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 24px rgba(46, 214, 122, 0.22);
  }

  50% {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 0 0 1px rgba(88, 255, 169, 0.28), 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 34px rgba(46, 214, 122, 0.32);
  }
}

/* ✏️ EDITAR: breakpoints responsive. */
@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-card {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .promo-card {
    grid-column: span 3;
  }

  .cart-drawer {
    width: min(320px, 100vw);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .promo-card {
    grid-column: span 4;
  }

  .product-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .promo-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    overscroll-behavior-y: contain;
  }

  .noise {
    opacity: 0.06;
    mix-blend-mode: normal;
  }

  .daikon-chat {
    left: calc(12px + var(--safe-left));
    right: auto;
    width: auto;
    bottom: calc(12px + var(--safe-bottom));
    gap: 6px;
  }

  .install-app-button {
    right: calc(12px + var(--safe-right));
    bottom: calc(12px + var(--safe-bottom));
    min-height: 36px;
    padding: 5px 10px;
  }

  .topbar {
    padding: calc(8px + var(--safe-top)) 0 8px;
  }

  .topbar__identity {
    gap: 8px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .brand__mono {
    font-size: 0.98rem;
  }

  .brand__kanji {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }

  .open-orders-button {
    min-height: 30px;
    padding: 5px 8px;
    gap: 5px;
  }

  .open-orders-button__dot {
    width: 6px;
    height: 6px;
  }

  .open-orders-button__label {
    font-size: 0.46rem;
    letter-spacing: 0.01em;
  }

  .ghost-button {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .ghost-button--icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    flex: 0 0 42px;
  }

  .cart-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .cart-button__count {
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    top: -3px;
    right: -3px;
    font-size: 0.66rem;
  }

  .install-app-button__icon {
    width: 22px;
    height: 22px;
  }

  .install-app-button__label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  main {
    width: min(100vw - 20px, 100%);
  }

  .menu-section {
    padding-bottom: calc(196px + var(--safe-bottom));
  }

  .hero {
    min-height: auto;
    padding: 18px;
    padding-bottom: 96px;
    border-radius: 22px;
    gap: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 11vw, 3.1rem);
    line-height: 0.98;
  }

  .hero__text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero__actions {
    margin: 18px 0 24px;
    gap: 10px;
  }

  .hero__notice {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .toolbar,
  .product-card,
  .hero__panel,
  .cart-summary,
  .cart-item {
    border-radius: 18px;
  }

  .product-card h3 {
    font-size: 1rem;
    line-height: 1.1;
  }

  .product-card__category,
  .product-card__meta,
  .cart-item__note {
    font-size: 0.7rem;
  }

  .product-card__description {
    min-height: 42px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .product-card__badge {
    top: 10px;
    left: 10px;
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .product-card__footer {
    align-items: center;
  }

  .product-card__body,
  .product-card--featured .product-card__body {
    padding: 11px;
  }

  .floating-menu__toggle {
    width: fit-content;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 12px;
  }

  .daikon-chat__toggle {
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 4px 9px 4px 4px;
  }

  .floating-menu__panel,
  .daikon-chat__panel {
    width: min(100vw - 24px, 300px);
    left: 0;
    bottom: calc(100% + 10px);
  }

  .daikon-chat__panel {
    gap: 10px;
    padding: 14px;
  }

  .floating-menu__label {
    font-size: 0.8rem;
  }

  .floating-menu__header h2 {
    font-size: 1.02rem;
  }

  .floating-menu__header .eyebrow {
    font-size: 0.62rem;
  }

  .floating-menu__chips button {
    padding: 8px 10px;
    font-size: 0.66rem;
  }

  .daikon-chat__icon {
    width: 24px;
    height: 24px;
  }

  .daikon-chat__label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .daikon-chat__header h2 {
    font-size: 1.32rem;
  }

  .daikon-chat__messages {
    gap: 8px;
  }

  .chat-bubble {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .daikon-chat__suggestions {
    gap: 6px;
    max-height: min(132px, 32vh);
  }

  .daikon-chat__suggestions button {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .cart-drawer {
    top: calc(96px + var(--safe-top));
    bottom: calc(8px + var(--safe-bottom));
    width: min(272px, calc(100vw - 10px - var(--safe-right)));
    height: auto;
    padding: 8px;
    border-radius: 20px 0 0 20px;
  }

  .cart-drawer__body {
    padding-top: 4px;
  }

  .cart-drawer__header h2 {
    font-size: 1.02rem;
  }

  .cart-drawer__header .eyebrow,
  .cart-summary__mobile-heading .eyebrow {
    font-size: 0.54rem;
  }

  .cart-summary {
    padding: 22px 9px 0;
  }

  .cart-summary__mobile-heading h3 {
    font-size: 0.98rem;
  }

  .checkout-form {
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .checkout-field span,
  .payment-methods select,
  .cart-summary__row {
    font-size: 0.66rem;
  }

  .checkout-field input {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .payment-methods::after {
    right: 11px;
    bottom: 13px;
    width: 6px;
    height: 6px;
  }

  .payment-methods select {
    padding: 7px 26px 7px 9px;
    font-size: 0.68rem;
  }

  .cart-summary__row strong {
    font-size: 0.86rem;
  }

  .cart-summary__row--total {
    font-size: 0.92rem;
  }

  .cart-summary__row--total strong {
    font-size: 1.04rem;
  }

  .cart-summary .primary-button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .cart-item {
    gap: 6px;
    padding: 7px;
  }

  .cart-item__info h3 {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .cart-item__note,
  .cart-item__unit-price {
    display: none;
  }

  .cart-item__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
  }

  .cart-item__amounts {
    justify-items: start;
    min-width: 0;
    gap: 2px;
  }

  .cart-item__price {
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .stepper {
    gap: 6px;
    justify-self: end;
  }

  .stepper button {
    width: 28px;
    height: 28px;
  }

  .stepper__value {
    min-width: 18px;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
  }

  .topbar__identity {
    gap: 6px;
  }

  .brand__mono {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .brand__kanji {
    font-size: 0.42rem;
    letter-spacing: 0.1em;
  }

  .open-orders-button {
    min-height: 28px;
    padding: 4px 7px;
  }

  .open-orders-button__label {
    font-size: 0.41rem;
  }

  .ghost-button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .ghost-button--icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    flex: 0 0 38px;
  }

  .cart-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
  }

  .cart-button svg {
    width: 16px;
    height: 16px;
  }

  .cart-button__count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    top: -2px;
    right: -2px;
    font-size: 0.6rem;
  }

  .daikon-chat {
    left: calc(10px + var(--safe-left));
  }

  .daikon-chat__toggle {
    min-height: 34px;
    padding: 4px 8px 4px 4px;
  }

  .daikon-chat__icon {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .daikon-chat__label {
    font-size: 0.56rem;
  }

  .install-app-button {
    min-height: 32px;
    padding: 4px 8px;
  }

  .install-app-button__icon {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }

  .install-app-button__label {
    font-size: 0.56rem;
  }

  .hero {
    padding: 16px;
    padding-bottom: 90px;
    gap: 16px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 10.2vw, 2.6rem);
  }

  .hero__text,
  .hero__notice {
    font-size: 0.78rem;
  }

  .hero__actions {
    margin: 14px 0 18px;
  }

  .product-card h3 {
    font-size: 0.92rem;
  }

  .product-card__description {
    font-size: 0.72rem;
  }

  .cart-item {
    padding: 8px;
  }

  .cart-item__info h3 {
    font-size: 0.74rem;
  }

  .cart-item__note,
  .cart-item__price {
    font-size: 0.64rem;
  }
}

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

  .reveal-card {
    opacity: 1;
    transform: none;
  }
}

/* Mobile / iOS / Android responsive tweaks */
html, body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Ensure safe-area paddings are applied on iOS fullscreen */
.topbar {
  padding-top: calc(10px + var(--safe-top));
  width: calc(100% - 32px);
  margin: 0 16px;
}

/* Make layout adapt on small screens */
@media (max-width: 900px) {
  :root { --content-width: calc(100vw - 24px); }
  .topbar { width: var(--content-width); }
  .hero { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 12px; }
  .hero__content { order: 1; }
  .hero__panel { order: 2; width: 100%; }
  .hero__panel-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
  .hero__panel-hotburgers { margin-top: 12px; }
  .hero__panel-media--hot img, #hotburgerCarousel, #featuredCarousel { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 12px; }
  .product-card { min-height: auto; }
  .primary-button, .ghost-button, .secondary-button { min-height: 44px; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero__panel-media img { height: 100%; }
  .hero__panel-media--hot img, #hotburgerCarousel, #featuredCarousel { height: 100%; }
  .topbar { padding: calc(8px + var(--safe-top)) 12px; border-radius: 0; }
  .install-app-button { min-height: 40px; padding: 8px; }
}

/* Scrolling on iOS should be smooth inside overflow areas */
.floating-menu__chips, .cart-items { -webkit-overflow-scrolling: touch; }

/* Reserve space for product images to avoid CLS and improve layout stability */
.product-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 12px;
}

/* Carousel control buttons */
.carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--glow-soft);
  cursor: pointer;
}
.carousel__control--prev { left: 8px; }
.carousel__control--next { right: 8px; }
.carousel__control:focus { outline: 2px solid var(--primary); }

/* Image placeholder / blur-up */
.image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,0,60,0.06) 50%, rgba(255,255,255,0.02) 100%);
  filter: blur(8px);
  transition: opacity 420ms ease;
  z-index: 0;
}
.image-placeholder--hero { filter: blur(10px); }
.product-card__media { position: relative; overflow: hidden; }
.product-image { position: relative; z-index: 1; opacity: 0; transform: scale(1.03); transition: opacity 420ms ease, transform 420ms ease; }
.product-card__media.is-loaded .product-image, .hero__panel-media.is-loaded img { opacity: 1; transform: scale(1); }
.product-card__media.is-loaded .image-placeholder, .hero__panel-media.is-loaded .image-placeholder { opacity: 0; }

/* Micro-interactions */
.product-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.primary-button { transition: transform 140ms ease, box-shadow 140ms ease; }
.primary-button:active { transform: translateY(1px) scale(0.995); }
.card-stepper button { transition: transform 120ms ease, background 120ms ease; }
.card-stepper button:active { transform: scale(0.92); }

/* Fly-to-cart image */
.fly-image {
  position: fixed;
  z-index: 9999;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(0.22, 0.9, 0.3, 1), opacity 600ms ease;
}

/* Mobile CTA bar */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 60;
}
.mobile-cta__info { display:flex; flex-direction:column; }
.mobile-cta__label { font-size: 0.72rem; color: var(--muted); }
.mobile-cta__price { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.primary-button--large { padding: 12px 18px; min-width: 160px; font-size: 1rem; border-radius: 12px; }

@media (min-width: 900px) {
  .mobile-cta { display: none !important; }
}

/* En mobile, elevar la barra de total/CTA para no solaparse con los botones flotantes */
@media (max-width: 720px) {
  .mobile-cta {
    bottom: calc(12px + var(--safe-bottom) + 76px);
    left: 12px;
    right: 12px;
    z-index: 30; /* debajo de toasts pero por encima del contenido */
  }
  /* Asegurar que los botones flotantes queden sobre la barra (clickables) */
  .daikon-chat { z-index: 40; }
  .install-app-button { z-index: 40; }
}




