: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; }