/* ═══════════════════════════════════════════
   BALI COFFEE HOUSE — Carta visual (menu.html)
═══════════════════════════════════════════ */

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* ── Tabs de categoría (ahora son <a> anclas) ── */
.cat-tab {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #9CA3AF;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -1px;
  text-decoration: none;
}
.cat-tab:hover { color: #C8A97E; }
.cat-tab.active {
  color: #2C1810;
  border-bottom-color: #C8A97E;
  font-weight: 600;
}

/* ── Secciones: todas visibles, separadas ── */
.cat-section {
  display: block;
  padding-top: 1rem;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #2C1810;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E8D5B5;
}

.subsection-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A97E;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
  padding-left: 0.25rem;
}

/* ── Grid de productos ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tarjeta de producto ── */
.product-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #E8D5B5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 24, 16, 0.12);
}

/* Card ancha (para bowl) */
.product-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.product-card--wide .product-img {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
@media (max-width: 640px) {
  .product-card--wide { flex-direction: column; }
  .product-card--wide .product-img { width: 100%; height: 160px; }
}

/* ── Imagen del producto ── */
.product-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #F5ECD7;
  position: relative;
  overflow: hidden;
}

/* Shimmer mientras carga */
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 1.8s infinite;
  opacity: 0;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ── Info del producto ── */
.product-info {
  padding: 0.875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2C1810;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.75rem;
  color: #9CA3AF;
  line-height: 1.45;
  flex: 1;
  margin-top: 0.15rem;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #C8A97E;
  margin-top: 0.5rem;
}

/* ── Badge nuevo ── */
.badge-new {
  display: inline-block;
  background: #C8A97E;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
}

/* ── Scrollbar oculta ── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Selección ── */
::selection { background: rgba(200,169,126,0.3); color: #2C1810; }
