/* ===== VARIABLES ===== */
:root {
  --red:     #c0392b;
  --red-dark:#922b21;
  --yellow:  #f39c12;
  --amber:   #e67e22;
  --cream:   #fdf6ec;
  --dark:    #2c1810;
  --green-wa:#25D366;
  --shadow:  0 4px 20px rgba(0,0,0,.15);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  margin: 0;
}

/* ===== FRETE BANNER ===== */
.frete-banner {
  background: linear-gradient(90deg, #1a5276 0%, #1f618d 100%);
  color: #fff;
  font-size: .88rem;
  padding: 9px 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: .3px;
}
.frete-banner a { text-decoration: none; }

.btn-frete-consult {
  background: var(--green-wa);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 50px;
  border: none;
  transition: background .2s;
  white-space: nowrap;
}
.btn-frete-consult:hover { background: #1da851; color: #fff; }

/* Cart section label */
.cart-section-label {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--yellow);
  margin: 10px 0 6px;
}

/* Tighten inputs in cart footer */
.cart-footer .form-control {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .82rem;
}
.cart-footer .form-control::placeholder { color: rgba(255,255,255,.45); }
.cart-footer .form-control:focus {
  background: rgba(255,255,255,.2);
  border-color: var(--yellow);
  color: #fff;
  box-shadow: none;
}
.cart-footer .form-label { margin-bottom: 3px; }

/* ===== PAYMENT OPTIONS (CART) ===== */
.payment-options {
  display: flex;
  gap: 8px;
}
.payment-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.25);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: all .15s;
  background: rgba(255,255,255,.07);
}
.payment-opt input[type=radio] { display: none; }
.payment-opt.active {
  border-color: var(--yellow);
  background: rgba(243,156,18,.2);
  color: #fff;
}
.payment-opt:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* Frete note inside cart */
.frete-note {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  border-left: 3px solid var(--yellow);
  line-height: 1.5;
}

/* ===== DELIVERY MODE TOGGLE (carrinho — fundo escuro) ===== */
.delivery-options {
  display: flex;
  gap: 8px;
}
.delivery-opt {
  flex: 1;
  padding: 9px 8px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.delivery-opt.active {
  border-color: var(--yellow);
  background: rgba(243,156,18,.2);
  color: #fff;
}
.delivery-opt:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* Encomenda — fundo claro */
.enc-delivery-options .delivery-opt,
.enc-delivery-options .enc-delivery-opt {
  border-color: #dee2e6;
  background: #f8f9fa;
  color: #555;
}
.enc-delivery-options .delivery-opt.active,
.enc-delivery-options .enc-delivery-opt.active {
  border-color: var(--red);
  background: #fff0f0;
  color: var(--red-dark);
}
.enc-delivery-options .delivery-opt:hover,
.enc-delivery-options .enc-delivery-opt:hover { border-color: var(--red); color: var(--red-dark); }

/* ===== PAYMENT OPTIONS (ENCOMENDA) ===== */
.enc-payment-options {
  display: flex;
  gap: 8px;
}
.enc-payopt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 10px;
  border: 2px solid #dee2e6;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  color: #555;
  transition: all .15s;
  background: #f8f9fa;
}
.enc-payopt input[type=radio] { display: none; }
.enc-payopt.active {
  border-color: var(--red);
  background: #fff0f0;
  color: var(--red-dark);
}
.enc-payopt:hover { border-color: var(--red); }

/* ===== NAVBAR ===== */
#mainNav {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.brand-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.7rem;
  color: var(--yellow) !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,.4);
}

.brand-icon { font-size: 1.5rem; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-weight: 600;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--yellow) !important; }

/* Cart Button */
.btn-cart {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 50px;
  padding: 6px 18px;
  font-weight: 700;
  transition: all .2s;
}
.btn-cart:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(160deg, var(--red-dark) 0%, var(--red) 50%, var(--amber) 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-sub {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,.4);
  margin: 0;
  line-height: 1.1;
}

.hero-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--yellow);
  text-shadow: 3px 3px 10px rgba(0,0,0,.5);
  margin: 0;
  line-height: 1;
}

.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 600;
}

.btn-hero {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
  transition: all .2s;
}
.btn-hero:hover {
  background: #fff;
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.hero-lantern {
  position: absolute;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
  animation: sway 3s ease-in-out infinite;
}
.hero-lantern.left  { left: 5%;  animation-delay: 0s; }
.hero-lantern.right { right: 5%; animation-delay: 1.5s; }

@keyframes sway {
  0%, 100% { transform: translateY(-50%) rotate(-8deg); }
  50%       { transform: translateY(-50%) rotate(8deg); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
}

.section-title {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red-dark);
  margin: 0;
}

.price-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 16px;
  border-radius: 50px;
  border: 2px solid var(--red-dark);
}
.price-badge.cremoso  { background: #7d3c98; border-color: #6c3483; }
.price-badge.premium  { background: #b7950b; border-color: #9a7d0a; }
.price-badge.amarula  { background: #1a5276; border-color: #154360; }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 4px solid var(--red);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.product-card.cremoso { border-top-color: #7d3c98; }
.product-card.premium { border-top-color: #b7950b; }
.product-card.amarula { border-top-color: #1a5276; }

.product-emoji {
  font-size: 2.4rem;
  margin-bottom: 8px;
  line-height: 1;
}

.product-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: 4px;
  flex: 1;
}

.product-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 10px;
}
.product-card.cremoso .product-price { color: #7d3c98; }
.product-card.premium .product-price { color: #b7950b; }
.product-card.amarula .product-price { color: #1a5276; }

.btn-add {
  border: none;
  border-radius: 50px;
  padding: 7px 20px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.btn-add.tradicional { background: var(--red); color: #fff; }
.btn-add.tradicional:hover { background: var(--red-dark); }
.btn-add.cremoso  { background: #7d3c98; color: #fff; }
.btn-add.cremoso:hover  { background: #6c3483; }
.btn-add.premium  { background: #b7950b; color: #fff; }
.btn-add.premium:hover  { background: #9a7d0a; }
.btn-add.amarula  { background: #1a5276; color: #fff; }
.btn-add.amarula:hover  { background: #154360; }

/* ===== QUANTITY CONTROLS ===== */
.card-action {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}
.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .15s;
}
.qty-control button:hover { background: var(--red); color: #fff; }
.qty-control span {
  font-weight: 800;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

/* ===== PROMOÇÕES ===== */
.promo-section {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.promo-section .section-title { color: #fff; }

.promo-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  transition: transform .2s;
  height: 100%;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card.destaque {
  background: rgba(255,255,255,.2);
  border-color: var(--yellow);
  transform: scale(1.03);
}
.promo-card.destaque:hover { transform: scale(1.03) translateY(-4px); }

.promo-icon { font-size: 2.8rem; margin-bottom: 8px; }
.promo-card h3 { font-weight: 800; font-size: 1.15rem; }
.promo-price { font-size: 2rem; font-weight: 900; color: var(--yellow); margin: 4px 0; }
.promo-economy { font-size: .85rem; opacity: .8; }
.promo-desc-text { font-size: .95rem; opacity: .9; line-height: 1.5; }

.btn-promo {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  border-radius: 50px;
  padding: 8px 24px;
  border: none;
  transition: all .2s;
  margin-top: 10px;
}
.btn-promo:hover { background: #fff; color: var(--dark); }

/* ===== ENCOMENDA ===== */
.encomenda-section {
  background: #fff7ee;
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
}

.encomenda-subtitle {
  color: #7a5c3a;
  font-size: 1rem;
  font-weight: 600;
}

.encomenda-form-card,
.encomenda-summary-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}

.encomenda-form-card {
  border-top: 4px solid var(--red);
}

.encomenda-summary-card {
  border-top: 4px solid var(--yellow);
}

.form-section-title {
  font-weight: 800;
  color: var(--red-dark);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.btn-enc-add {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  border-radius: 50px;
  padding: 10px;
  border: none;
  font-size: .95rem;
  transition: all .2s;
}
.btn-enc-add:hover { background: var(--red-dark); color: #fff; }

/* Quantity shortcut buttons */
.qty-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.shortcut-label {
  font-size: .8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.qty-shortcuts button {
  background: var(--cream);
  border: 2px solid var(--amber);
  color: var(--dark);
  border-radius: 50px;
  font-weight: 800;
  font-size: .85rem;
  padding: 3px 12px;
  cursor: pointer;
  transition: all .15s;
}
.qty-shortcuts button:hover {
  background: var(--amber);
  color: #fff;
}

/* Empty message */
.enc-empty-msg {
  text-align: center;
  color: #bbb;
  padding: 30px 0;
  font-size: .95rem;
}

/* Table */
.enc-table thead th {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  border: none;
}
.enc-table tbody tr:hover { background: #fff7ee; }
.enc-table td { font-size: .88rem; vertical-align: middle; }

.enc-total-row td {
  background: #fff3cd;
  font-weight: 800;
  font-size: .95rem;
  color: var(--dark);
  border-top: 2px solid var(--amber);
}

.btn-enc-remove {
  background: transparent;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color .15s;
  line-height: 1;
}
.btn-enc-remove:hover { color: var(--red); }

.btn-whatsapp-enc {
  background: var(--green-wa);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  cursor: pointer;
}
.btn-whatsapp-enc:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* ===== CONTATO ===== */
.contato-section { background: var(--cream); }

.contato-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px;
  border-left: 6px solid var(--red);
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8df;
  font-size: 1rem;
}
.contato-item:last-of-type { border-bottom: none; }
.contato-item i {
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-whatsapp-contact {
  background: var(--green-wa);
  color: #fff;
  font-weight: 800;
  border-radius: 50px;
  padding: 12px;
  border: none;
  font-size: 1rem;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-whatsapp-contact:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* Botões de redes sociais */
.btn-social {
  font-weight: 700;
  border-radius: 50px;
  border: none;
  color: #fff;
  transition: all .2s;
  font-size: .8rem;
}
.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.btn-instagram:hover { filter: brightness(1.12); color: #fff; transform: translateY(-2px); }
.btn-facebook {
  background: #1877f2;
}
.btn-facebook:hover { background: #0e5fc0; color: #fff; transform: translateY(-2px); }
.btn-maps {
  background: #34a853;
}
.btn-maps:hover { background: #2a8a44; color: #fff; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}

/* ===== CART PANEL ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1040;
  display: none;
  animation: fadeIn .2s;
}
.cart-overlay.active { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(420px, 100vw);
  height: 100vh;
  background: linear-gradient(160deg, var(--red-dark) 0%, #7b241c 100%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 30px rgba(0,0,0,.4);
}
.cart-panel.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.empty-cart-msg {
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
}

/* Cart Items */
.cart-item {
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-name {
  font-size: .9rem;
  font-weight: 700;
  flex: 1;
  line-height: 1.3;
}
.cart-item-price {
  font-size: .85rem;
  color: var(--yellow);
  font-weight: 800;
  white-space: nowrap;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cart-item-qty button:hover { background: rgba(255,255,255,.25); }
.cart-item-qty span { font-weight: 800; min-width: 20px; text-align: center; }

.btn-remove-item {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  transition: color .15s;
  display: flex;
  align-items: center;
}
.btn-remove-item:hover { color: #fff; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.total-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--yellow);
}

.btn-whatsapp {
  background: var(--green-wa);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  cursor: pointer;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== CART TOAST ===== */
#cart-toast {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 1090;
  pointer-events: none;
  opacity: 0;
  transform: translateX(110%);
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
#cart-toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
#cart-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-left: 4px solid var(--green-wa);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  min-width: 220px;
  max-width: 300px;
}
#cart-toast-emoji {
  font-size: 1.5rem;
  line-height: 1;
}
#cart-toast-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
#cart-toast-text strong {
  font-size: .92rem;
  color: var(--dark);
}
#cart-toast-category {
  font-size: .75rem;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#cart-toast-qty {
  font-size: .78rem;
  color: #666;
}
#cart-toast-icon {
  color: var(--green-wa);
  font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .hero-lantern { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .promo-card.destaque { transform: scale(1); }
}
