/* Home V3 premium — promociones y product cards (solo Inicio) */

.screen-home .home-offers-section[hidden] {
  display: none !important;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

.screen-home .offers-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 2px 16px 10px 0;
  margin: 0 -4px 0 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screen-home .offers-stack::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.screen-home .offer-card,
.screen-home .offer-card--carousel,
.screen-home .offer-card--hero,
.screen-home .offer-card--compact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  align-items: stretch;
  margin-bottom: 0;
  flex: 0 0 min(78vw, 292px);
  width: min(78vw, 292px);
  max-width: 292px;
  min-height: 124px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.screen-home .offer-thumb,
.screen-home .offer-thumb--hero,
.screen-home .offer-card--hero .offer-thumb,
.screen-home .offer-card--compact .offer-thumb,
.screen-home .offer-card--carousel .offer-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  align-self: center;
}

.screen-home .offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-home .offer-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cu-brown);
  background: var(--cu-yellow-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 6px;
}

.screen-home .offer-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 96px;
  justify-content: flex-start;
}

.screen-home .offer-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  flex: 1 1 auto;
  line-height: 1.35;
}

.screen-home .offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
}

.screen-home .offer-price {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.screen-home .btn-offer-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--cu-yellow);
  color: var(--cu-ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.screen-home .btn-offer-add .cu-svg { width: 14px; height: 14px; }

.screen-home .btn-all-offers {
  width: 100%;
  margin-top: 4px;
  padding: 10px 0;
  border: none;
  background: none;
  color: var(--cu-brown);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Product cards premium */
.screen-home #productsWrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-home .product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  align-items: stretch;
}

.screen-home .product-thumb {
  width: 112px;
  height: 116px;
  align-self: center;
  border-radius: 14px;
  overflow: hidden;
}

.screen-home .product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-home .product-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-home .product-desc {
  -webkit-line-clamp: 2;
  font-size: 13px;
  margin-top: 4px;
}

.screen-home .product-meta-chip {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

.screen-home .product-foot {
  padding-top: 10px;
}

.screen-home .product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--cu-ink);
}

.screen-home .btn-add-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--cu-yellow);
  color: var(--cu-ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.screen-home .btn-add-pill .cu-svg { width: 14px; height: 14px; flex-shrink: 0; }

.screen-home .btn-add-pill--options {
  background: var(--white);
  border: 1px solid var(--cu-border);
  color: var(--cu-ink);
}

.screen-home .product-card .qty-control {
  min-height: 42px;
}

@media (min-width: 680px) {
  .screen-home #productsWrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .screen-home #productsWrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin: 0 auto;
  }
}

@media (min-width: 1280px) {
  .screen-home #productsWrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Búsqueda home */
.home-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 0 14px;
  min-height: 48px;
  background: var(--cu-surface, #fff);
  border: 1px solid var(--cu-border, #e8dfd3);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(47, 43, 38, 0.04);
}

.home-search-icon svg { width: 20px; height: 20px; color: var(--cu-muted, #8a8178); }

.home-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font: 500 15px/1.3 "Outfit", system-ui, sans-serif;
  color: var(--cu-ink);
  outline: none;
}

.home-search-input::placeholder { color: var(--cu-muted, #8a8178); }

.home-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--cu-cream, #f7efe3);
  padding: 0;
}

.home-empty-results {
  padding: 24px 16px;
  text-align: center;
}

/* Pestaña Menú: catálogo sin hero ni promos */
body.mode-menu .hero-wrap,
body.mode-menu .home-offers-section,
body.mode-menu .hero-dots {
  display: none !important;
}

.menu-catalog-block {
  padding-bottom: 24px;
}

.menu-sticky-scope {
  position: relative;
}

.menu-cat-sticky-head {
  position: sticky;
  top: max(env(safe-area-inset-top, 0px), 0px);
  z-index: 45;
  margin: 0 -16px 6px;
  padding: 6px 16px 8px;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px -18px rgba(42, 24, 16, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-sticky-scope .section-categories-intro {
  padding: 0 0 4px;
}

.menu-sticky-scope .section-categories-intro .section-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
}

.menu-sticky-scope .menu-cat-nav {
  position: static;
  margin: 0;
  padding: 0 0 2px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 0;
}

.menu-sticky-scope .cat-row {
  gap: 6px;
  padding-bottom: 2px;
}

.menu-sticky-scope .cat-chip {
  min-width: 64px;
  max-width: 76px;
  padding: 5px 5px 4px;
  border-radius: 12px;
  gap: 3px;
}

.menu-sticky-scope .cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.menu-sticky-scope .cat-icon svg {
  width: 18px;
  height: 18px;
}

.menu-sticky-scope .cat-label {
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: 0;
}

.menu-sticky-scope .cat-chip.on .cat-icon {
  transform: translateY(-1px);
}

.menu-cat-section {
  margin-bottom: 32px;
  scroll-margin-top: var(--menu-cat-scroll-offset, 96px);
}

.menu-cat-heading {
  scroll-margin-top: var(--menu-cat-scroll-offset, 96px);
}

.menu-cat-section + .menu-cat-section {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.menu-cat-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(139, 58, 27, 0.07);
  border: 1px solid rgba(139, 58, 27, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.menu-cat-heading-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cu-surface-warm, #fff7ea);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(233, 184, 18, 0.12);
}

.menu-cat-heading-icon svg {
  width: 22px;
  height: 22px;
}

.menu-cat-heading-label {
  line-height: 1.25;
}

.menu-cat-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
