/* ═══════════════════════════════════════════════════════════════
   El Emporio de la Carne — Pedidos online
   Paleta: crema, tinta carbón, rojo carne. Tono cálido, tradicional.
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream:      #f6f1e8;
  --cream-2:    #efe6d5;
  --paper:      #fdfaf3;
  --ink:        #1c1a17;
  --ink-2:      #3f3a34;
  --muted:      #7a6f61;
  --line:       #e3d9c6;
  --red:        #c8102e;
  --red-2:      #9a0c22;
  --red-glow:   rgba(200,16,46,.12);
  --green:      #2f7d3c;
  --amber:      #b8770a;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(28,26,23,.06), 0 2px 8px rgba(28,26,23,.04);
  --shadow-md:  0 8px 24px rgba(28,26,23,.10);
  --shadow-lg:  0 18px 40px rgba(28,26,23,.14);
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* El atributo hidden tiene que ganar siempre. Sin esto, cualquier clase con
   display (.cerrado { display:flex }, .cart-badge) lo pisa y el elemento se
   ve igual: el cartel de "pedidos cerrados" tapaba el catalogo abierto. */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-2); }

/* ── PRELOADER ────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity .3s ease, visibility .3s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader .pl-logo-wrap {
  width: 120px; height: 120px;
  animation: plPulse 1.6s ease-in-out infinite;
}
#preloader .pl-logo { width: 100%; height: 100%; object-fit: contain; }
#preloader .pl-bar {
  width: 140px; height: 3px;
  background: rgba(200,16,46,.15);
  border-radius: 2px; overflow: hidden;
  position: relative;
}
#preloader .pl-bar::after {
  content: ''; position: absolute; top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: plSweep 1.1s ease-in-out infinite;
}
@keyframes plPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes plSweep { 0% { left: -40%; } 100% { left: 100%; } }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.brand-logo {
  width: 44px; height: 44px; object-fit: contain;
  flex-shrink: 0;
}
.brand-txt { min-width: 0; }
.brand-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-size: 12px; color: var(--muted);
  margin-top: 2px;
}
.btn-cart-open {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: none; border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, background .15s ease;
  position: relative;
}
.btn-cart-open:hover { background: var(--red-2); }
.btn-cart-open:active { transform: scale(.97); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1200px 400px at 20% 0%, var(--red-glow), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 20px 40px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
}

/* ── FILTERS ──────────────────────────────────────────────── */
.filters-wrap {
  position: sticky; top: 68px; z-index: 90;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.filters {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.search-box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center;
  padding: 10px 14px;
  gap: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }

.cat-chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.cat-chips::-webkit-scrollbar { height: 4px; }
.cat-chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.cat-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  transition: all .12s ease;
}
.cat-chip:hover { background: var(--cream-2); }
.cat-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── CATALOG ──────────────────────────────────────────────── */
.catalog { padding: 24px 0 120px; }
.catalog-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
}
.cat-section { margin-bottom: 40px; }
.cat-section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.cat-section-title::before {
  content: '';
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--red);
  display: inline-block;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  --card-pad: 16px;
  padding: var(--card-pad);
  display: flex; flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
  position: relative;
  min-height: 160px;
}
.prod-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.prod-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.prod-emoji {
  font-size: 34px; line-height: 1;
  flex-shrink: 0;
}
.prod-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-2);
}
.prod-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
  margin: 4px 0 0;
}
.prod-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-top: auto;
  letter-spacing: -0.01em;
}
.prod-price small {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.prod-promo-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
/* ── Foto del producto ───────────────────────────────────── */
/* La foto va de borde a borde arriba de la tarjeta, con proporcion fija
   (4:3) para que la grilla quede pareja aunque las fotos sean distintas. */
.prod-img {
  position: relative;
  /* sangria negativa = padding de la tarjeta: la foto llega al borde */
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 4px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream-2);
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .25s ease, transform .3s ease;
}
.prod-img img.ok { opacity: 1; }
.prod-card:hover .prod-img img.ok { transform: scale(1.03); }
.prod-img.err img { display: none; }
/* Sin foto (o foto rota) en un catalogo que tiene fotos: el emoji grande
   ocupa el mismo lugar, asi la grilla queda pareja. */
.prod-img-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.prod-img img + .prod-img-emoji { display: none; }
.prod-img.err .prod-img-emoji { display: flex; }
.prod-tag-img {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.prod-card.has-img .prod-promo-badge { z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.qty-popover-img {
  width: 120px; height: 90px;
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
}
.qty-popover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-item-promo {
  margin-top: 3px;
  font-size: 11px; font-weight: 600;
  color: var(--red-2);
}
.qty-popover-promo {
  margin: -4px 0 10px;
  font-size: 12px; font-weight: 600;
  color: var(--red-2);
  text-align: center;
}

/* ── Aviso de precio variable en productos por kg ─────────── */
.prod-kg-nota {
  margin-top: 6px;
  font-size: 11px; line-height: 1.35;
  color: var(--muted);
}
.qty-popover-nota {
  margin: -4px 0 14px;
  font-size: 12px; line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.cart-kg-nota {
  margin: 0 0 12px;
  font-size: 12px; line-height: 1.4;
  color: var(--muted);
}

/* ── Banner de promos (arriba de todo el catalogo) ───────── */
.promo-banner {
  background: linear-gradient(180deg, var(--red-glow), transparent 70%);
  border: 1px solid rgba(200,16,46,.18);
  border-radius: var(--radius-lg);
  padding: 24px 20px 28px;
  margin-bottom: 40px;
}
.promo-banner-head { margin-bottom: 18px; }
.promo-banner-kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.promo-banner-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 10px 0 4px;
}
.promo-banner-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Tarjeta con promo: borde rojo y precio de lista tachado */
.prod-card.has-promo { border-color: rgba(200,16,46,.35); }
.prod-price-promo {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.prod-price-old {
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}
.prod-price-new {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
  letter-spacing: -0.01em;
}
.prod-price-new small {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.prod-promo-txt {
  margin-top: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--red-2);
  background: var(--red-glow);
  padding: 4px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.prod-card.out-of-stock {
  opacity: .5;
  cursor: not-allowed;
}
.prod-card.out-of-stock::after {
  content: 'Sin stock';
  position: absolute; bottom: 10px; right: 10px;
  font-size: 11px; font-weight: 600;
  color: var(--red);
}

.catalog-empty {
  padding: 60px 20px; text-align: center;
  color: var(--muted);
}
.catalog-empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 24px 0;
}
.site-footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(253,250,243,.7);
}

/* ── DRAWER ───────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,26,23,.5);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  z-index: 201;
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--cream-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}
.cart-item-emoji { font-size: 28px; text-align: center; }
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-weight: 600; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item-detail {
  font-size: 12px; color: var(--muted);
  margin-top: 2px;
}
.cart-item-qty {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  width: 28px; height: 28px;
  border: none; border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 16px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--cream-2); }
.qty-val {
  min-width: 34px; text-align: center;
  font-weight: 700; font-size: 14px;
}
.cart-item-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px;
}
.cart-item-sub {
  font-family: var(--serif);
  font-weight: 700; font-size: 16px;
  color: var(--ink);
}
.cart-item-remove {
  background: none; border: none;
  color: var(--muted); font-size: 12px;
  padding: 2px 6px;
}
.cart-item-remove:hover { color: var(--red); }

.cart-empty {
  padding: 40px 20px; text-align: center;
  color: var(--muted);
}
.cart-empty-icon { font-size: 48px; margin-bottom: 8px; }
.cart-empty .muted { font-size: 13px; margin-top: 4px; }

.cart-total-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px; color: var(--muted);
}
.cart-total-row strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  border: none; border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: background .15s ease, transform .1s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--red-2); }
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--line); color: var(--muted);
  cursor: not-allowed;
}
.btn-ghost {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600; font-size: 14px;
}
.btn-ghost:hover { background: var(--cream-2); }

/* ── QTY POPOVER (para agregar productos por kg) ──────────── */
.qty-popover-scrim {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28,26,23,.5);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.qty-popover-scrim.open { opacity: 1; visibility: visible; }
.qty-popover {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 380px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.qty-popover-emoji { font-size: 48px; text-align: center; }
.qty-popover-name {
  font-family: var(--serif);
  font-weight: 700; font-size: 22px;
  text-align: center;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.qty-popover-price {
  text-align: center; color: var(--muted);
  font-size: 14px; margin-bottom: 20px;
}
.qty-input-group {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 18px;
}
.qty-input-group input {
  width: 120px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 22px; font-weight: 700;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
}
.qty-input-group input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.qty-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.qty-preset-row button {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-2);
  border-radius: 8px;
  font-weight: 600; font-size: 13px;
}
.qty-preset-row button:hover {
  border-color: var(--red);
  color: var(--red);
}
.qty-popover-sub {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700; font-size: 20px;
  color: var(--ink);
  margin-bottom: 18px;
}
.qty-popover-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ── CHECKOUT MODAL ───────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(28,26,23,.55);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700; font-size: 24px;
  letter-spacing: -0.01em;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field label .muted { font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.field textarea { resize: vertical; min-height: 70px; }

.radio-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.radio {
  flex: 1; min-width: 130px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  transition: all .12s ease;
}
.radio:hover { border-color: var(--red); color: var(--ink); }
.radio input[type=radio] { accent-color: var(--red); }
.radio:has(input[type=radio]:checked) {
  border-color: var(--red);
  background: var(--red-glow);
  color: var(--ink);
  font-weight: 600;
}

.totals-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cream-2);
  margin: 16px 0;
}
.totals-box .row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--ink-2);
  padding: 3px 0;
}
.totals-box .row.big {
  font-size: 15px; color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 6px; padding-top: 8px;
}
.totals-box .row.big strong {
  font-family: var(--serif);
  font-weight: 900; font-size: 22px;
  letter-spacing: -0.01em;
}
.muted-note {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  font-style: italic;
}
.modal-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
}

/* ── SUCCESS ──────────────────────────────────────────────── */
.ok-card { text-align: center; }
.ok-mark {
  width: 68px; height: 68px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 38px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(47,125,60,.12);
}
.ok-card h2 {
  font-family: var(--serif);
  font-weight: 900; font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ok-card p { color: var(--ink-2); margin: 0 0 14px; }
.ok-num {
  font-family: var(--serif);
  font-weight: 700; font-size: 18px;
  padding: 10px 14px;
  background: var(--cream-2);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--ink);
}

.muted { color: var(--muted); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header-inner { padding: 10px 16px; gap: 10px; }
  .brand-title { font-size: 16px; }
  .brand-sub { font-size: 11px; }
  .btn-cart-txt { display: none; }
  .btn-cart-open { padding: 10px; width: 44px; height: 44px; justify-content: center; }

  .hero-inner { padding: 36px 16px 28px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }

  .filters-wrap { top: 60px; }
  .filters { padding: 12px 16px; }
  .catalog-inner { padding: 0 16px; }
  .cat-section-title { font-size: 20px; }
  .promo-banner { padding: 18px 14px 22px; margin-bottom: 28px; }
  .promo-banner-title { font-size: 22px; }
  .prod-price-new { font-size: 19px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-card { --card-pad: 12px; min-height: 140px; }
  .prod-img-emoji { font-size: 44px; }
  .prod-emoji { font-size: 28px; }
  .prod-name { font-size: 14px; }
  .prod-price { font-size: 19px; }

  .drawer { width: 100%; }
  .modal-card { padding: 20px; }
  .modal-head h2 { font-size: 20px; }
  .radio { min-width: 100px; font-size: 13px; padding: 8px 10px; }
  .modal-foot { grid-template-columns: 1fr; }
}

/* ══ CATÁLOGO APAGADO ══
   El negocio corta los pedidos desde el sistema. Tapa toda la página: más
   claro que dejar un catálogo vacío que parece roto. */
body.web-cerrada { overflow: hidden; }
body.web-cerrada > *:not(#cerrado):not(#preloader) { display: none !important; }

.cerrado {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--cream);
}

.cerrado-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 28px 34px;
}

.cerrado-logo { width: 88px; height: auto; margin-bottom: 18px; }

.cerrado-title {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

.cerrado-msg {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 20px;
  white-space: pre-line;
}

.cerrado-pie {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .cerrado-card { padding: 32px 20px 26px; }
  .cerrado-title { font-size: 23px; }
  .cerrado-msg { font-size: 15px; }
}
