:root {
  --terracota: #9e3d26;
  --gold: #c9a84c;
  --gold-light: #e8c97e;
  --cream: #fdf8ef;
  --cream-dark: #f5ede0;
  --brown: #3d2314;
  --brown-mid: #6b3a22;
  --text: #2a1a10;
  --text-soft: #7a5c4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 248, 239, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(158, 61, 38, 0.12);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 52px;
  display: block;
}

.btn-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.3s;
}

.btn-wpp:hover {
  background: #1da851;
  transform: translateY(-2px);
  color: white;
}

.btn-wpp svg {
  width: 18px;
  height: 18px;
  fill: white;
  flex-shrink: 0;
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 80%,
      rgba(201, 168, 76, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 20%,
      rgba(158, 61, 38, 0.12) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracota);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 480px;
  margin: 1.2rem auto 0;
  line-height: 1.65;
  font-weight: 300;
}

.hero-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.hero-deco span {
  font-size: 1.6rem;
}

.hero-deco-line {
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* BANNER DE SABORES */
.sabores-banner {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.sabores-inner {
  background: white;
  border: 1px solid rgba(158, 61, 38, 0.12);
  border-radius: 1.25rem;
  padding: 1.4rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.sabores-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracota);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sabores-divider {
  width: 1px;
  height: 28px;
  background: rgba(158, 61, 38, 0.15);
  flex-shrink: 0;
}

.sabores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.sabor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream-dark);
  border: 1px solid rgba(158, 61, 38, 0.15);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brown-mid);
}

.sabores-nota {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 0.2rem;
}

/* FILTERS */
.filters-wrapper {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid rgba(158, 61, 38, 0.2);
  background: white;
  color: var(--text-soft);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--terracota);
  color: var(--terracota);
}

.filter-btn.active {
  background: var(--terracota);
  border-color: var(--terracota);
  color: white;
  box-shadow: 0 4px 14px rgba(158, 61, 38, 0.3);
}

/* GRID */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* CARD */
.product-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42, 26, 16, 0.07);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(42, 26, 16, 0.14);
}

.product-card.hidden {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(253, 248, 239, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracota);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(158, 61, 38, 0.2);
}

.card-zoom-hint {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: rgba(253, 248, 239, 0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover .card-zoom-hint {
  opacity: 1;
}

.card-body {
  padding: 1.3rem 1.4rem 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.badge-categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

.badge-250 {
  background: rgba(201, 168, 76, 0.15);
  color: #8a6a20;
}

.badge-dupla {
  background: rgba(158, 61, 38, 0.12);
  color: var(--terracota);
}

.badge-quarteto {
  background: rgba(61, 35, 20, 0.1);
  color: var(--brown-mid);
}

.badge-sacolas {
  background: rgba(61, 35, 20, 0.08);
  color: var(--brown);
}

.card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1.1rem;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terracota);
}

.btn-pedir {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-dark);
  color: var(--terracota);
  border: 1.5px solid rgba(158, 61, 38, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-pedir:hover {
  background: var(--terracota);
  color: white;
  border-color: var(--terracota);
  box-shadow: 0 4px 12px rgba(158, 61, 38, 0.3);
}

/* EMPTY STATE */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.empty-state.visible {
  display: block;
}

.empty-state p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--text-soft);
  font-style: italic;
}

/* MODAL */
.modal-content {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--cream);
}

#productCarousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(253, 248, 239, 0.88);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#productCarousel .carousel-control-prev {
  left: 0.9rem;
}

#productCarousel .carousel-control-next {
  right: 0.9rem;
}

#productCarousel .carousel-control-prev-icon,
#productCarousel .carousel-control-next-icon {
  filter: invert(30%) sepia(40%) saturate(700%) hue-rotate(340deg);
  width: 15px;
  height: 15px;
}

#productCarousel .carousel-indicators button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--terracota);
  border: none;
  opacity: 0.35;
}

#productCarousel .carousel-indicators .active {
  opacity: 1;
}

.modal-body-info {
  padding: 1.5rem 1.8rem 0.4rem;
}

.modal-product-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.modal-product-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Caixinha de sabores dentro do modal (Dupla e Quarteto) */
.modal-sabores {
  margin-top: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--cream-dark);
  border-radius: 0.75rem;
  border: 1px solid rgba(158, 61, 38, 0.12);
}

.modal-sabores-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.6rem;
}

.modal-sabores-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-sabor-pill {
  background: white;
  border: 1px solid rgba(158, 61, 38, 0.18);
  border-radius: 50px;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  color: var(--brown-mid);
  font-weight: 500;
}

.modal-footer-row {
  padding: 1.2rem 1.8rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(158, 61, 38, 0.1);
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.modal-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracota);
}

.btn-modal-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.25s;
}

.btn-modal-wpp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-1px);
}

.btn-modal-wpp svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(253, 248, 239, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--brown-mid);
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: var(--cream-dark);
}

/* FOOTER */
footer {
  background: var(--brown);
  color: rgba(253, 248, 239, 0.7);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-text {
  font-size: 0.85rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: rgba(253, 248, 239, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .nav-inner {
    padding: 0.8rem 1.2rem;
  }

  .btn-wpp span {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.2rem 2.5rem;
  }

  .sabores-banner {
    padding: 0 1.2rem;
  }

  .sabores-divider {
    display: none;
  }

  .filters-wrapper,
  .products-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  #productCarousel .carousel-item img {
    max-height: 260px;
  }

  .modal-product-title {
    font-size: 1.5rem;
  }
}