/* ──────────────────────────────────────────────────
   PuraCreativa.com – Public Menu Styles
   ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Starbucks Design System tokens */
  --menu-text: rgba(0, 0, 0, 0.87);
  --menu-text-muted: rgba(0, 0, 0, 0.58);
  --menu-text-faint: rgba(0, 0, 0, 0.38);
  --menu-overlay: rgba(0, 0, 0, .55);
  --menu-drawer-bg: #1E3932;
  --menu-surface: #f2f0eb;
  --menu-surface-alt: #edebe9;
  --menu-border: #e4e3e0;
  --menu-border-light: rgba(255, 255, 255, .08);
  --menu-carousel-bg: #1E3932;
  --menu-search-warn-bg: #fff3e0;
  --menu-search-warn-border: #ffe0b2;
  --menu-search-warn-text: #d84315;
  --menu-footer-text: rgba(0, 0, 0, 0.45);
  --menu-footer-border: #e4e3e0;
  --menu-placeholder-start: #d4e9e2;
  --menu-placeholder-end: #e8f5f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 50px;
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: -0.01em;
  --transition-btn: all 0.2s ease;
}

body {
  margin: 0;
  background: var(--color-body-bg);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--menu-text);
  overflow-x: hidden;
  letter-spacing: var(--letter-spacing-tight);
}

/* ══════════════════════════════════════════════════
   DRAWER
══════════════════════════════════════════════════ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--menu-overlay);
  z-index: 800;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.cat-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  background: var(--menu-drawer-bg);
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.cat-drawer.open { transform: translateX(0); }

/* ── Top: 15px de espacio + logo restaurante ── */
.drawer-top {
  flex-shrink: 0;
  padding: 16px 16px 12px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.drawer-restaurant-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-restaurant-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* blanco sobre fondo oscuro */
}

/* ── Footer: logo PuraCreativa ── */
.drawer-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
.drawer-footer-link {
  display: inline-flex;
  align-items: center;
  opacity: .6;
  transition: opacity .15s;
}
.drawer-footer-link:hover { opacity: 1; }
.drawer-footer-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── Drawer header: grid de 3 columnas simétricas ── */
.drawer-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 12px;
  background: var(--color-header-bg);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Botón Volver (izquierda) */
.drawer-back-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  visibility: hidden;        /* ocupa espacio pero no se ve */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
.drawer-back-btn.visible { visibility: visible; }
.drawer-back-btn:hover    { opacity: .7; }

/* Título central */
.drawer-title {
  min-width: 0;              /* necesario para que text-overflow funcione en grid */
  color: rgba(255, 255, 255, .95);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .18s;
}

/* Botón cerrar (derecha) */
.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.drawer-close:hover { color: rgba(255, 255, 255, .95); }

/* ══════════════════════════════════════════════════
   DRILL-DOWN NAV
══════════════════════════════════════════════════ */
.drilldown {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Cada nivel es un panel absoluto que ocupa todo el contenedor */
.drilldown-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  transform: translateX(100%);             /* empieza fuera a la derecha */
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.drilldown-panel.is-active { transform: translateX(0); }
.drilldown-panel.is-behind { transform: translateX(-100%); } /* completamente fuera */

/* ── Ítem del drill-down ── */
.dd-item {
  display: flex;
  align-items: center;
  min-height: 52px;          /* se expande si el texto ocupa más de una línea */
  padding: 12px 20px;
  gap: 12px;
  color: rgba(201, 209, 217, .85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.055);
  cursor: pointer;
  transition: background .14s, color .14s;
  -webkit-tap-highlight-color: transparent;
}
.dd-item:hover,
.dd-item:focus-visible {
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.dd-item--parent { font-weight: 600; }

/* Dot de color de la categoría */
.dd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}

/* Nombre */
.dd-label {
  flex: 1;
  font-size: .9rem;
  line-height: 1.35;
  white-space: normal;       /* permite que el texto de varias palabras salte de línea */
  word-break: break-word;
  min-width: 0;
}

/* Badge con cantidad de hijos */
.dd-count {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.09);
  border-radius: 30px;
  padding: 2px 8px;
  flex-shrink: 0;
  font-weight: 500;
}

/* Flecha derecha */
.dd-arrow {
  font-size: .75rem;
  color: rgba(255,255,255,.28);
  flex-shrink: 0;
  transition: transform .14s, color .14s;
}
.dd-item:hover .dd-arrow     { transform: translateX(3px); color: rgba(255,255,255,.6); }
.dd-arrow--leaf               { opacity: 0; }   /* hoja: sin flecha visible */

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
  display: grid;
  grid-template-columns: 52px 52px 1fr 52px;
  align-items: center;
  height: 56px;
  background: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 2px 2px rgba(0,0,0,0.06), 0 0 2px rgba(0,0,0,0.07);
  max-width: 960px;
  margin: 0 auto;
}
.header-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 56px;
  transition: opacity .15s;
  padding: 0;
}
.header-btn:hover { opacity: .75; }

/* ── Language switcher ─────────────────────────── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn {
  padding: 0;
}
.lang-flag {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(.96);
  transform-origin: top center;
  min-width: 150px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 750;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.lang-menu li { margin: 0; }
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  color: #333;
  text-align: left;
}
.lang-option:hover { background: #f4f4f4; }
.lang-option .lang-flag { font-size: 1.15rem; }

/* ── Hide Google Translate default UI ─────────── */
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.goog-te-gadget,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.header-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.header-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════════════ */
.search-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
  display: none;
  position: sticky;
  top: 56px;
  z-index: 690;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.search-bar.open { display: block; }
.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 8px 16px;
}
.search-bar-icon { color: #999; font-size: .95rem; flex-shrink: 0; }
.search-bar-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: .95rem;
  color: #333;
}
.search-bar-clear {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: .9rem;
  padding: 0;
  line-height: 1;
}
.search-bar-clear:hover { color: #333; }

.search-notice {
  background: #fff3e0;
  border-bottom: 1px solid #ffe0b2;
  padding: 8px 16px;
  font-size: .82rem;
  color: #e65100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-notice button {
  background: none; border: none;
  cursor: pointer; color: #e65100;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.no-results i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

/* ══════════════════════════════════════════════════
   CAROUSEL
══════════════════════════════════════════════════ */
.hero-carousel {
  width: 100%;
  overflow: hidden;
  background: #111;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  gap: 0;
}
.carousel-img {
  flex: 1;
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
@media (min-width: 600px) {
  .carousel-img { height: 340px; }
}
@media (min-width: 900px) {
  .carousel-img { height: 420px; }
}

/* ══════════════════════════════════════════════════
   RESTAURANT NAME SLIDER — ticker / marquee
══════════════════════════════════════════════════ */
.restaurant-name-slider {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  background: var(--rnb-bg, transparent);
  color: var(--rnb-color, var(--color-item-title));
  font-size: 1.15rem;
  font-weight: 700;
}
/* Contenedor que se anima */
.rnb-track {
  display: inline-flex;
  animation: rnb-scroll var(--rnb-speed, 18s) linear infinite;
  animation-play-state: var(--rnb-play, running);
  will-change: transform;
}
/* Cada copia del texto.
   Los espacios finales ya vienen como &nbsp; desde PHP, no hace falta white-space:pre */
.rnb-text {
  flex-shrink: 0;
}
/* La animación desplaza exactamente el ancho de UNA copia (calculado por JS) */
@keyframes rnb-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--rnb-shift, 50%))); }
}

/* ══════════════════════════════════════════════════
   CATEGORY NAV
══════════════════════════════════════════════════ */
.cat-nav {
  background: transparent;
  padding: 10px 12px;
  position: sticky;
  max-width: 960px;
  margin: 0 auto;
  top: 56px;
  z-index: 600;
  background: var(--color-body-bg);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.search-bar.open ~ .cat-nav,
.search-bar.open + * .cat-nav {
  top: 112px; /* shift down when search is open */
}
.cat-nav-track {
  display: flex;
  align-items: center;      /* vertically center all buttons */
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding: 4px 2px;         /* small padding so box-shadow isn't clipped */
}
.cat-nav-track::-webkit-scrollbar { display: none; }
.cat-nav-track.dragging { cursor: grabbing; }

.cat-nav-item {
  flex-shrink: 0;
  min-width: 70px;
  height: 78px;             /* SAME height for all buttons */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;      /* center text horizontally */
  justify-content: center;  /* center text vertically */
  padding: 8px 14px;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
}
.cat-nav-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* overlay for text readability over images (customizable from admin) */
.cat-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nav-overlay, linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%));
  transition: background .2s;
  border-radius: 12px;
}
/* Active: colored border (keeps the same overlay) */
.cat-nav-item.active::before {
  box-shadow: inset 0 0 0 3px var(--color-primary);
}

.cat-nav-label {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  white-space: nowrap;
}

/* Sub-category tabs: same height, auto width */
.cat-nav-item.sub {
  min-width: 60px;
  height: 78px;             /* same height as main categories */
  border-radius: 10px;
}
.cat-nav-item.sub .cat-nav-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: none;
}
.cat-nav-item.sub::before {
  border-radius: 10px;
}

/* ══════════════════════════════════════════════════
   PRIMARY CAT-NAV – chevron for items with subs
══════════════════════════════════════════════════ */
.cat-nav-chevron {
  position: absolute;
  bottom: 5px;
  right: 6px;
  z-index: 2;
  font-size: .55rem;
  color: rgba(255,255,255,.85);
  line-height: 1;
}

/* ══════════════════════════════════════════════════
   SHRINKING NAV — al scrollear hacia abajo
══════════════════════════════════════════════════ */
.cat-nav.nav-shrunk {
  padding: 5px 12px;
}
.cat-nav.nav-shrunk .cat-nav-item,
.subcat-nav.nav-shrunk .cat-nav-item {
  height: 48px;        /* reducido desde 78px */
  min-width: 60px;
}
.cat-nav.nav-shrunk .cat-nav-label,
.subcat-nav.nav-shrunk .cat-nav-label {
  font-size: .62rem;
}
.cat-nav .cat-nav-item,
.subcat-nav .cat-nav-item {
  transition: height .25s ease, width .25s ease, transform .15s, box-shadow .15s;
}
.cat-nav { transition: padding .25s ease; }
.subcat-nav.nav-shrunk {
  padding: 4px 12px 5px;
}

/* ══════════════════════════════════════════════════
   SECONDARY / SUBCATEGORY NAV
══════════════════════════════════════════════════ */
.subcat-nav {
  display: none;          /* shown by JS when parent clicked */
  position: sticky;
  top: 154px;             /* overridden by JS */
  max-width: 960px;
  margin: 0 auto;
  z-index: 595;
  background: var(--color-body-bg);
  padding: 6px 12px 8px;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.subcat-group { display: none; }
.subcat-group.active { display: block; }

.subcat-nav-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding: 2px 1px;
}
.subcat-nav-track::-webkit-scrollbar { display: none; }
.subcat-nav-track.dragging { cursor: grabbing; }

.subcat-nav-item {
  flex-shrink: 0;
  min-width: 70px;
  height: 78px;           /* same as primary nav item */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform .15s, box-shadow .15s;
  box-sizing: border-box;
}
.subcat-nav-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.subcat-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
  border-radius: 12px;
  transition: background .2s;
}
.subcat-nav-item.active::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 100%);
  box-shadow: inset 0 0 0 3px var(--color-primary);
}
.subcat-nav-item .cat-nav-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════ */
.menu-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 14px 80px;
}
.cat-section { margin-bottom: 36px; }
.cat-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-category-title);
  border-bottom: 2px solid var(--color-category-title);
  padding-bottom: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subcat-section { margin-top: 22px; }
.subcat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-category-title);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--color-category-title);
}
.cat-subtitle {
  font-size: .85rem;
  color: var(--color-item-description);
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════
   ITEMS GRID
══════════════════════════════════════════════════ */
.items-grid { display: grid; gap: 12px; }

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

.items-grid-style2,
.items-grid-style3 { grid-template-columns: 1fr; }

/* ══════════════════════════════════════════════════
   ITEM CARDS – base
══════════════════════════════════════════════════ */
.item-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0.5px rgba(0,0,0,0.14), 0 1px 1px rgba(0,0,0,0.24);
  transition: transform .15s, box-shadow .15s;
}
.item-card:hover { transform: translateY(-2px); box-shadow: 0 0 0.5px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.14); }
.item-card[data-modal] { cursor: pointer; }

.item-name {
  font-size: .9rem; font-weight: 700;
  color: var(--color-item-title);
  line-height: 1.3; display: block;
  letter-spacing: -0.01em;
}
.item-desc {
  font-size: .77rem; color: var(--color-item-desc);
  margin: 4px 0 0; line-height: 1.5; display: block;
  letter-spacing: -0.005em;
}
.item-price {
  font-size: .95rem; font-weight: 700;
  color: var(--color-item-price); white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Style 1 */
.item-card.style-1 { display: flex; flex-direction: column; }
.item-card.style-1 .item-img-wrap {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; background: #f0f0f0; flex-shrink: 0;
}
.item-card.style-1 .item-img { width:100%;height:100%;object-fit:cover;display:block; }
.item-card.style-1 .item-img-placeholder {
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--menu-placeholder-start),var(--menu-placeholder-end));
  font-size:2.2rem;color:var(--color-primary);
}
.item-card.style-1 .item-info { padding:10px 12px 12px;display:flex;flex-direction:column;flex:1; }
.item-card.style-1 .item-header { display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:4px; }

/* Style 2 */
.item-card.style-2 { display:flex;align-items:center;min-height:72px; }
.item-card.style-2 .item-img-sm { width:80px;min-width:80px;height:80px;overflow:hidden;background:#f0f0f0;flex-shrink:0; }
.item-card.style-2 .item-img-sm img { width:100%;height:100%;object-fit:cover;display:block; }
.item-card.style-2 .item-img-sm.item-img-placeholder {
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--menu-placeholder-start),var(--menu-placeholder-end));font-size:1.5rem;color:var(--color-primary);
}
.item-card.style-2 .item-info { padding:10px 12px;flex:1;min-width:0; }
.item-card.style-2 .item-desc { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.item-card.style-2 .style-2-price { padding-right:14px;flex-shrink:0; }

/* Style 3 */
.item-card.style-3 { display:flex;align-items:center; }
.item-card.style-3 .item-info { padding:14px 16px;flex:1; }
.item-card.style-3 .item-header { display:flex;justify-content:space-between;align-items:flex-start;gap:8px; }
.item-card.style-3 .item-desc { margin-top:4px; }

/* Search hidden */
.item-card.hidden-search { display: none !important; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: .8rem;
  color: var(--menu-footer-text);
  border-top: 1px solid var(--menu-footer-border);
  gap: 12px;
}
.footer-restaurant {
  font-weight: 600;
  color: var(--color-item-title);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer-puracreativa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--menu-footer-text);
  text-decoration: none;
  font-size: .75rem;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color .15s;
}
.footer-puracreativa:hover { color: rgba(0,0,0,0.65); }
.footer-pc-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
  opacity: .55;
  transition: opacity .15s;
}
.footer-puracreativa:hover .footer-pc-logo { opacity: .85; }

/* ══════════════════════════════════════════════════
   ADD TO CART BUTTON (on item cards)
══════════════════════════════════════════════════ */
.item-price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-add-cart {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background .14s, color .14s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn-add-cart:hover,
.btn-add-cart.added {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}
.btn-add-cart:active { transform: scale(0.95); }
/* Style 2: button after price, right-aligned */
.item-card.style-2 .btn-add-cart { margin-right: 10px; }
/* Style 3: button inside price-group, header row */
.item-card.style-3 .item-header { align-items: center; }

/* ══════════════════════════════════════════════════
   CART FLOATING BUTTON
══════════════════════════════════════════════════ */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: none; /* shown by JS when cart has items */
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.24), 0 8px 12px rgba(0,0,0,0.14);
  z-index: 650;
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cart-fab:hover { transform: scale(1.05); }
.cart-fab:active { transform: scale(0.95); box-shadow: 0 0 6px rgba(0,0,0,0.24), 0 8px 12px rgba(0,0,0,0); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════
   CART OVERLAY
══════════════════════════════════════════════════ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 800;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

/* ══════════════════════════════════════════════════
   CART PANEL (right drawer)
══════════════════════════════════════════════════ */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.cart-panel.open { transform: translateX(0); }

/* Panel header */
.cart-panel-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 14px 12px;
  background: var(--color-header-bg);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cart-panel-title {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-panel-close,
.cart-panel-back {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.cart-panel-close:hover,
.cart-panel-back:hover { color: #fff; }
.cart-panel-back { visibility: hidden; }
.cart-panel-back.visible { visibility: visible; }

/* Views inside panel */
.cart-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Items list */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 52px 20px 20px;
  color: #bbb;
}
.cart-empty i { font-size: 2.8rem; margin-bottom: 12px; display: block; color: #d0d0d0; }
.cart-empty p  { margin: 0 0 6px; font-size: .9rem; }
.cart-empty-hint { font-size: .78rem !important; color: #ccc; }

/* Cart item row */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
.cart-item-unit {
  display: block;
  font-size: .74rem;
  color: #999;
  margin-top: 2px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.cart-qty-btn:hover { background: var(--color-primary); color: #fff; }
.cart-qty-num {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: #333;
}
.cart-item-linetotal {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-item-price);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Panel footer */
.cart-panel-footer {
  padding: 14px 16px;
  border-top: 1px solid #ececec;
  background: #fff;
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}
.cart-total-amount { color: var(--color-item-price); font-size: 1.1rem; }

/* Checkout button */
.btn-checkout {
  width: 100%;
  padding: 13px;
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.btn-checkout:disabled { opacity: .45; cursor: not-allowed; }
.btn-checkout:not(:disabled):hover { opacity: .88; }
.btn-checkout:not(:disabled):active { transform: scale(0.95); }

/* WhatsApp button */
.btn-whatsapp {
  width: 100%;
  padding: 13px;
  border-radius: 50px;
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-btn);
  letter-spacing: -0.01em;
}
.btn-whatsapp:hover { opacity: .88; }
.btn-whatsapp:active { transform: scale(0.95); }

/* ── Checkout view ── */
.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}
.checkout-body .form-label {
  font-size: .85rem;
  font-weight: 600;
  color: #444;
}
.checkout-body .form-control {
  border-radius: 10px;
  font-size: .95rem;
  padding: 10px 14px;
}
.checkout-summary {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 14px;
  margin-top: 18px;
}
.checkout-summary-title {
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: #555;
  margin-bottom: 6px;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--color-item-price);
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 8px;
  font-size: .95rem;
}
