:root {
  --primary: #ff5c8a;
  --secondary: #2b0a33;
  --accent: #f9cc47;
  --bg: #fff9fb;
  --text: #2d2a32;
  --muted: #7a7685;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(255, 92, 138, 0.15);
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font, "Poppins", sans-serif);
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 20;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
.navbar .logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
}
.navbar nav {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}
button,
.btn {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(255, 92, 138, 0.25);
}
.hero {
  padding: 4rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
}
.hero .card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.badge {
  background: rgba(255, 92, 138, 0.12);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.section {
  padding: 3rem 1rem;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-card img {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  object-fit: cover;
  max-height: 240px;
}
.product-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.features li::before {
  content: "✔";
  margin-right: 0.4rem;
  color: var(--primary);
}
.order-panel {
  background: var(--secondary);
  color: #fff;
  border-radius: 28px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.order-panel form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.order-panel label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.order-panel input,
.order-panel select,
.order-panel textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: none;
  margin-top: 0.35rem;
}
.order-panel textarea {
  min-height: 120px;
}
footer {
  background: #120016;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1rem;
}
footer .columns {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
footer h4 {
  margin-top: 0;
  color: #fff;
}
.lang-switcher {
  display: flex;
  gap: 0.5rem;
}
.lang-switcher a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
}
.lang-switcher a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.alert.success {
  background: rgba(46, 204, 113, 0.15);
  color: #1e8449;
}
.alert.error {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}
@media (max-width: 768px) {
  .navbar nav {
    display: none;
  }
  .hero {
    padding-top: 2.5rem;
  }
  .order-panel {
    padding: 1.5rem;
  }
}
/* ── Mapa de entrega ── */
.map-section {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}
.map-section label {
  display: block;
  margin-bottom: 0.5rem;
}
.map-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .4rem;
}
.map-label-row label { margin: 0; }
#btn-minha-localizacao {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  transition: background .2s;
}
#btn-minha-localizacao:hover { background: rgba(255,255,255,.28); }
#map-entrega {
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.25);
  margin-top: .2rem;
  cursor: crosshair;
}
#map-entrega.loading { opacity: .6; }
.map-address-display {
  margin-top: .5rem;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  min-height: 2rem;
  line-height: 1.5;
}
.map-address-display.placeholder { color: rgba(255,255,255,.45); font-style: italic; }
.map-coords {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-top: .2rem;
}
/* ── Busca de endereço no mapa ── */
.address-search-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .6rem;
}
.address-search-row input {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: .9rem;
  margin-top: 0;
}
.address-search-row button {
  padding: .7rem 1.2rem;
  border-radius: 12px;
  border: none;
  background: var(--primary, #e91e8c);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-size: .9rem;
  transition: opacity .2s;
}
.address-search-row button:hover { opacity: .85; }
.address-search-row button:disabled { opacity: .5; cursor: default; }
/* ════════════════════════════════════════════════════════
   CART + UI ADDITIONS
   ════════════════════════════════════════════════════════ */

/* ── Navbar actions ── */
.navbar-actions { display:flex; align-items:center; gap:.4rem; }

.cart-btn {
  position:relative; background:none; border:none; box-shadow:none;
  padding:.5rem .6rem; cursor:pointer; color:var(--text);
  font-size:1.35rem; line-height:1; border-radius:50%; transition:background .15s;
}
.cart-btn:hover { background:rgba(255,92,138,.1); }

.cart-badge {
  position:absolute; top:-2px; right:-2px;
  background:var(--primary); color:#fff; font-size:.62rem; font-weight:800;
  min-width:18px; height:18px; border-radius:999px; padding:0 4px;
  display:none; align-items:center; justify-content:center;
  border:2px solid #fff;
}
.cart-badge.visible { display:flex; }

/* ── Hamburger ── */
.hamburger-btn {
  display:none; background:none; border:none; box-shadow:none;
  padding:.5rem; cursor:pointer; flex-direction:column; gap:5px;
}
.hamburger-btn span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; }

/* ── Mobile menu ── */
.mobile-menu-overlay {
  display:none; position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.45);
}
.mobile-menu-overlay.open { display:block; }
.mobile-menu-panel {
  background:#fff; width:min(280px,85vw); height:100vh;
  position:absolute; right:0; top:0; padding:1.5rem;
  display:flex; flex-direction:column; gap:.25rem;
  box-shadow:-4px 0 30px rgba(0,0,0,.15);
}
.mobile-menu-panel .mm-logo { font-weight:700; color:var(--primary); font-size:1.1rem; margin-bottom:1rem; }
.mobile-menu-panel a {
  display:block; font-size:1rem; font-weight:600; color:var(--text);
  padding:.7rem 0; border-bottom:1px solid #f0f0f0;
}
.mobile-menu-close {
  position:absolute; top:1rem; right:1rem;
  background:none; border:none; box-shadow:none;
  font-size:1.3rem; color:#888; cursor:pointer; padding:.25rem;
}

/* ── Cart overlay + panel ── */
.cart-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:50;
}
.cart-overlay.open { display:block; }

.cart-panel {
  position:fixed; top:0; right:0; height:100vh; width:min(420px,100vw);
  background:#fff; z-index:51; display:flex; flex-direction:column;
  box-shadow:-8px 0 48px rgba(0,0,0,.18);
  transform:translateX(100%); transition:transform 280ms cubic-bezier(.4,0,.2,1);
}
.cart-panel.open { transform:none; }

.cart-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem 1.5rem; border-bottom:1px solid #f0eff3;
}
.cart-head h3 { margin:0; font-size:1rem; color:var(--text); }
.cart-head-close {
  background:none; border:none; box-shadow:none;
  font-size:1.4rem; color:#aaa; cursor:pointer; line-height:1; padding:.2rem .4rem;
}
.cart-head-close:hover { color:var(--primary); }

.cart-body { flex:1; overflow-y:auto; padding:1rem 1.5rem; display:flex; flex-direction:column; gap:.9rem; }

.cart-empty-state { text-align:center; padding:3rem 1rem; color:var(--muted); }
.cart-empty-state .ce-icon { font-size:2.8rem; margin-bottom:.6rem; }
.cart-empty-state p { margin:.4rem 0; font-size:.9rem; }
.cart-empty-state a { color:var(--primary); font-weight:600; text-decoration:underline; cursor:pointer; }

.cart-item { display:flex; gap:.75rem; align-items:flex-start; padding-bottom:.9rem; border-bottom:1px solid #f5f0f7; }
.cart-item:last-child { border-bottom:none; padding-bottom:0; }
.cart-item img { width:68px; height:68px; border-radius:10px; object-fit:cover; background:#faf8fb; flex-shrink:0; }
.cart-item-body { flex:1; min-width:0; }
.cart-item-name { font-size:.83rem; font-weight:700; color:var(--text); margin-bottom:.15rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item-sub { font-size:.75rem; color:var(--muted); margin-bottom:.4rem; }
.cart-item-prices { font-size:.82rem; margin-bottom:.45rem; }
.cart-item-prices .pyg { font-weight:700; color:var(--secondary); }
.cart-item-prices .usd { color:var(--muted); margin-left:.35rem; }
.cart-qty-row { display:flex; align-items:center; gap:.45rem; }
.cqb {
  background:#f4eef8; border:none; box-shadow:none;
  width:26px; height:26px; border-radius:7px; font-size:.95rem;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--secondary); padding:0; transition:background .15s;
}
.cqb:hover { background:#e8d6f5; }
.cqb.remove { background:#fdf0f0; color:#dc2626; }
.cqb.remove:hover { background:#fce0e0; }
.cart-qty-num { font-weight:700; font-size:.9rem; min-width:20px; text-align:center; color:var(--text); }

.cart-foot {
  padding:1.1rem 1.5rem; border-top:1px solid #f0eff3; background:#fff;
}
.cart-subtotals { margin-bottom:.9rem; }
.cart-row { display:flex; justify-content:space-between; font-size:.83rem; padding:.18rem 0; color:var(--muted); }
.cart-row.total { font-size:1rem; font-weight:700; color:var(--text); margin-top:.35rem; padding-top:.45rem; border-top:1px solid #f0eff3; }
.cart-row.total .amount-pyg { color:var(--secondary); }
.btn-cart-checkout {
  width:100%; border-radius:14px; padding:.85rem; font-size:.95rem;
  display:flex; align-items:center; justify-content:center; gap:.5rem;
}
.btn-keep-shopping {
  width:100%; margin-top:.6rem; border-radius:14px; padding:.75rem;
  background:transparent; color:var(--secondary); border:1.5px solid #e5dbe9;
  box-shadow:none; font-size:.88rem; font-weight:600;
}
.btn-keep-shopping:hover { background:#faf6fb; box-shadow:none; transform:none; }

/* ── Dual price on product cards ── */
.price-block { display:flex; flex-direction:column; gap:.1rem; }
.price-pyg { font-size:1.55rem; font-weight:700; color:var(--secondary); line-height:1.15; }
.price-usd { font-size:.8rem; color:var(--muted); }

/* ── Product action buttons ── */
.product-actions { display:flex; align-items:center; gap:.5rem; margin-top:auto; padding-top:.25rem; }
.card-qty-ctrl {
  display:flex; align-items:center; gap:.3rem;
  background:#f4eef8; border-radius:10px; padding:.25rem .4rem; flex-shrink:0;
}
.card-qty-ctrl .cqb { width:24px; height:24px; border-radius:7px; font-size:.9rem; background:#ecdaf5; }
.card-qty-ctrl .cqb:hover { background:#dbbef0; }
.card-qty-ctrl .cart-qty-num { min-width:22px; font-size:.88rem; }
.btn-add-cart {
  flex:1; border-radius:14px; padding:.65rem .9rem; font-size:.82rem;
  display:flex; align-items:center; justify-content:center; gap:.35rem;
}
.btn-add-cart.added { background:#16a34a; }

/* ── Checkout cart summary (inside form) ── */
.checkout-summary {
  grid-column:1/-1;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius:14px; padding:1rem 1.15rem;
}
.checkout-summary-title {
  font-size:.72rem; text-transform:uppercase; letter-spacing:.08em;
  opacity:.65; margin-bottom:.65rem; font-weight:700;
}
.cs-item { display:flex; justify-content:space-between; font-size:.83rem; padding:.28rem 0; border-bottom:1px solid rgba(255,255,255,.07); }
.cs-item:last-child { border-bottom:none; }
.cs-item-name { opacity:.9; flex:1; padding-right:.5rem; }
.cs-item-price { font-weight:600; white-space:nowrap; }
.cs-total { display:flex; justify-content:space-between; font-weight:700; font-size:.95rem; margin-top:.6rem; padding-top:.6rem; border-top:1px solid rgba(255,255,255,.14); }

.checkout-empty-warn {
  grid-column:1/-1; background:rgba(251,191,36,.12);
  border:1px solid rgba(251,191,36,.3); border-radius:12px;
  padding:.75rem 1rem; color:#fde68a; font-size:.82rem; text-align:center;
}

/* ── Grand total display ── */
.checkout-grand-total-row {
  grid-column:1/-1; background:rgba(255,255,255,.06);
  border-radius:12px; padding:.75rem 1rem;
  display:flex; justify-content:space-between; align-items:center;
}
.checkout-grand-total-row span { font-size:.82rem; opacity:.75; }
.checkout-grand-total-row strong { font-size:1.05rem; color:#fff; }

/* ── Toast notification ── */
.bt-toast {
  position:fixed; bottom:1.5rem; left:50%;
  transform:translateX(-50%) translateY(120px);
  background:var(--secondary); color:#fff; padding:.65rem 1.4rem;
  border-radius:999px; font-size:.82rem; font-weight:600; z-index:200;
  transition:transform 260ms ease; pointer-events:none; white-space:nowrap;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
.bt-toast.show { transform:translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar nav { display:none !important; }
  .hamburger-btn { display:flex; }
}
