/* ==========================================================
   Carta digital
   ========================================================== */
.menu-hero { padding-block: clamp(1.75rem, 4vw, 3rem) 1.25rem; }
.menu-hero__inner { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 800px) { .menu-hero__inner { grid-template-columns: 1fr minmax(300px, 400px); } }
.menu-hero h1 { font-size: clamp(3.2rem, 2rem + 6vw, 6rem); line-height: 1; }
.menu-hero__sub { margin-top: .5rem; color: var(--text-muted); font-size: var(--fs-sm); }

.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; min-height: 52px; padding: .7rem 2.8rem; border: 3px solid var(--pink-strong); border-radius: var(--radius-pill); background: #fff; font: inherit; font-size: 1rem; color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none; }
.search input::placeholder { color: var(--text-muted); opacity: .75; }
.search input:focus { outline: none; border-color: var(--pink-strong); box-shadow: 0 0 0 4px rgba(214, 53, 113, .15); }
.search input::-webkit-search-cancel-button { display: none; }
.search__ico { position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.search button { position: absolute; right: .5rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--pink-pastel); font-size: 1.3rem; line-height: 1; display: none; }
.search input:not(:placeholder-shown) ~ button { display: block; }

/* El header + la barra de categorías no tapan el destino de un #ancla */
html { scroll-padding-top: calc(var(--header-h) + 84px); }

/* Navegación de categorías (pegajosa, con scroll horizontal) */
.cat-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--cream); border-block: 3px dashed var(--pink-dusty-soft); }
.cat-nav__list { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding-block: .75rem; scrollbar-width: none; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; padding: .5rem 1.1rem; border-radius: var(--radius-pill); background: #fff; border: 2px solid var(--pink-strong); color: var(--pink-strong-dark); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t) var(--ease); }
.cat-chip:hover { transform: translateY(-2px); }
.cat-chip.is-active { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }

/* Secciones */
.menu-body { padding-block: 1rem var(--section-y); }
.menu-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.menu-section[hidden], .menu-group[hidden], .product[hidden] { display: none; }
.menu-section__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.5rem; }
.menu-section__art { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 3px solid var(--pink-strong); padding: .5rem; }
.menu-section__art .art { width: 100%; height: 100%; }
.menu-section__head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.menu-section__head p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .35rem; }
.menu-group + .menu-group { margin-top: 2rem; }
.menu-group__title { display: inline-block; font-family: var(--font-display); font-size: 1.35rem; color: var(--pink-strong-dark); background: var(--pink-pastel-soft); border: 2px solid var(--pink-strong); border-radius: var(--radius-pill); padding: .2rem 1rem; margin-bottom: 1rem; }
.menu-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

.product__action:empty { display: none; }

/* ---------- Celular: filas compactas (foto chica a la izquierda) ---------- */
@media (max-width: 600px) {
  .menu-section .product-grid { gap: .75rem; }
  .menu-section .product { flex-direction: row; box-shadow: 4px 4px 0 var(--pink-dusty-soft); }
  .menu-section .product:hover { transform: none; }
  .menu-section .product__media { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; border-bottom: 0; border-right: 3px solid var(--pink-strong); }
  .menu-section .product__art .art { width: 84%; height: 74%; border-width: 2px; }
  .menu-section .chip--fav { top: .4rem; right: auto; left: .4rem; padding: .2rem .35rem; font-size: 0; gap: 0; }
  .menu-section .chip--fav .ico { font-size: .8rem; width: 1rem; height: 1rem; }
  .menu-section .product__body { padding: .7rem .8rem .75rem; gap: .2rem; min-width: 0; }
  .menu-section .product__name { font-size: 1.05rem; line-height: 1.15; }
  .menu-section .product__desc { font-size: var(--fs-xs); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .menu-section .product__foot { padding-top: .45rem; gap: .5rem; }
  .menu-section .price { font-size: 1.2rem; }
  .menu-section .price--pending { font-size: var(--fs-xs); padding: .15rem .55rem; }
  .menu-section .add-btn { min-height: 36px; padding: .3rem .8rem; font-size: var(--fs-xs); }
  .menu-section .qty button { width: 30px; height: 30px; font-size: 1rem; }
  .menu-section__art { width: 64px; height: 64px; }
}

/* Producto señalado desde un enlace (#id) */
.product.is-target { animation: target 2.4s var(--ease); }
@keyframes target { 0%, 60% { box-shadow: 0 0 0 4px var(--pink-strong), var(--shadow-lg); } 100% { box-shadow: var(--shadow-sm); } }
