/* ==========================================================================
   DON VITO - Fiambrería & Quesería Artesanal Stylesheet
   Estilo rústico-gourmet, vino burdeos, tonos crema y dorados
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --fiam-burgundy: #4c0519;
  --fiam-wine: #881337;
  --fiam-gold: #d97706;
  --fiam-gold-light: #fbbf24;
  --fiam-bg: #12090b;
  --fiam-surface: #1e1014;
  --fiam-card: #271419;
  --fiam-card-hover: #341a22;
  --fiam-border: rgba(251, 191, 36, 0.15);
  --fiam-text: #fef2f2;
  --fiam-text-muted: #e2a8b2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--fiam-bg);
  color: var(--fiam-text);
  line-height: 1.6;
}

h1, h2, h3, h4, .serif-font {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.fiam-nav {
  position: sticky;
  top: 50px;
  z-index: 100;
  background: rgba(18, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fiam-border);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  font-size: 32px;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}

.logo-text h1 span {
  color: var(--fiam-gold-light);
}

.logo-tag {
  font-size: 11px;
  color: var(--fiam-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.15);
  color: #fde68a;
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-weight: 600;
}

.btn-cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--fiam-gold), #b45309);
  color: #1a0808;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cart-nav:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hero */
.hero-fiam {
  padding: 60px 0 45px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(136, 19, 55, 0.35) 0%, transparent 70%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--fiam-border);
  color: var(--fiam-gold-light);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: italic;
  color: var(--fiam-gold-light);
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: var(--fiam-text-muted);
}

.hero-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.perk-box {
  background: var(--fiam-surface);
  border: 1px solid var(--fiam-border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #fed7aa;
}

/* Sticky Categories */
.filter-sticky-bar {
  position: sticky;
  top: 106px;
  z-index: 90;
  background: rgba(18, 9, 11, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--fiam-border);
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--fiam-surface);
  border: 1px solid var(--fiam-border);
  color: var(--fiam-text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(251, 191, 36, 0.1);
  color: #fff;
}

.filter-btn.active {
  background: var(--fiam-gold);
  border-color: var(--fiam-gold);
  color: #180808;
  font-weight: 700;
}

/* Products Grid */
.menu-section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.menu-section-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.menu-section-header span {
  font-size: 13px;
  color: var(--fiam-text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--fiam-card);
  border: 1px solid var(--fiam-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--fiam-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 119, 6, 0.2);
}

.product-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #1e1014;
  display: block;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(39, 20, 25, 0.8), transparent);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--fiam-gold), #92400e);
  color: #1a0808;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--fiam-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--fiam-border);
  padding-top: 14px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--fiam-gold-light);
}

.product-price small {
  font-size: 12px;
  color: var(--fiam-text-muted);
  font-weight: normal;
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--fiam-border);
  color: var(--fiam-gold-light);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background: var(--fiam-gold);
  color: #1a0808;
}

/* Event Banner */
.event-banner {
  background: linear-gradient(135deg, var(--fiam-surface), #2d0b13);
  border: 1px solid var(--fiam-border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.event-content h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}

.event-content p {
  color: var(--fiam-text-muted);
  max-width: 600px;
  font-size: 14px;
}

.btn-event-cta {
  background: var(--fiam-gold);
  color: #1a0808;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

/* Footer */
.fiam-footer {
  padding: 50px 0 100px;
  border-top: 1px solid var(--fiam-border);
  background: #0d0607;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  color: var(--fiam-gold-light);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 13px;
  color: var(--fiam-text-muted);
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #8c5b65;
  border-top: 1px solid var(--fiam-border);
  padding-top: 20px;
}

.footer-bottom a {
  color: var(--fiam-gold-light);
  text-decoration: none;
}

@media (max-width: 768px) {
  .fiam-nav {
    top: 48px;
  }
  .filter-sticky-bar {
    top: 100px;
  }
  .event-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .logo-text h1 {
    font-size: 19px;
  }
  .logo-tag {
    font-size: 9.5px;
    letter-spacing: 0.8px;
  }
  .logo-icon {
    font-size: 26px;
  }
  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .btn-cart-nav {
    padding: 6px 12px;
    font-size: 12px;
  }
  .product-body {
    padding: 16px;
  }
  .hero-fiam {
    padding: 36px 0 24px;
  }
  .hero-perks {
    gap: 8px;
  }
  .perk-box {
    font-size: 12px;
    padding: 6px 12px;
  }
}
