/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO LA ESTANCIA BLACK — Identidad oficial v2
   Carbón dominante · Hueso · Borgoña acento
   Bodoni Moda + Inter Tight + JetBrains Mono
   Editorial · Precisión · Sin adornos
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ─ Paleta canónica ─ */
  --carbon:        #0A0A0A;
  --carbon-2:      #141414;
  --steel:         #1F1F1F;
  --line:          #2A2A2A;
  --line-soft:     rgba(237, 230, 214, 0.08);
  --bone:          #EDE6D6;
  --bone-dim:      #B8B0A0;
  --bone-faint:    rgba(237, 230, 214, 0.45);
  --burgundy:      #5B0E16;
  --burgundy-glow: #7A1620;
  --wa:            #1ea953;        /* WhatsApp green, ligeramente desaturado */
  --wa-hover:      #1a9046;

  /* ─ Tipografía ─ */
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans:  "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* ─ Sistema ─ */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-card: 0px;     /* sin bordes redondeados — editorial */
  --r-chip: 999px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone);
  background: var(--carbon);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
::selection { background: var(--burgundy); color: var(--bone); }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* ════════ HEADER ════════ */
.ct-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.ct-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  gap: 16px;
}

/* Brand lockup "LA ESTANCIA BLACK" — link a la web institucional */
.ct-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease);
}
.ct-brand:hover { opacity: 0.82; }
.ct-brand:hover .ct-brand-sub { color: var(--bone); }
.ct-brand-name {
  /* "LA ESTANCIA" — italic Bodoni small caps */
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.ct-brand-sub {
  /* "BLACK" — Bodoni 900 */
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--bone);
}

/* Cart button: estilo mono editorial — "PEDIDO · N" */
.ct-cart-btn {
  position: relative;
  height: 32px;
  padding: 0 14px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--bone);
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ct-cart-btn:hover { border-color: var(--bone-dim); }
.ct-cart-btn:active { transform: scale(0.97); }
.ct-cart-btn svg { width: 14px; height: 14px; stroke-width: 1.4; }
.ct-cart-count {
  display: inline-block;
  padding: 0 6px;
  height: 16px;
  line-height: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--carbon);
  background: var(--bone);
  font-weight: 500;
}

/* Search bar */
.ct-search-wrap {
  position: relative;
  margin: 0 20px 14px;
}
.ct-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--bone-faint);
  pointer-events: none;
  stroke-width: 1.2;
}
.ct-search-input {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.ct-search-input::placeholder { color: var(--bone-faint); font-style: italic; font-family: var(--serif); font-size: 14px; }
.ct-search-input:focus { border-bottom-color: var(--burgundy-glow); }
.ct-search-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: var(--bone-dim);
  display: grid;
  place-items: center;
}

/* Category chips — outlined mono */
.ct-chips-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ct-chips-wrap::-webkit-scrollbar { display: none; }
.ct-chips {
  display: inline-flex;
  gap: 6px;
  padding: 0 20px;
  white-space: nowrap;
}
.ct-chip {
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.ct-chip:hover { color: var(--bone); border-color: var(--bone-dim); }
.ct-chip.is-active {
  background: var(--bone);
  color: var(--carbon);
  border-color: var(--bone);
}

/* ════════ MAIN ════════ */
.ct-main {
  padding: 0 0 120px;
  min-height: 60vh;
}
.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.ct-loading, .ct-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 28px;
  background: var(--carbon);
}
.ct-loading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-empty-icon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  color: var(--burgundy-glow);
  margin-bottom: 8px;
}
.ct-empty-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--bone);
  margin: 0 0 8px;
}
.ct-empty-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}

/* ════════ PRODUCT CARD ════════ */
.ct-card {
  position: relative;
  background: var(--carbon);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.ct-card:hover { background: var(--carbon-2); }
.ct-card:active { background: var(--steel); }

.ct-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--carbon-2);
  overflow: hidden;
}
.ct-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ct-card-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--carbon-2) 0%, var(--carbon) 100%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 72px;
  letter-spacing: -0.04em;
  color: var(--bone-dim);
  opacity: 0.85;
}
/* Inner hairline frame on photo (estilo etiqueta packaging) */
.ct-card-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(237, 230, 214, 0.06);
  pointer-events: none;
}

/* Flag stock — mono uppercase tipo lote */
.ct-card-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  background: var(--carbon);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-card-flag.is-out { color: var(--bone-dim); border-color: var(--bone-faint); }
.ct-card-flag.is-low { color: var(--burgundy-glow); border-color: var(--burgundy); }

/* PLU/Nº mono en esquina superior derecha (trazabilidad como contenido) */
.ct-card-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--bone-faint);
  text-transform: uppercase;
}

.ct-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ct-card-cat {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-glow);
  line-height: 1;
}
.ct-card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.ct-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-card-price-unit {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Stock rows — spec sheet style */
.ct-card-stocks {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ct-stock-row {
  display: flex;
  align-items: center;
  padding: 5px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ct-stock-row + .ct-stock-row { border-top: 1px solid var(--line-soft); }
.ct-stock-local {
  color: var(--bone-dim);
  flex: 1;
}
.ct-stock-val {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-stock-val.is-out { color: var(--bone-faint); font-style: italic; text-transform: none; letter-spacing: 0.05em; font-family: var(--serif); font-size: 11px; }
.ct-stock-val.is-low { color: var(--burgundy-glow); }

/* Add button — outlined editorial */
.ct-card-add {
  margin-top: 14px;
  height: 36px;
  border: 1px solid var(--bone);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.ct-card-add:hover { background: var(--bone); color: var(--carbon); }
.ct-card-add:active { transform: scale(0.97); }
.ct-card-add[disabled] {
  border-color: var(--line);
  color: var(--bone-faint);
  pointer-events: none;
}
.ct-card-add::before { content: "+"; font-size: 12px; font-weight: 400; }

/* ════════ BOTTOM BAR ════════ */
.ct-bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 14px 20px calc(14px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(10,10,10,0.98) 70%, rgba(10,10,10,0.5) 100%, transparent);
  pointer-events: none;
}
.ct-bottombar-btn {
  pointer-events: auto;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--bone);
  color: var(--carbon);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s var(--ease);
}
.ct-bottombar-btn:hover { background: #FFFFFF; }
.ct-bottombar-btn:active { transform: translateY(1px); }
.ct-bottombar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
}
.ct-bottombar-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.65);
}
.ct-bottombar-total {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--carbon);
}
.ct-bottombar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--carbon);
}

/* ════════ MODAL ════════ */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ct-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ct-modal-sheet,
.ct-cart-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--carbon);
  border-top: 1px solid var(--line);
  max-height: 94vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ct-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease);
}
.ct-modal-close:hover { border-color: var(--bone-dim); }

/* Product modal — spec sheet style */
.ct-prod-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--carbon-2);
  position: relative;
  overflow: hidden;
}
.ct-prod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-prod-photo .ct-card-avatar {
  font-size: 120px;
}
.ct-prod-photo::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(237, 230, 214, 0.1);
  pointer-events: none;
}
.ct-prod-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--burgundy-glow);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
}

.ct-prod-info {
  padding: 28px 24px 0;
  overflow-y: auto;
}
.ct-prod-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-glow);
  margin-bottom: 12px;
}
.ct-prod-name {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--bone);
}
.ct-prod-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-prod-price-unit {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-prod-rule {
  width: 32px;
  height: 1px;
  background: var(--burgundy);
  margin: 24px 0 20px;
}
.ct-prod-notes {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 440px;
}
/* Spec sheet 2-col — Shopping / Torre */
.ct-prod-stocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.ct-prod-stock {
  padding: 16px;
  background: var(--carbon);
}
.ct-prod-stock-l {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 8px;
}
.ct-prod-stock-v {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-prod-stock-v-unit {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-left: 4px;
}
.ct-prod-stock-v.is-out {
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--bone-faint);
  letter-spacing: 0;
}

.ct-prod-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  margin-bottom: 0;
}
.ct-prod-qty-l {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.ct-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--bone);
  display: grid;
  place-items: center;
  transition: border-color 0.18s var(--ease);
}
.ct-qty-btn:hover { border-color: var(--bone-dim); }
.ct-qty-btn:active { transform: scale(0.9); }
.ct-qty-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-qty-unit {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-left: 2px;
}

.ct-prod-foot {
  padding: 20px 24px calc(20px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.ct-prod-cta {
  width: 100%;
  height: 52px;
  background: var(--bone);
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.ct-prod-cta:hover { background: #FFFFFF; }
.ct-prod-cta:active { transform: translateY(1px); }
.ct-prod-cta[disabled] {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-faint);
  pointer-events: none;
}

/* ════════ CART ════════ */
.ct-cart-sheet {
  max-height: 90vh;
}
.ct-cart-grabber {
  width: 32px;
  height: 2px;
  background: var(--bone-faint);
  margin: 10px auto 0;
}
.ct-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.ct-cart-head-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ct-cart-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-glow);
}
.ct-cart-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--bone);
}
.ct-cart-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-cart-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--bone);
  display: grid;
  place-items: center;
  transition: border-color 0.2s var(--ease);
}
.ct-cart-close:hover { border-color: var(--bone-dim); }

.ct-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}
.ct-cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.ct-cart-empty-mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.04em;
  color: var(--bone-faint);
  line-height: 1;
  margin-bottom: 12px;
}
.ct-cart-empty p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  line-height: 1.8;
  margin: 0;
}

.ct-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.ct-cart-item:last-child { border-bottom: none; }

.ct-cart-item-photo {
  width: 56px;
  height: 70px;
  background: var(--carbon-2);
  overflow: hidden;
  position: relative;
}
.ct-cart-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-cart-item-photo .ct-card-avatar {
  font-size: 28px;
}

.ct-cart-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.ct-cart-item-name {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  line-height: 1.15;
  color: var(--bone);
}
.ct-cart-item-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.ct-cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.ct-cart-item-price {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 2px 4px;
}
.ct-cart-qty .ct-qty-btn {
  width: 22px;
  height: 22px;
  font-size: 13px;
  border: none;
}
.ct-cart-qty .ct-qty-val {
  font-size: 13px;
  min-width: 18px;
}

.ct-cart-foot {
  padding: 18px 24px calc(20px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}
.ct-cart-totalrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.ct-cart-totallabel {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-cart-totalval {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-wa-btn {
  width: 100%;
  height: 54px;
  background: var(--wa);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.ct-wa-btn:hover { background: var(--wa-hover); }
.ct-wa-btn:active { transform: translateY(1px); }
.ct-wa-btn[disabled] {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-faint);
  pointer-events: none;
}
.ct-wa-btn svg { width: 16px; height: 16px; }
.ct-cart-clear {
  width: 100%;
  margin-top: 12px;
  height: 36px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease);
}
.ct-cart-clear:hover { color: var(--burgundy-glow); }

/* ════════ TOAST ════════ */
.ct-toast {
  position: fixed;
  top: calc(var(--safe-top) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--bone);
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ════════ RESPONSIVE ════════ */
@media (min-width: 560px) {
  .ct-header-inner { padding: 20px 28px 16px; }
  .ct-search-wrap, .ct-chips { padding-left: 0; padding-right: 0; }
  .ct-search-wrap { margin: 0 28px 16px; }
  .ct-chips { padding: 0 28px; }
  .ct-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 880px) {
  .ct-grid { grid-template-columns: repeat(4, 1fr); }
  .ct-header-inner,
  .ct-search-wrap,
  .ct-chips-wrap,
  .ct-grid { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .ct-search-wrap { max-width: 540px; margin: 0 auto 18px; }
  .ct-chips-wrap { display: flex; justify-content: center; }
  .ct-chips { padding: 0; }
  .ct-grid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   v7.98.2 · Skeleton loading state — perceived performance
   ═══════════════════════════════════════════════════════════════════ */
.ct-card-skeleton {
  pointer-events: none;
}
.ct-card-skeleton .ct-card-photo {
  border: none;
}
.ct-skel {
  position: relative;
  overflow: hidden;
  background: var(--carbon-2);
}
.ct-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(237, 230, 214, 0.04) 30%,
    rgba(237, 230, 214, 0.08) 50%,
    rgba(237, 230, 214, 0.04) 70%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: ctSkelShimmer 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes ctSkelShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%);  }
}
.ct-skel-line {
  height: 10px;
  margin-bottom: 8px;
  border-radius: 1px;
}
.ct-skel-line--xs { width: 35%; height: 8px; margin-bottom: 12px; }
.ct-skel-line--sm { width: 50%; }
.ct-skel-line--md { width: 70%; }
.ct-skel-line--lg { width: 85%; height: 14px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════════
   v7.98.3 · LIGHT MODE — Editorial cream
   Activación: <html data-theme="light"> (toggle manual en header)
   Filosofía: invertir peso visual, mantener identidad editorial.
   Variables semánticas swap valor — borgoña sigue siendo borgoña.
   ═══════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --carbon:        #FAF7EE;              /* bg dominante: cream cálido */
  --carbon-2:      #F0EBD8;              /* surface secundaria */
  --steel:         #E8E1CB;              /* surface terciaria (hover, active) */
  --line:          rgba(38, 38, 38, 0.10);
  --line-soft:     rgba(38, 38, 38, 0.06);
  --bone:          #262626;              /* texto principal: carbón cálido */
  --bone-dim:      #6B6B6B;
  --bone-faint:    rgba(38, 38, 38, 0.45);
  /* Borgoña + Gold + WhatsApp: sin cambio (acentos son acentos) */
}

/* Selection en light */
[data-theme="light"] ::selection {
  background: var(--burgundy);
  color: #FAF7EE;
}

/* Header en light: misma blur, distinto bg */
[data-theme="light"] .ct-header {
  background: rgba(250, 247, 238, 0.92);
  border-bottom-color: rgba(38, 38, 38, 0.12);
}

/* Brand main: mantiene peso en light (carbón sobre cream funciona) */
[data-theme="light"] .ct-brand-sub { color: #262626; }

/* Cart button outlined: invierte */
[data-theme="light"] .ct-cart-btn {
  border-color: rgba(38, 38, 38, 0.16);
  color: #262626;
}
[data-theme="light"] .ct-cart-btn:hover { border-color: #262626; }
[data-theme="light"] .ct-cart-count {
  background: #262626;
  color: #FAF7EE;
}

/* Search input */
[data-theme="light"] .ct-search-input {
  color: #262626;
  border-bottom-color: rgba(38, 38, 38, 0.18);
}
[data-theme="light"] .ct-search-input:focus { border-bottom-color: var(--burgundy); }
[data-theme="light"] .ct-search-input::placeholder { color: rgba(38, 38, 38, 0.40); }

/* Chips outlined */
[data-theme="light"] .ct-chip {
  border-color: rgba(38, 38, 38, 0.14);
  color: #6B6B6B;
}
[data-theme="light"] .ct-chip:hover {
  color: #262626;
  border-color: rgba(38, 38, 38, 0.30);
}
[data-theme="light"] .ct-chip.is-active {
  background: #262626;
  color: #FAF7EE;
  border-color: #262626;
}

/* Card avatar — gradient sutil para que no quede mancha oscura sobre cream */
[data-theme="light"] .ct-card-avatar {
  background: linear-gradient(160deg, var(--carbon-2) 0%, var(--steel) 100%);
  color: rgba(38, 38, 38, 0.42);
}
[data-theme="light"] .ct-card-photo::after {
  border-color: rgba(38, 38, 38, 0.08);
}

/* Flag de stock — borde sutil */
[data-theme="light"] .ct-card-flag {
  background: #FAF7EE;
  border-color: rgba(38, 38, 38, 0.12);
}

/* Card hover en light */
[data-theme="light"] .ct-card:hover { background: var(--carbon-2); }
[data-theme="light"] .ct-card:active { background: var(--steel); }

/* Stock rows */
[data-theme="light"] .ct-stock-val { color: #262626; }
[data-theme="light"] .ct-stock-val.is-out { color: rgba(38, 38, 38, 0.45); }

/* Botón "+ AGREGAR" — outlined ink en light */
[data-theme="light"] .ct-card-add {
  border-color: #262626;
  color: #262626;
}
[data-theme="light"] .ct-card-add:hover {
  background: #262626;
  color: #FAF7EE;
}
[data-theme="light"] .ct-card-add[disabled] {
  border-color: rgba(38, 38, 38, 0.12);
  color: rgba(38, 38, 38, 0.40);
}

/* Bottom bar carrito — invertir: ink bg con cream text para CTA dominante */
[data-theme="light"] .ct-bottombar {
  background: linear-gradient(to top, rgba(250,247,238,0.96) 70%, rgba(250,247,238,0.5) 100%, transparent);
}
[data-theme="light"] .ct-bottombar-btn { background: #262626; color: #FAF7EE; }
[data-theme="light"] .ct-bottombar-btn:hover { background: #000; }
[data-theme="light"] .ct-bottombar-count { color: rgba(250, 247, 238, 0.65); }
[data-theme="light"] .ct-bottombar-total,
[data-theme="light"] .ct-bottombar-cta { color: #FAF7EE; }

/* Modal sheet en light */
[data-theme="light"] .ct-modal-backdrop {
  background: rgba(38, 38, 38, 0.32);
}
[data-theme="light"] .ct-modal-sheet,
[data-theme="light"] .ct-cart-sheet {
  background: #FAF7EE;
  border-top-color: rgba(38, 38, 38, 0.12);
}
[data-theme="light"] .ct-modal-close {
  background: rgba(250, 247, 238, 0.92);
  border-color: rgba(38, 38, 38, 0.14);
  color: #262626;
}
[data-theme="light"] .ct-modal-close:hover { border-color: #262626; }

/* Modal de producto */
[data-theme="light"] .ct-prod-photo { background: var(--carbon-2); }
[data-theme="light"] .ct-prod-photo::after { border-color: rgba(38, 38, 38, 0.10); }
[data-theme="light"] .ct-prod-name { color: #262626; }
[data-theme="light"] .ct-prod-price { color: #262626; }
[data-theme="light"] .ct-prod-rule { background: var(--burgundy); }
[data-theme="light"] .ct-prod-notes { color: #6B6B6B; }
[data-theme="light"] .ct-prod-stocks {
  border-color: rgba(38, 38, 38, 0.12);
  background: rgba(38, 38, 38, 0.10);
}
[data-theme="light"] .ct-prod-stock { background: #FAF7EE; }
[data-theme="light"] .ct-prod-stock-v { color: #262626; }
[data-theme="light"] .ct-prod-qty { border-color: rgba(38, 38, 38, 0.16); }
[data-theme="light"] .ct-qty-btn {
  background: transparent;
  border-color: rgba(38, 38, 38, 0.16);
  color: #262626;
}
[data-theme="light"] .ct-qty-val { color: #262626; }

/* CTA principal del modal — ink fill */
[data-theme="light"] .ct-prod-cta { background: #262626; color: #FAF7EE; }
[data-theme="light"] .ct-prod-cta:hover { background: #000; }
[data-theme="light"] .ct-prod-cta[disabled] {
  background: transparent;
  border: 1px solid rgba(38, 38, 38, 0.16);
  color: rgba(38, 38, 38, 0.42);
}

/* Drawer carrito */
[data-theme="light"] .ct-cart-grabber { background: rgba(38, 38, 38, 0.20); }
[data-theme="light"] .ct-cart-title { color: #262626; }
[data-theme="light"] .ct-cart-close {
  background: transparent;
  border-color: rgba(38, 38, 38, 0.14);
  color: #262626;
}
[data-theme="light"] .ct-cart-item-name { color: #262626; }
[data-theme="light"] .ct-cart-item-price { color: #262626; }
[data-theme="light"] .ct-cart-qty { border-color: rgba(38, 38, 38, 0.16); }
[data-theme="light"] .ct-cart-totalval { color: #262626; }

/* WhatsApp CTA en light — mantiene verde, mejor contraste */
[data-theme="light"] .ct-wa-btn { color: #FFFFFF; }

/* Skeleton shimmer ajustado para light */
[data-theme="light"] .ct-skel { background: var(--carbon-2); }
[data-theme="light"] .ct-skel::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(38, 38, 38, 0.04) 30%,
    rgba(38, 38, 38, 0.08) 50%,
    rgba(38, 38, 38, 0.04) 70%,
    transparent 100%
  );
}

/* ═══════════════════════════════════════════════════════════════════
   v7.98.4 · Favoritos · Share · Calculadora de asado
   ═══════════════════════════════════════════════════════════════════ */

/* Boton favorito en card photo */
.ct-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--bone);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.18s var(--ease);
  border: 1px solid rgba(237, 230, 214, 0.10);
}
.ct-card-fav:hover { color: var(--burgundy-glow); transform: scale(1.08); }
.ct-card-fav.is-active {
  color: var(--burgundy-glow);
  background: rgba(122, 22, 32, 0.18);
  border-color: rgba(122, 22, 32, 0.42);
}
[data-theme="light"] .ct-card-fav {
  background: rgba(250, 247, 238, 0.86);
  color: #6B6B6B;
  border-color: rgba(38, 38, 38, 0.12);
}
[data-theme="light"] .ct-card-fav.is-active {
  color: var(--burgundy-glow);
  background: rgba(122, 22, 32, 0.10);
  border-color: rgba(122, 22, 32, 0.34);
}

/* Chip Favoritos en filtros */
.ct-chip--fav { display: inline-flex; align-items: center; gap: 6px; }
.ct-chip--fav svg { transition: transform 0.18s var(--ease); }
.ct-chip--fav.is-active svg { transform: scale(1.12); fill: currentColor; }
.ct-chip--fav span {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  height: 14px;
  line-height: 14px;
  font-size: 8.5px;
  background: var(--burgundy);
  color: var(--bone);
  font-weight: 500;
}
[data-theme="light"] .ct-chip--fav span { background: var(--burgundy); color: #FAF7EE; }

/* Footer del cart: share + clear */
.ct-cart-foot-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ct-cart-foot-row { display: flex; gap: 8px; }
.ct-cart-foot-row .ct-cart-share { flex: 1; }
.ct-cart-share {
  width: 100%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ct-cart-share:hover { color: var(--bone); border-color: var(--bone-dim); }
.ct-cart-share svg { width: 13px; height: 13px; }
[data-theme="light"] .ct-cart-share { border-color: rgba(38, 38, 38, 0.16); color: #6B6B6B; }
[data-theme="light"] .ct-cart-share:hover { color: #262626; border-color: #262626; }

/* Calculadora de asado */
.ct-asado-toggle-wrap { padding: 0 20px 12px; }
.ct-asado-toggle {
  width: 100%;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ct-asado-toggle:hover { color: var(--bone); border-color: var(--bone-dim); }
.ct-asado-toggle svg { color: var(--burgundy-glow); }
.ct-asado-toggle-arrow { font-size: 12px; transition: transform 0.22s var(--ease); }
.ct-asado-toggle[aria-expanded="true"] .ct-asado-toggle-arrow { transform: rotate(180deg); }
[data-theme="light"] .ct-asado-toggle { border-color: rgba(38, 38, 38, 0.16); color: #6B6B6B; }
[data-theme="light"] .ct-asado-toggle:hover { color: #262626; border-color: #262626; }

.ct-asado-calc {
  margin: 0 20px 16px;
  border: 1px solid var(--line);
  background: var(--carbon-2);
  animation: ctAsadoOpen 0.28s var(--ease);
}
@keyframes ctAsadoOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ct-asado-calc-inner { padding: 20px 18px; }
.ct-asado-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--burgundy-glow);
  margin-bottom: 14px;
}
.ct-asado-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.ct-asado-label { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--bone); }
.ct-asado-qty { display: inline-flex; align-items: center; gap: 10px; }
.ct-asado-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ct-asado-qty-btn:hover { border-color: var(--bone-dim); }
.ct-asado-qty-val {
  min-width: 28px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.ct-asado-tip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 14px;
  line-height: 1.6;
}
.ct-asado-tip strong { color: var(--bone); }
.ct-asado-list { margin-bottom: 14px; }
.ct-asado-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  align-items: center;
}
.ct-asado-item:last-child { border-bottom: none; }
.ct-asado-item.is-missing { opacity: 0.5; }
.ct-asado-item-info { display: flex; align-items: center; gap: 8px; }
.ct-asado-item-warn {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  padding: 2px 6px;
  border: 1px solid rgba(224, 82, 82, 0.42);
  color: rgba(224, 82, 82, 0.86);
}
.ct-asado-item-qty { color: var(--bone-dim); }
.ct-asado-item-price {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.ct-asado-totalrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 16px;
}
.ct-asado-totalrow strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.ct-asado-actions { display: flex; flex-direction: column; gap: 8px; }
.ct-asado-cta {
  height: 44px;
  background: var(--bone);
  color: var(--carbon);
  border: none;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.ct-asado-cta:hover { background: #FFFFFF; }
.ct-asado-close {
  height: 34px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ct-asado-close:hover { color: var(--bone); border-color: var(--bone-dim); }
[data-theme="light"] .ct-asado-calc { background: #F0EBD8; border-color: rgba(38, 38, 38, 0.10); }
[data-theme="light"] .ct-asado-label { color: #262626; }
[data-theme="light"] .ct-asado-qty-btn { color: #262626; border-color: rgba(38, 38, 38, 0.16); }
[data-theme="light"] .ct-asado-qty-val { color: #262626; }
[data-theme="light"] .ct-asado-row { border-bottom-color: rgba(38, 38, 38, 0.10); }
[data-theme="light"] .ct-asado-tip strong { color: #262626; }
[data-theme="light"] .ct-asado-item { color: #262626; border-bottom-color: rgba(38, 38, 38, 0.06); }
[data-theme="light"] .ct-asado-item-qty { color: #6B6B6B; }
[data-theme="light"] .ct-asado-item-price { color: #262626; }
[data-theme="light"] .ct-asado-totalrow strong { color: #262626; }
[data-theme="light"] .ct-asado-totalrow { border-top-color: rgba(38, 38, 38, 0.10); }
[data-theme="light"] .ct-asado-cta { background: #262626; color: #FAF7EE; }
[data-theme="light"] .ct-asado-cta:hover { background: #000; }
[data-theme="light"] .ct-asado-close { border-color: rgba(38, 38, 38, 0.16); color: #6B6B6B; }
[data-theme="light"] .ct-asado-close:hover { color: #262626; border-color: #262626; }

/* Receta asociada en modal de producto */
.ct-prod-receta {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: rgba(122, 22, 32, 0.08);
  border-left: 2px solid var(--burgundy-glow);
}
.ct-prod-receta-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-glow);
  margin-bottom: 10px;
}
.ct-prod-receta-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--bone);
  line-height: 1.2;
  margin-bottom: 8px;
}
.ct-prod-receta-tip {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bone-dim);
}
[data-theme="light"] .ct-prod-receta {
  background: rgba(122, 22, 32, 0.06);
}
[data-theme="light"] .ct-prod-receta-title { color: #262626; }
[data-theme="light"] .ct-prod-receta-tip { color: #6B6B6B; }

/* v7.98.5 · Historial de pedidos */
.ct-history-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--carbon);
  border-top: 1px solid var(--line);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ct-history-empty {
  text-align: center;
  padding: 60px 20px;
}
.ct-history-empty-mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.04em;
  color: var(--bone-faint);
  line-height: 1;
  margin-bottom: 12px;
}
.ct-history-empty p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  line-height: 1.8;
  margin: 0;
}
.ct-history-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ct-history-item:last-child { border-bottom: none; }
.ct-history-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.ct-history-item-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ct-history-item-dot {
  width: 6px;
  height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
}
.ct-history-item-total {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
}
.ct-history-item-summary {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin-bottom: 12px;
}
.ct-history-item-repeat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ct-history-item-repeat:hover {
  background: var(--bone);
  color: var(--carbon);
  border-color: var(--bone);
}
.ct-history-btn { color: var(--bone-dim); }

[data-theme="light"] .ct-history-sheet { background: #FAF7EE; border-top-color: rgba(38, 38, 38, 0.12); }
[data-theme="light"] .ct-history-item { border-bottom-color: rgba(38, 38, 38, 0.08); }
[data-theme="light"] .ct-history-item-total { color: #262626; }
[data-theme="light"] .ct-history-item-summary { color: #6B6B6B; }
[data-theme="light"] .ct-history-item-repeat {
  border-color: rgba(38, 38, 38, 0.18);
  color: #262626;
}
[data-theme="light"] .ct-history-item-repeat:hover {
  background: #262626;
  color: #FAF7EE;
  border-color: #262626;
}

/* (v7.98.5 input numérico decimal reverted v7.98.6 — modelo es vacío sellado en unidades enteras) */

/* v7.98.5 · Offline banner */
.ct-offline-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: var(--burgundy);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ct-offline-dot {
  width: 6px;
  height: 6px;
  background: var(--bone);
  border-radius: 50%;
  animation: ctOfflinePulse 1.6s ease-in-out infinite;
}
@keyframes ctOfflinePulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* v7.98.5 · Accessibility — focus visible para todo interactive */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--burgundy-glow);
  outline-offset: 2px;
}
[data-theme="light"] button:focus-visible,
[data-theme="light"] a:focus-visible,
[data-theme="light"] input:focus-visible {
  outline-color: var(--burgundy);
}

/* Skip link para keyboard nav */
.ct-skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--bone);
  color: var(--carbon);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100;
  transition: top 0.18s var(--ease);
}
.ct-skip-link:focus {
  top: 8px;
}

/* Toggle theme button (común a dark/light) */
.ct-theme-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--bone);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ct-theme-btn:hover { border-color: var(--bone-dim); }
.ct-theme-btn svg { width: 14px; height: 14px; }
.ct-theme-btn .ct-theme-icon--moon { display: inline-flex; }
.ct-theme-btn .ct-theme-icon--sun  { display: none; }
[data-theme="light"] .ct-theme-btn .ct-theme-icon--moon { display: none; }
[data-theme="light"] .ct-theme-btn .ct-theme-icon--sun  { display: inline-flex; }

/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO v2 — topbar mobile (menú) + notas por ítem + calculadora
   ═══════════════════════════════════════════════════════════════════ */

/* Header: en mobile sólo el menú ⋯ (idioma/historial/tema) + barra inferior */
.ct-header-actions { display: inline-flex; gap: 8px; align-items: center; }
.ct-desk-only { display: none; }
.ct-cart-btn { display: none; }
.ct-menu-wrap { position: relative; display: inline-flex; }
.ct-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  z-index: 60;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--carbon-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.ct-menu[hidden] { display: none; }
.ct-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.ct-menu button:hover { background: rgba(237, 230, 214, 0.06); color: var(--bone); }
.ct-menu-val { color: var(--bone); font-weight: 500; }
.ct-menu .ct-theme-icon--moon { display: inline; }
.ct-menu .ct-theme-icon--sun { display: none; }
[data-theme="light"] .ct-menu .ct-theme-icon--moon { display: none; }
[data-theme="light"] .ct-menu .ct-theme-icon--sun { display: inline; }

@media (min-width: 560px) {
  .ct-desk-only { display: inline-flex; }
  .ct-cart-btn { display: inline-flex; }
  .ct-menu-wrap { display: none; }
  .ct-bottombar { display: none !important; }
}

/* Notas por ítem del pedido */
.ct-cart-line { margin-bottom: 6px; }
.ct-cart-note {
  width: 100%;
  margin-top: 2px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.ct-cart-note::placeholder { color: var(--bone-faint, rgba(237, 230, 214, 0.4)); letter-spacing: 0; }
.ct-cart-note:focus { outline: none; border-color: var(--bone-dim); }

/* Calculadora — apetito + elegí los cortes */
.ct-asado-aprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ct-asado-aplabel { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }
.ct-asado-ap { display: inline-flex; gap: 4px; }
.ct-asado-ap-btn {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.ct-asado-ap-btn:hover { color: var(--bone); border-color: var(--bone-dim); }
.ct-asado-ap-btn.is-active { color: var(--carbon); background: var(--bone); border-color: var(--bone); }
.ct-asado-picklabel { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 10px; }
.ct-asado-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ct-asado-pickchip {
  padding: 7px 11px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.ct-asado-pickchip:hover { color: var(--bone); border-color: var(--bone-dim); }
.ct-asado-pickchip.is-on { color: var(--carbon); background: var(--bone); border-color: var(--bone); }
.ct-asado-hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); padding: 8px 0 4px; }
.ct-asado-item-name { text-transform: none; letter-spacing: 0.02em; }

/* Light overrides */
[data-theme="light"] .ct-menu { background: #FFFFFF; border-color: rgba(38, 38, 38, 0.14); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.14); }
[data-theme="light"] .ct-menu button { color: #6B6B6B; }
[data-theme="light"] .ct-menu button:hover { background: rgba(38, 38, 38, 0.05); color: #262626; }
[data-theme="light"] .ct-menu-val { color: #262626; }
[data-theme="light"] .ct-cart-note { border-color: rgba(38, 38, 38, 0.16); color: #262626; }
[data-theme="light"] .ct-cart-note::placeholder { color: rgba(38, 38, 38, 0.4); }
[data-theme="light"] .ct-asado-ap-btn,
[data-theme="light"] .ct-asado-pickchip { border-color: rgba(38, 38, 38, 0.16); color: #6B6B6B; }
[data-theme="light"] .ct-asado-ap-btn:hover,
[data-theme="light"] .ct-asado-pickchip:hover { color: #262626; border-color: #262626; }
[data-theme="light"] .ct-asado-ap-btn.is-active,
[data-theme="light"] .ct-asado-pickchip.is-on { color: #FAF7EE; background: #262626; border-color: #262626; }
