/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #193c53;
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ==============================
   PROMO BANNER - Rosa #eb2e7e
   ============================== */
.promo-banner {
  background: linear-gradient(310deg, #eb2e7e, #eb2e7e);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.promo-text strong {
  color: #fcd238;
}

/* ==============================
   HEADER
   ============================== */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(163, 175, 239, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.menu-btn { padding: 4px; display: flex; align-items: center; }

.logo img { height: 34px; width: auto; max-width: 140px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: #677279;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -7px;
  background: #eb2e7e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==============================
   MOBILE NAV
   ============================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transition: left 0.3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,0.1);
}
.mobile-nav.active { left: 0; }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
  font-size: 1rem;
  color: #193c53;
}

.close-nav { font-size: 28px; color: #677279; }

.mobile-nav ul { list-style: none; }
.mobile-nav li a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: #677279;
  border-bottom: 1px solid #f5f5f5;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}
.nav-overlay.active { display: block; }

/* ==============================
   BREADCRUMB
   ============================== */
.breadcrumb {
  padding: 10px 16px;
  font-size: 0.72rem;
  color: #677279;
  max-width: 480px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb a { color: #677279; }
.breadcrumb .sep { margin: 0 5px; color: #ccc; }
.breadcrumb .current { color: #aaa; }

/* ==============================
   GALLERY
   ============================== */
.gallery { max-width: 480px; margin: 0 auto; }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
}

.gallery-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img { width: 100%; height: 100%; object-fit: contain; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  z-index: 5;
}
.gallery-arrow.left { left: 8px; }
.gallery-arrow.right { right: 8px; }

.gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb {
  min-width: 52px;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb.active { border-color: #193c53; opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ==============================
   PRODUCT INFO
   ============================== */
.product-info {
  padding: 0 16px 16px;
  max-width: 480px;
  margin: 0 auto;
}

.bestseller-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef9e7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid #fde68a;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #193c53;
  margin-bottom: 4px;
}
.verified-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.rating-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.rating-text {
  font-size: 0.8rem;
  color: #677279;
}

.discount-badge {
  display: inline-block;
  background: #eb2e7e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ==============================
   PRICING
   ============================== */
.pricing {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}
.original-price { text-decoration: line-through; color: #999; font-size: 0.85rem; }
.current-price { font-size: 1.5rem; font-weight: 700; color: #193c53; }
.savings { color: #16a34a; font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; }
.installments { font-size: 0.82rem; color: #677279; }

/* ==============================
   VIEWERS
   ============================== */
.viewers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #ed5050;
  font-weight: 500;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #ed5050;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(237, 80, 80, 1);
  transform: scale(1);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 80, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(237, 80, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(237, 80, 80, 0); }
}

/* ==============================
   VARIANT SELECTORS
   ============================== */
.variant-section { margin-bottom: 14px; }
.variant-label { display: block; font-size: 0.82rem; color: #677279; margin-bottom: 8px; }
.variant-label strong { color: #193c53; }

.color-options { display: flex; gap: 8px; }

.color-swatch {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  transition: border-color 0.2s;
}
.color-swatch.active { border-color: #193c53; }
.color-swatch img { width: 100%; height: 100%; object-fit: cover; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #677279;
  background: #fff;
  transition: all 0.15s;
}
.size-btn.active { border-color: #193c53; background: #193c53; color: #fff; }

/* ==============================
   BUY BUTTON - #00aa00 + PULSE
   ============================== */
.buy-section { margin: 16px 0 12px; }

.buy-btn {
  width: 100%;
  padding: 15px 20px;
  background: #00aa00;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.buy-btn:active { background: #009900; }

/* Pulse/glow animation no botao */
.pulse-btn {
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 170, 0, 0.6); }
  50%  { box-shadow: 0 0 0 12px rgba(0, 170, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 170, 0, 0); }
}

/* ==============================
   PAYMENT ICONS
   ============================== */
.payment-methods {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 0;
}

.pix-logo {
  width: 120px;
  height: auto;
}

/* ==============================
   SHIPPING BAR
   ============================== */
.shipping-bar {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.shipping-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #677279;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.correios-icon { height: 22px; width: auto; }

.frete-badge {
  background: #16a34a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-left: auto;
  white-space: nowrap;
}

.shipping-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #333;
}

.shipping-location svg {
  flex-shrink: 0;
}

/* ==============================
   TRUST BADGES
   ============================== */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #677279;
}

.trust-item svg { flex-shrink: 0; }

/* ==============================
   REVIEWS
   ============================== */
.reviews-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  border-top: 6px solid #f5f5f5;
}

.reviews-header {
  margin-bottom: 16px;
}

.reviews-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #193c53;
  margin-bottom: 8px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reviews-stars .star {
  font-size: 1.1rem;
  color: #d1d5db;
}

.reviews-stars .star.filled {
  color: #f59e0b;
}

.reviews-avg {
  font-size: 0.85rem;
  font-weight: 700;
  color: #193c53;
}

.reviews-count {
  font-size: 0.78rem;
  color: #677279;
}

/* Galeria de fotos dos clientes */
.reviews-photos {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.reviews-photos::-webkit-scrollbar { display: none; }

.rp-item {
  min-width: 90px;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.rp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lista de reviews */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eb2e7e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  min-width: 0;
}

.review-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #193c53;
  line-height: 1.2;
}

.review-stars-sm {
  font-size: 0.8rem;
  color: #f59e0b;
  letter-spacing: 1px;
}

.review-stars-sm .star-half {
  color: #d1d5db;
}

.review-date {
  font-size: 0.68rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.review-badge.verified {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.review-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 10px;
}

.review-img {
  border-radius: 8px;
  overflow: hidden;
  max-width: 200px;
}

.review-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   PRODUCT DESCRIPTION
   ============================== */
.product-description {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px;
}

.desc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #193c53;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.desc-images { display: flex; flex-direction: column; gap: 0; }
.desc-images img { width: 100%; }

.guarantee-section {
  margin-top: 20px;
  padding: 20px 16px;
  background: #f9fafb;
  border-radius: 6px;
  text-align: center;
}
.guarantee-img { max-width: 140px; margin: 0 auto 10px; }
.guarantee-section h3 { font-size: 0.9rem; color: #193c53; margin-bottom: 6px; font-weight: 700; }
.guarantee-section p { font-size: 0.8rem; color: #677279; line-height: 1.6; }

.secure-section { margin-top: 12px; text-align: center; }
.secure-img { max-width: 280px; margin: 0 auto; }

/* ==============================
   STICKY BUY BAR
   ============================== */
.sticky-buy {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 90;
  transition: bottom 0.3s ease;
}
.sticky-buy.visible { bottom: 0; }

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}

.sticky-price { display: flex; flex-direction: column; }
.sticky-current { font-size: 1.05rem; font-weight: 700; color: #193c53; }
.sticky-installment { font-size: 0.68rem; color: #677279; }

.sticky-btn {
  padding: 12px 20px;
  background: #00aa00;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 30px 16px 90px;
}

.footer-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.footer-logo { margin-bottom: 18px; }
.footer-logo img { height: 32px; margin: 0 auto; opacity: 0.85; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.footer-links a { font-size: 0.78rem; color: #888; }

.footer-contact { margin-bottom: 14px; }
.footer-contact p { font-size: 0.78rem; color: #777; margin-bottom: 2px; }

.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }

.footer-copy {
  border-top: 1px solid #333;
  padding-top: 14px;
  font-size: 0.68rem;
  color: #555;
}

/* ==============================
   DESKTOP - centraliza 480px
   ============================== */
@media (min-width: 481px) {
  body { background: #f0f0f0; }
  .promo-banner { max-width: 480px; margin: 0 auto; }
  .header {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
  }
  .product-page, .product-description { background: #fff; }
  .footer { max-width: 480px; margin: 0 auto; }
  .sticky-buy { max-width: 480px; left: 50%; transform: translateX(-50%); }
}
