/* ===== Variáveis e reset ===== */
:root {
  --bg-page: #F8F8F8;
  --bg-content: #FFFFFF;
  --primary: #E91E63;
  --primary-hover: #c2185b;
  --text-main: #333333;
  --text-secondary: #777777;
  --text-cta: #FFFFFF;
  --border: #DDDDDD;
  --badge-frete-bg: #E0F2F7;
  --badge-frete-text: #0288D1;
  --badge-off-bg: #FFEBEE;
  --badge-off-text: #D32F2F;
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Header ===== */
.header {
  background: var(--bg-content);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
  max-width: 280px;
}

.header-search .search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.icon-search::before { content: '🔍'; font-size: 14px; }
.header-search { position: relative; }
.header-search .icon-search {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

.icon-share::before { content: '↗'; }
.icon-heart::before { content: '♥'; }
.icon-cart::before { content: '🛒'; }
.icon-list::before { content: '☰'; }

.header-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-cta);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.35);
}

/* ===== Navigation ===== */
.main-navigation {
  background: var(--bg-content);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--badge-off-bg);
}

.nav-link.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-menu-btn {
  margin-left: auto;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
}

/* ===== Banner promo ===== */
.banner-promo {
  background: #FEEBCA;
  color: #333;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.banner-icon { color: var(--primary); }

/* ===== PÁGINA INICIAL - Layout lista (prints) ===== */
.header-home .header-inner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.header-home .icon-back { font-size: 1.5rem; line-height: 1; padding: 4px 8px; text-decoration: none; color: var(--text-main); }
.header-home .header-search { flex: 1; min-width: 0; max-width: none; }
.header-home .icon-cart-wrap { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; font-weight: 700; color: #fff; background: #D32F2F; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.store-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg-content); border-bottom: 1px solid var(--border);
}
.store-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.store-name { flex: 1; font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.store-buttons { display: flex; flex-direction: column; gap: 6px; }
.store-buttons .btn { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.btn-secondary { background: #E0E0E0; color: var(--text-main); }
.btn-secondary:hover { background: #d0d0d0; }
.main-tabs { display: flex; background: var(--bg-content); border-bottom: 1px solid var(--border); }
.tab-link {
  flex: 1; padding: 12px 8px; text-align: center; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.tab-link:hover { color: var(--text-main); }
.tab-link.tab-active { color: var(--text-main); font-weight: 700; border-bottom-color: var(--text-main); }
.filter-tabs {
  display: flex; align-items: center; gap: 4px; padding: 10px 16px;
  background: var(--bg-content); border-bottom: 1px solid var(--border);
}
.filter-link { padding: 6px 12px; font-size: 13px; color: var(--text-secondary); border-radius: 6px; transition: color 0.2s, background 0.2s; }
.filter-link:hover, .filter-link.active { color: var(--text-main); background: var(--bg-page); font-weight: 600; }
.filter-view-btn { margin-left: auto; padding: 6px 10px; border: none; background: none; color: var(--text-secondary); font-size: 16px; }
.page-home .main { padding: 0; background: var(--bg-content); }
.product-list { padding: 0; }
.product-row {
  display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); align-items: flex-start;
}
.product-row-image {
  flex: 0 0 120px; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--bg-page);
}
.product-row-image img { width: 100%; height: 100%; object-fit: cover; }
.product-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.product-row-info .product-name { font-size: 15px; font-weight: 700; margin: 0; }
.product-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.product-row-info .badge-off { position: static; background: var(--badge-off-bg); color: var(--badge-off-text); border: 1px solid rgba(211,47,47,0.3); }
.product-row-info .badge-frete { background: var(--badge-frete-bg); color: var(--badge-frete-text); border: 1px solid rgba(2,136,209,0.3); }
.product-row-info .product-meta { font-size: 13px; color: var(--text-secondary); margin: 0; }
.meta-sep { margin: 0 4px; }
.product-row-info .product-prices { margin: 2px 0 8px; }
.product-row-info .price-current { font-size: 1.15rem; font-weight: 700; }
.product-row-actions { display: flex; align-items: center; gap: 10px; }
.btn-cart-circle {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: #FFEBEE; color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s;
}
.btn-cart-circle:hover { background: #FFCDD2; }
.product-row-actions .btn-buy {
  flex: 1; text-align: center; padding: 10px 16px; font-size: 14px;
  background: var(--primary); color: var(--text-cta); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.product-row-actions .btn-buy:hover { background: var(--primary-hover); color: #fff; }

/* ===== Main / Product grid ===== */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px;
  background: var(--bg-content);
  min-height: 60vh;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-page);
}

.product-image-wrap a {
  display: block;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.badge-off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--badge-off-bg);
  color: var(--badge-off-text);
}

.badge-frete {
  background: var(--badge-frete-bg);
  color: var(--badge-frete-text);
  margin-top: 4px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.product-name a {
  color: inherit;
}

.product-name a:hover {
  color: var(--primary);
}

.product-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating { color: #333; }

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.price-current {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.price-old {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: line-through;
}

.btn-buy {
  margin-top: 10px;
  width: 100%;
  background: var(--primary);
  color: var(--text-cta);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-buy:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.35);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.is-open .modal-popup {
  transform: translateY(0);
}

.modal-popup {
  background: var(--primary);
  color: var(--text-cta);
  padding: 28px 32px;
  border-radius: 16px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 1.25rem;
  margin: 0 0 12px;
  opacity: 0.95;
}

.modal-text {
  font-size: 14px;
  margin: 0 0 16px;
  opacity: 0.9;
  line-height: 1.4;
}

.modal-timer {
  background: rgba(0,0,0,0.2);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
}

.btn-modal {
  width: 100%;
  background: var(--bg-content);
  color: var(--primary);
  padding: 14px;
}

.btn-modal:hover {
  background: #f5f5f5;
  color: var(--primary-hover);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-content);
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer p { margin: 0; }

/* ========== PÁGINA DE PRODUTO (layout mobile - prints) ========== */
.page-produto { background: #F5F5F5; padding-bottom: 80px; }

/* Desktop: tela reduzida, conteúdo centralizado */
.product-page-wrap {
  max-width: 100%;
  margin: 0 auto;
  background: #FFFFFF;
  min-height: 100vh;
}
@media (min-width: 768px) {
  .product-page-wrap {
    max-width: 480px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  }
}

.header-produto .header-inner {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
}
.header-produto .icon-back { font-size: 1.5rem; text-decoration: none; color: var(--text-main); padding: 4px 8px; }
.header-produto .header-spacer { flex: 1; }
.header-produto .icon-cart-wrap { position: relative; }
.header-produto .cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; font-weight: 700; color: #fff; background: #D32F2F; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.header-produto .icon-dots { font-size: 1.2rem; }
.header-icon-img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.hide { display: none !important; }
.coupon-strip a { display: inline-flex; align-items: center; gap: 6px; }
.coupon-icon { width: 18px; height: 18px; object-fit: contain; }

.product-gallery-section {
  position: relative; background: #F5F5F5; aspect-ratio: 1;
}
.product-gallery-section .gallery-main { width: 100%; height: 100%; }
.product-gallery-section .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
/* Swiper galeria do produto */
.product-swiper { width: 100%; height: 100%; }
.product-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; background: #F5F5F5; }
.product-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-section .gallery-indicator {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: #fff;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; z-index: 2; pointer-events: none;
}

.offer-strip {
  display: flex; align-items: stretch; background: #C62828; color: #fff; padding: 12px 16px; gap: 16px;
}
.offer-strip-left {
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
}
.offer-percent { font-size: 13px; opacity: 0.95; }
.offer-strip .offer-price { font-size: 1.5rem; font-weight: 700; }
.offer-price-old { font-size: 12px; text-decoration: line-through; opacity: 0.85; }
.offer-strip-right {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px;
}
.offer-flash { font-size: 13px; font-weight: 600; }
.offer-strip .offer-timer { font-size: 12px; opacity: 0.95; }

.coupon-strip {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 16px;
  background: #FFE0E8; color: #333; font-size: 14px;
}
.coupon-link { color: var(--primary); font-weight: 600; }

.product-detail-content { padding: 16px; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.product-detail-content .product-title { font-size: 1.25rem; font-weight: 700; margin: 0; color: #222; }
.product-title-row .icon-bookmark { padding: 4px; font-size: 1.2rem; }
.product-rating-row {
  display: flex; align-items: center; gap: 6px; font-size: 14px; color: #666; margin-bottom: 16px;
}
.rating-stars { color: #FFC107; }
.rating-num { font-weight: 600; color: #333; }
.rating-count { color: #666; }
.sold-count { margin-left: 4px; }
.social-icons-row { display: flex; gap: 12px; margin-bottom: 16px; }
.social-icons-row .social-icon { display: inline-block; }
.social-icons-row .social-icon img { width: 28px; height: 28px; object-fit: contain; }

.delivery-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #EEE; }
.delivery-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.delivery-icon { font-size: 1rem; }
.delivery-free { color: #2E7D32; font-weight: 500; }
.delivery-date { color: #333; }
.delivery-fee-old { font-size: 13px; color: #999; text-decoration: line-through; margin-top: 4px; }
.returns-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: #333; }
.returns-icon { color: #2E7D32; font-weight: 700; }

.color-options {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.color-options-icon { font-size: 1rem; color: #666; }
.color-thumbnails { display: flex; gap: 8px; }
.color-thumb {
  width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f0f0f0;
}
.color-thumb.active { border-color: #333; }
.color-thumb img { width: 100%; height: 100%; object-fit: cover; }
.color-options-text { font-size: 13px; color: #666; }
.color-options-arrow { font-size: 1.2rem; color: #999; margin-left: auto; }

.protection-banner {
  background: #FFFBE6; border: 1px solid #FFE082; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
}
.protection-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.protection-icon { font-size: 1.2rem; }
.protection-title { font-size: 1rem; font-weight: 700; margin: 0; color: #333; }
.protection-arrow { margin-left: auto; font-size: 1.2rem; color: #666; }
.protection-list { margin: 0; padding-left: 20px; font-size: 14px; color: #555; line-height: 1.8; }
.protection-list li::marker { content: '✓ '; color: #2E7D32; }

.reviews-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; color: #333; }
.reviews-summary { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.reviews-rating-num { font-size: 1.5rem; font-weight: 700; color: #333; }
.reviews-rating-label { font-size: 1rem; color: #666; }
.reviews-stars { color: #FFC107; }
.review-card {
  padding: 14px 0; border-bottom: 1px solid #EEE;
}
.review-header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; color: #999; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.review-author { font-weight: 600; font-size: 14px; display: block; }
.review-date { font-size: 12px; color: #2E7D32; }
.review-stars { color: #FFC107; font-size: 14px; margin-bottom: 6px; }
.review-text { font-size: 14px; line-height: 1.5; color: #333; margin: 0; }
.reviews-section .review-images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 10px;
}
.reviews-section .review-images img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
}

.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #FFF; border-top: 1px solid #EEE;
  display: flex; align-items: center; padding: 10px 12px; gap: 8px; z-index: 100;
}
@media (min-width: 768px) {
  .page-produto .bottom-bar { left: 50%; width: 480px; margin-left: -240px; }
}
.bottom-bar-item {
  display: flex; flex-direction: column; align-items: center; padding: 4px 8px; font-size: 11px; color: #666; text-decoration: none;
}
.bottom-icon { font-size: 1.2rem; margin-bottom: 2px; }
.btn-bottom {
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; font-family: inherit;
}
.btn-bottom.btn-cart { background: #F0F0F0; color: #333; flex: 1; }
.btn-bottom.btn-buy-now { background: #D32F2F; color: #fff; text-decoration: none; flex: 1; text-align: center; }
.btn-bottom.btn-buy-now:hover { background: #B71C1C; color: #fff; }

/* ===== Modal Compartilhar ===== */
.share-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.share-modal-overlay.is-open { opacity: 1; visibility: visible; }
.share-modal {
  background: #FFF; width: 100%; max-width: 480px; border-radius: 16px 16px 0 0;
  padding: 20px 20px 28px; transform: translateY(100%); transition: transform 0.3s ease;
}
.share-modal-overlay.is-open .share-modal { transform: translateY(0); }
.share-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.share-modal-title { font-size: 1.25rem; font-weight: 700; margin: 0; color: #222; }
.share-modal-close {
  width: 36px; height: 36px; border: none; background: #F0F0F0; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; color: #666; cursor: pointer; padding: 0;
}
.share-modal-options {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 24px; margin-bottom: 24px;
}
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 72px; color: #333; text-decoration: none;
}
.share-option img { width: 48px; height: 48px; object-fit: contain; }
.share-option-icon { font-size: 28px; }
.share-option-label { font-size: 12px; text-align: center; color: #666; }
.share-modal-cancel {
  width: 100%; padding: 14px; border: none; border-radius: 10px; background: #E8E8E8;
  font-size: 16px; font-weight: 600; color: #333; cursor: pointer; font-family: inherit;
}

/* ===== Modal Seleção Produto (Cor / Tamanho) ===== */
.product-select-modal .modal-popup {
  background: #FFF; color: #222; max-width: 420px; padding: 20px 20px 24px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.product-select-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border: none; background: #F0F0F0; border-radius: 50%; font-size: 1.5rem;
  line-height: 1; color: #666; cursor: pointer; padding: 0; z-index: 2;
}
.product-select-header {
  display: flex; gap: 12px; margin-bottom: 16px; padding-right: 40px;
}
.product-select-img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.product-select-info { flex: 1; min-width: 0; }
.product-select-badge {
  display: inline-block; background: #FFE0E8; color: var(--primary); padding: 2px 8px;
  border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 4px;
}
.product-select-price { font-size: 1.25rem; font-weight: 700; color: #C62828; display: block; }
.product-select-title { font-size: 14px; font-weight: 600; margin: 4px 0 2px; color: #333; }
.product-select-price-old { font-size: 12px; color: #999; text-decoration: line-through; }
.product-select-section { margin-bottom: 16px; }
.product-select-section-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: #222; }
.product-select-section-sub { font-size: 12px; color: #666; margin: 0 0 8px; }
.product-select-colors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px;
}
.product-select-color-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px; border: 2px solid #eee; border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 11px; color: #333; text-align: center;
}
.product-select-color-btn.selected { border-color: var(--primary); background: #FFF5F8; }
.product-select-color-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.product-select-sizes {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.product-select-size-btn {
  min-width: 44px; height: 44px; padding: 0 8px; border: 2px solid #eee;
  border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; color: #333;
}
.product-select-size-btn.selected { border-color: var(--primary); background: #FFF5F8; color: var(--primary); }
.product-select-size-btn:disabled {
  background: #f5f5f5; color: #bbb; cursor: not-allowed; text-decoration: line-through;
}
.product-select-buy {
  width: 100%; padding: 14px; background: #D32F2F; color: #fff; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px;
}
.product-select-buy:hover { background: #B71C1C; color: #fff; }

/* ===== Modal Carrinho e Checkout ===== */
.checkout-cart-modal .modal-popup,
.checkout-modal-overlay .modal-popup,
.pix-modal-overlay .modal-popup {
  background: #FFF; color: #222; max-width: 480px; width: 100%;
}
.checkout-cart-popup { padding: 0; max-height: 85vh; display: flex; flex-direction: column; }
.checkout-cart-header {
  display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eee;
}
.checkout-cart-back, .checkout-cart-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; color: #666;
}
.checkout-cart-title { flex: 1; text-align: center; margin: 0; font-size: 1.1rem; font-weight: 700; }
.checkout-cart-list { flex: 1; overflow-y: auto; padding: 16px; }
.checkout-cart-item {
  display: flex; gap: 12px; padding: 12px; background: #f9f9f9; border-radius: 10px; margin-bottom: 10px; align-items: flex-start;
}
.checkout-cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.checkout-cart-item-info { flex: 1; min-width: 0; }
.checkout-cart-item-name { font-weight: 600; margin: 0 0 4px; font-size: 14px; }
.checkout-cart-item-price, .checkout-cart-item-sub { margin: 2px 0; font-size: 13px; color: #555; }
.checkout-cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.checkout-cart-item-qty button { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; font-size: 16px; }
.checkout-cart-item-remove { background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; padding: 4px; }
.checkout-cart-footer { padding: 16px; border-top: 1px solid #eee; }
.checkout-cart-total-row { margin-bottom: 12px; font-size: 15px; }
.checkout-cart-finalize { width: 100%; padding: 14px; background: #D32F2F; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }
.checkout-cart-finalize:hover { background: #B71C1C; color: #fff; }
.checkout-cart-empty { text-align: center; color: #666; padding: 24px; margin: 0; }

.checkout-modal-popup { padding: 0; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.checkout-modal-header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eee; gap: 8px; }
.checkout-modal-back { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 4px; color: #333; }
.checkout-modal-title { flex: 1; margin: 0; font-size: 1.1rem; font-weight: 700; }
.checkout-modal-badge { font-size: 12px; color: #2E7D32; font-weight: 600; }
.checkout-modal-progress {
  display: flex; justify-content: center; gap: 12px; padding: 12px 16px; font-size: 13px; color: #666; border-bottom: 1px solid #eee;
}
.checkout-step.active { color: #333; font-weight: 700; }
.checkout-modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.checkout-label { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 4px; color: #333; }
.checkout-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; box-sizing: border-box; margin-bottom: 4px; }
.checkout-next-btn, .checkout-pay-btn {
  width: 100%; padding: 14px; margin-top: 16px; background: #1976D2; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.checkout-pay-btn { background: #D32F2F; }
.checkout-why-data, .checkout-secure { font-size: 13px; color: #666; margin: 12px 0; }
.checkout-cart-summary-inline .checkout-resumo-item { display: flex; gap: 12px; margin-bottom: 12px; padding: 10px; background: #f9f9f9; border-radius: 8px; }
.checkout-resumo-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.checkout-resumo-item-name { margin: 0 0 4px; font-weight: 600; font-size: 14px; }
.checkout-descontos-row { margin-bottom: 8px; font-size: 14px; }
.checkout-discount { color: #C62828; }
.checkout-fin-row { display: flex; justify-content: space-between; margin: 4px 0; font-size: 14px; }
.checkout-fin-row.discount { color: #C62828; }
.checkout-fin-total { font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.checkout-frete-title { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.checkout-frete-option {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 2px solid #eee; border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff;
}
.checkout-frete-option.selected { border-color: var(--primary); background: #FFF5F8; }
.checkout-frete-nome { font-weight: 600; }
.checkout-frete-prazo { font-size: 13px; color: #666; }
.checkout-frete-valor { margin-left: auto; font-weight: 600; }
.checkout-pix-info { background: #E3F2FD; padding: 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.checkout-resumo-final p { margin: 4px 0; }
.checkout-modal-footer {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid #eee; background: #f5f5f5;
}
.checkout-footer-label { font-size: 14px; }
.checkout-footer-total { font-weight: 700; font-size: 1.1rem; }
.checkout-cupom-timer { text-align: center; padding: 8px; background: #C62828; color: #fff; font-size: 13px; margin: 0; }

.pix-modal-popup { padding: 20px; }
.pix-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; }
.pix-modal-popup h3 { margin: 0 0 8px; }
.pix-modal-desc { font-size: 14px; color: #666; margin: 0 0 16px; }
.pix-qr-img { max-width: 220px; margin: 16px auto; display: block; }
.pix-copy-text { background: #f5f5f5; padding: 12px; border-radius: 8px; word-break: break-all; font-size: 12px; margin-bottom: 8px; }
.pix-copy-btn { width: 100%; padding: 12px; background: #32bcad; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.pix-link-btn { display: block; margin-top: 12px; padding: 14px; background: var(--primary); color: #fff; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 700; }

/* ========== PÁGINA DE PRODUTO (estilos antigos / desktop) ========== */
.page-produto .header-inner { justify-content: flex-end; }
.page-produto .header-search { order: -1; flex: 0 1 auto; }
.page-produto .brand { margin-right: auto; }

.product-detail-hero {
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px;
  gap: 24px;
}

@media (min-width: 992px) {
  .product-detail-hero {
    flex-direction: row;
    padding: 24px 20px;
  }
}

.product-image-gallery {
  flex: 0 0 100%;
  position: relative;
  background: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .product-image-gallery { flex: 0 0 45%; }
}

.product-image-gallery .gallery-main {
  aspect-ratio: 1;
  position: relative;
}

.product-image-gallery .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.offer-banner-sticky {
  background: linear-gradient(90deg, #FF3366, #FF6600);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-banner-sticky .offer-price { font-weight: 700; font-size: 1.1rem; }
.offer-banner-sticky .offer-timer { font-weight: 600; }

.product-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info-panel .product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #333333;
}

.product-info-panel .product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.product-info-panel .product-rating .stars { color: #FFCC00; }

.coupon-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.coupon-slider::-webkit-scrollbar { height: 6px; }
.coupon-slider::-webkit-scrollbar-thumb { background: #DDD; border-radius: 3px; }

.coupon-card {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 12px 16px;
  background: #F8F8F8;
  border: 1px solid #DDDDDD;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}

.coupon-card.highlight {
  background: #FFF0F5;
  border-color: #FFC0CB;
}

.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-ctas .btn-cart {
  background: #EEEEEE;
  border: 1px solid #CCCCCC;
  color: #333333;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
}

.product-ctas .btn-buy-now {
  background: linear-gradient(90deg, #FF3366, #FF0033);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.product-ctas .btn-cart:hover { background: #E0E0E0; }
.product-ctas .btn-buy-now:hover { opacity: 0.95; box-shadow: 0 4px 12px rgba(255,51,102,0.4); }

.shop-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #EEEEEE;
  border-bottom: 1px solid #EEEEEE;
}

.shop-info-card .shop-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #F0F0F0;
}

.shop-info-card .shop-name { font-weight: 600; }
.shop-info-card .shop-sold { font-size: 13px; color: #888; }
.shop-info-card .btn-follow {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid #DDD;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.shop-info-card .btn-follow:hover { border-color: var(--primary); color: var(--primary); }

.customer-protection {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.customer-protection .protection-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.customer-protection .protection-card .icon { font-size: 20px; }

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: #333;
}

.customer-reviews {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.reviews-summary .rating-big { font-size: 1.5rem; font-weight: 700; color: #333; }
.reviews-summary .rating-stars { color: #FFCC00; }
.reviews-summary .reviews-count { color: #666; font-size: 14px; }

.review-card {
  padding: 16px 0;
  border-bottom: 1px solid #EEEEEE;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card .review-author { font-weight: 500; font-size: 14px; }
.review-card .review-date { font-size: 12px; color: #888; }
.review-card .review-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.review-card .review-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.shop-products,
.recommended-products {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-mini-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #EEEEEE;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-mini-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.product-mini-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-mini-card .mini-info { padding: 12px; }
.product-mini-card .mini-name { font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.product-mini-card .mini-price { font-weight: 600; color: #333; }
.product-mini-card .mini-colors { display: flex; gap: 4px; margin-top: 6px; }
.product-mini-card .mini-colors span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #DDD;
}

.product-description {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px;
  border-top: 1px solid #EEEEEE;
}

.product-description .section-title { margin-bottom: 12px; }
.product-description .description-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}
