/* =============================================
   PANINI OFICIAL – CSS Mobile-First
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a7a2e;
  --green-dark: #145e22;
  --green-light: #e8f5eb;
  --navy: #0b1e33;
  --text: #1a1a1a;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #f8f9fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 1px 8px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---- ANNOUNCEMENT BAR ---- */
.announce-bar {
  background: #111;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px 40px 8px 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
}
.announce-inner svg { opacity: 0.6; }
.announce-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.announce-close:hover { color: rgba(255,255,255,0.8); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo-link { flex-shrink: 0; }
.nav-logo { height: 38px; width: auto; object-fit: contain; }

.nav-links {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-whatsapp { color: var(--green); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cart {
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.nav-cart:hover { color: var(--text); }
.nav-cart { position: relative; }
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.btn-entrar {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  transition: var(--transition);
  letter-spacing: -0.1px;
}
.btn-entrar:hover { color: #000; background: #f3f4f6; }

.btn-cadastrar {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: #111;
  padding: 7px 16px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-cadastrar:hover { background: #333; }

/* ---- HERO BANNER ---- */
.hero-banner { width: 100%; line-height: 0; max-width: 520px; margin: 0 auto; }
.hero-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 280px;
}

/* ---- BENEFITS STRIP ---- */
.benefits-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.benefits-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #374151;
}
.benefit-icon-green  { background: #f3f4f6; color: #374151; }
.benefit-icon-yellow { background: #f3f4f6; color: #374151; }
.benefit-icon-blue   { background: #f3f4f6; color: #374151; }
.benefit-icon-purple { background: #f3f4f6; color: #374151; }

.benefit strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.benefit span {
  font-size: 10px;
  color: var(--text-light);
}

/* ---- PRODUCTS SECTION ---- */
.products-section {
  background: var(--white);
  padding: 16px 0 40px;
}
.products-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px;
}
.products-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.products-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  transition: var(--transition);
}
.filter-tab:hover { border-color: var(--green); color: var(--green); }
.filter-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---- PRODUCT GRID ---- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #ebebeb;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.11);
  transform: translateY(-2px);
}

.product-img-wrap {
  background: #fff;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-img-label { display: none; }

.product-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.product-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 3px;
}
.product-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-old-price {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 5px;
}
.product-pix-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
}
.product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
}
.btn-comprar {
  margin-top: auto;
  padding-top: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 0;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}
.btn-comprar:hover { background: var(--green-dark); color: var(--white); }
.btn-comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.product-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 2px 0;
}
.product-stars svg { flex-shrink: 0; }
.stars-count {
  font-size: 10px;
  color: #6b7280;
  margin-left: 2px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 32px 0 16px;
}
.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 10px; }
.footer-desc { font-size: 11px; line-height: 1.6; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 12px; transition: var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.pay-badge {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
}
.pay-badge-svg {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}
.footer-small { font-size: 11px; }
.footer-bottom {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-align: center;
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-btn:hover {
  background: #20b858;
  transform: scale(1.08);
}

/* ---- HIDDEN ---- */
.hidden { display: none !important; }

/* =============================================
   TABLET+ (640px+)
   ============================================= */
@media (min-width: 640px) {
  .nav-inner, .products-inner, .benefits-inner, .footer-inner, .hero-banner { max-width: 640px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .benefits-inner { grid-template-columns: repeat(4, 1fr); }
  .product-name { font-size: 12px; }
}

/* =============================================
   DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .nav-inner, .products-inner, .benefits-inner, .footer-inner, .hero-banner { max-width: 1100px; }
  .nav-links { display: flex; }
  .hero-banner-img { max-height: 400px; }
  .products-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
