/* ========== RESET & VARIÁVEIS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink-50:  #fbeaf0;
  --pink-100: #f4c0d1;
  --pink-200: #ed93b1;
  --pink-400: #d4537e;
  --pink-600: #993556;
  --pink-800: #72243e;
  --pink-900: #4b1528;
  --coral:    #d85a30;
  --amber:    #ef9f27;
  --text:     #2c1a22;
  --text-mid: #6b3d51;
  --text-muted: #a07088;
  --bg:       #fff;
  --bg-soft:  #fdf5f8;
  --border:   rgba(180, 80, 120, 0.15);
  --border-hover: rgba(180, 80, 120, 0.35);
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 12px rgba(180,80,120,0.08);
  --shadow-md: 0 6px 28px rgba(180,80,120,0.14);

  /* Aliases para compatibilidade com admin */
  --primary-color: #993556;
  --primary-light: #d4537e;
  --white-color: #fff;
  --dark-color: #2c1a22;
  --light-color: #fdf5f8;
  --border-color: rgba(180, 80, 120, 0.2);
  --shadow: 0 4px 20px rgba(180,80,120,0.12);
  --shadow-soft: 0 2px 12px rgba(180,80,120,0.08);
  --success-color: #27ae60;
  --danger-color: #e74c3c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== NAV ========== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--pink-600);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-brand span { color: var(--pink-200); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--pink-600); }

.btn-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--pink-600);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 9px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-cart:hover { background: var(--pink-800); transform: translateY(-1px); }

.cart-count {
  background: var(--amber);
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 40px 80px;
  text-align: center;
  background: linear-gradient(145deg, #fbeaf0 0%, #f4c0d1 45%, #fbeaf0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(213,83,126,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(237,147,177,0.18) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.8);
  border: 0.5px solid var(--pink-200);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-600);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  color: var(--pink-800);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--pink-400);
}

.hero p {
  font-size: 15px;
  font-weight: 300;
  color: var(--pink-600);
  max-width: 500px;
  margin: 0 auto 32px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: flex;
  background: #fff;
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 22px 16px;
  border-right: 0.5px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat .num {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-600);
  line-height: 1;
  letter-spacing: -0.3px;
}

.stat .lbl {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== SECTION ========== */
.section {
  padding: 44px 40px;
  background: #fff;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

/* ========== CATEGORY PILLS ========== */
.categories {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  border: 0.5px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  background: #fff;
  transition: all 0.2s;
  user-select: none;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--pink-50);
  color: var(--pink-600);
  border-color: var(--pink-200);
}

/* ========== PRODUCTS GRID & CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (min-width: 1400px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── MOLDURA DO CARD ── */
.product-card {
  background: #fff;
  border: 1.5px solid #e2c4ce;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(120, 40, 70, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--pink-400);
  box-shadow: 0 6px 24px rgba(120, 40, 70, 0.14);
  transform: translateY(-2px);
}

/* ── ÁREA DA IMAGEM ── */
.product-img {
  height: 175px;
  background: var(--pink-50);
  border-bottom: 1.5px solid #e2c4ce;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img > i {
  font-size: 44px;
  color: var(--pink-200);
}

/* carousel preenche a área de imagem */
.product-img .produto-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: unset;
  border-radius: 0;
}

.product-img .carousel-slide img,
.product-img .produto-link-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.produto-link-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BADGE ── */
.badge-product {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  isolation: isolate;
}

.badge-hot  { background: var(--coral);    color: #fff; }
.badge-new  { background: var(--pink-600); color: #fff; }
.badge-luxo { background: var(--pink-800); color: #fff; }
.badge-off  { background: #1a7a3f;         color: #fff; }

/* ── INFO DO CARD ── */
.product-info {
  padding: 13px 14px 14px;
}

.product-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name:hover { color: var(--pink-600); }

/* descrição oculta nos cards */
.product-desc { display: none; }

/* estrelas */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.product-rating-row .rating-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

/* vendidos */
.product-sales-row {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* preço antigo */
.product-old-price {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.product-old-price s {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-off-inline {
  background: #1e8c4a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0;
}

/* preço principal */
.product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-600);
  margin-bottom: 3px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.product-installment {
  font-size: 11px;
  color: #27ae60;
  font-weight: 400;
  margin-bottom: 10px;
}

/* rodapé do card */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #f0e0e6;
  padding-top: 10px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pink-600);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add:hover { background: var(--pink-800); }
.btn-add:disabled { background: #ccc; cursor: not-allowed; }

/* ========== BANNER REVENDEDORA ========== */
.banner-reseller {
  margin: 0 40px 44px;
  background: linear-gradient(135deg, var(--pink-800) 0%, var(--pink-600) 60%, var(--pink-400) 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.banner-reseller::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.banner-reseller::after {
  content: '';
  position: absolute;
  bottom: -50px; right: 80px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.banner-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.banner-text p {
  font-size: 13px;
  color: var(--pink-100);
  font-weight: 300;
}

.btn-white {
  background: #fff;
  color: var(--pink-800);
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: inline-block;
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.2); }

/* ========== TRUST BAR ========== */
.trust-row {
  display: flex;
  background: #fff;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px;
  border-right: 0.5px solid var(--border);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--pink-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon i { font-size: 22px; color: var(--pink-600); }

.trust-text .t1 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.trust-text .t2 { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 28px 40px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-soft);
}

footer strong { color: var(--pink-600); }

/* ========== BUTTONS (global) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--pink-600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(153,53,86,0.3);
}

.btn-primary:hover {
  background: var(--pink-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(153,53,86,0.4);
}

.btn-outline {
  background: rgba(255,255,255,0.7);
  color: var(--pink-600);
  border: 1.5px solid var(--pink-200);
}

.btn-outline:hover {
  background: #fff;
  border-color: var(--pink-400);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #888;
  color: #fff;
}

.btn-secondary:hover { background: #666; }

.btn-danger {
  background: var(--danger-color);
  color: #fff;
}

.btn-danger:hover { background: #c0392b; }

.btn-success {
  background: var(--success-color);
  color: #fff;
}

.btn-sm { padding: 0.45rem 1rem; font-size: 12px; border-radius: 16px; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ========== FORMS (global) ========== */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d4b0bc;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(120,40,70,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(212,83,126,0.12), inset 0 1px 3px rgba(120,40,70,0.04);
}

.form-group input[type="file"] { width: 100%; padding: 0.5rem; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="checkbox"] { width: auto; margin-right: 8px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.help-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== ALERTS ========== */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 0.75rem 0;
  font-size: 13px;
}

.alert-success { background: #d4edda; color: #155724; border-left: 3px solid var(--success-color); }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; border-left: 3px solid var(--danger-color); }
.alert-info { background: var(--pink-50); color: var(--pink-800); border-left: 3px solid var(--pink-400); }

/* ========== NOTIFICATION ========== */
.notification {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink-800);
  color: #fff;
  padding: 11px 24px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  transition: bottom 0.3s ease;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.notification.show { bottom: 24px; }

/* ========== LOGIN ========== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(145deg, var(--pink-50), var(--pink-100));
}

.login-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
}

.login-box h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: var(--pink-800);
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-footer { text-align: center; margin-top: 1rem; font-size: 12px; color: var(--text-muted); }
.login-footer a { color: var(--pink-600); text-decoration: none; }

/* ========== CARRINHO ========== */
.carrinho-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  position: relative;
}

.carrinho-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.item-info h4 { font-size: 14px; font-weight: 500; }
.item-info p  { font-size: 13px; color: var(--pink-600); font-weight: 600; }

.item-quantidade {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-quantidade button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.item-quantidade button:hover { background: var(--pink-50); border-color: var(--pink-400); }
.item-quantidade span { font-weight: 600; min-width: 24px; text-align: center; }
.item-subtotal { text-align: right; font-weight: 600; color: var(--pink-600); }

.btn-remover {
  background: none;
  color: #bbb;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px;
}

.btn-remover:hover { color: var(--danger-color); }

.total-section, .finalizar-section {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}

.total-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.total-section h3 #total-valor {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--pink-600);
  display: block;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.finalizar-section h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  margin-bottom: 1rem;
}

.info-text { font-size: 13px; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ========== PRODUTO DETALHE ========== */
.produto-detalhe { padding: 2rem 0; }

.produto-detalhe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 1rem;
}

.produto-detalhe-imagem {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pink-50);
}

.produto-detalhe-imagem img {
  width: 100%;
  object-fit: contain;
}

.produto-detalhe-info h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.preco-detalhe {
  background: var(--pink-50);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
}

.preco-detalhe .valor {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--pink-600);
}

.quantidade-controls { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.produto-detalhe-actions { margin-top: 1.5rem; }
.produto-detalhe-actions .btn-lg { width: 100%; justify-content: center; }

/* ========== PRODUTO CAROUSEL DETALHE ========== */
.produto-carousel-detalhe {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--pink-50);
  aspect-ratio: 1;
}

.produto-carousel-detalhe .carousel-btn { width: 40px; height: 40px; }
.produto-carousel-detalhe .carousel-btn svg { width: 20px; height: 20px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links a { display: none; }
  .hero { padding: 52px 24px 60px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 28px 20px; }
  .container { padding: 0 16px; }
  .banner-reseller { margin: 0 20px 32px; padding: 28px 24px; }
  .stats-row .stat { min-width: 50%; }
  .trust-item { min-width: 50%; }
  .produto-detalhe-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
  .produto-detalhe-info h1 { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .carrinho-item { grid-template-columns: 70px 1fr auto; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .banner-reseller { flex-direction: column; align-items: flex-start; }
}

/* ========== ADMIN STYLES ========== */
.admin-container {
    padding: 2rem 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--white-color);
    padding: 1rem;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.admin-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.quick-actions h2 { margin-bottom: 1.5rem; }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--dark-color);
    transition: transform 0.3s;
}

.action-card:hover { transform: translateY(-5px); }
.action-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.action-card p { color: #666; }

/* ========== TABLE ========== */
.table-responsive {
    overflow-x: auto;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--primary-color); color: var(--white-color); }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; }
.admin-table tbody tr { border-bottom: 1px solid var(--border-color); }
.admin-table tbody tr:hover { background: var(--light-color); }

.table-img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.no-image { color: #999; font-size: 0.875rem; }

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success { background: var(--success-color); color: var(--white-color); }
.badge-danger  { background: var(--danger-color);  color: var(--white-color); }

.action-buttons { display: flex; gap: 0.5rem; }

/* ========== PRODUCT FORM ========== */
.form-container {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: var(--dark-color); }

.pedido-items { margin-top: 1rem; }
.pedido-item { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.pedido-item:last-child { border-bottom: none; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.empty-state p { color: #666; margin-bottom: 1rem; }

.info-text-admin { text-align: center; color: #666; margin-bottom: 1.5rem; font-size: 13px; }

/* ========== ADMIN RESPONSIVE ========== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stat-card { padding: 1.5rem; }
    .actions-grid { grid-template-columns: 1fr; }
    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 0.5rem 0.25rem; }
    .table-img { width: 50px; height: 50px; }
    .form-actions { flex-direction: column; }
    .form-container { padding: 1.5rem; }
    .modal-content { width: 95%; margin: 10% auto; padding: 1.5rem; }
}

/* ========== CARROSSEL DE IMAGENS ========== */
.produto-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: var(--white-color);
    max-height: 180px;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img,
.produto-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: all;
    color: var(--dark-color);
}

.carousel-btn svg { width: 14px; height: 14px; }

.carousel-btn:hover {
    background: var(--white-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn:active { transform: scale(0.95); }

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}

.carousel-dots .dot.active {
    background: var(--white-color);
    width: 16px;
    border-radius: 3px;
}

.carousel-dots .dot:hover { background: rgba(255,255,255,0.8); }

/* ========== PRODUTO STATS ========== */
.produto-stats {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
    color: #666;
}

.produto-stats .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--dark-color);
}

.produto-stats .rating .stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 0;
    height: 10px;
}

.produto-stats .rating svg { flex-shrink: 0; width: 10px; height: 10px; display: block; }
.produto-stats .rating .rating-number { font-size: 0.65rem; margin-left: 2px; }
.produto-stats .sales { color: #666; }
.star-full, .star-empty, .star-half-fill { display: block; line-height: 0; }
.star-half { display: flex; align-items: center; line-height: 0; }
.star-half svg { display: block; }

/* ========== PREÇOS E DESCONTO ========== */
.produto-precos { margin-bottom: 0.35rem; }

.preco-desconto {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
}

.preco-antigo { text-decoration: line-through; color: #999; font-size: 0.65rem; }

.desconto-badge {
    background: #00A650;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
}

.produto-info .preco {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.15rem 0 0 0;
    letter-spacing: -0.5px;
}

.parcelamento {
    color: #00A650;
    font-size: 0.65rem;
    font-weight: 500;
    margin: 0.15rem 0 0 0;
}

.frete-gratis {
    color: #00A650;
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.produto-title-link { text-decoration: none; color: inherit; }
.produto-title-link:hover h3 { color: var(--primary-color); }

/* ========== ADMIN FORM - IMAGE MANAGER ========== */
.images-manager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.img-card {
    position: relative;
    width: 110px;
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
}

.img-card[draggable="true"]:active { cursor: grabbing; }

.img-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    display: block;
    background: white;
    transition: opacity 0.2s, border-color 0.2s;
    pointer-events: none;
}

.drag-handle {
    position: absolute;
    top: 3px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    z-index: 2;
    pointer-events: none;
}

.img-card.dragging { opacity: 0.4; border: 2px dashed var(--primary-color); border-radius: 8px; }
.img-card.drag-over { outline: 3px solid var(--primary-color); outline-offset: 2px; border-radius: 8px; }

.img-principal-label {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(153,53,86,0.92);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.img-remove-btn {
    position: absolute;
    top: -8px; right: -8px;
    width: 26px; height: 26px;
    background: #e74c3c;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.15s;
}

.img-remove-btn:hover { background: #c0392b; }

.img-remove-label {
    display: none;
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    background: rgba(231,76,60,0.9);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

.img-card.marcado-remover img { opacity: 0.35; border-color: #e74c3c; }
.img-card.marcado-remover .img-remove-btn { background: #95a5a6; }
.img-card.marcado-remover .img-remove-label { display: block; }

.img-nova-label {
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    background: rgba(39,174,96,0.9);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

.upload-preview { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.upload-label:hover { background: var(--pink-800); }

.current-image { margin-bottom: 1rem; padding: 1rem; background: var(--light-color); border-radius: 8px; }
.current-image img { max-width: 200px; height: auto; border-radius: 8px; box-shadow: var(--shadow-soft); }

/* Carousel responsive inside product card */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-img { height: 150px; }
    .produto-carousel { max-height: 150px; }
    .img-card, .img-card img { width: 90px; height: 90px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-img { height: 130px; }
    .produto-carousel { max-height: 130px; }
    .product-info { padding: 9px 10px 11px; }
}

/* ========== SEJA REVENDEDOR ========== */
.revendedor-hero { text-align: center; padding: 3rem 0 2rem; }

.revendedor-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.revendedor-hero .subtitle { font-size: 1.2rem; color: #666; max-width: 700px; margin: 0 auto; }

.revendedor-beneficios { padding: 2rem 1rem 3rem; max-width: 1200px; margin: 0 auto; }

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.beneficio-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.beneficio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.beneficio-icon { font-size: 3rem; margin-bottom: 1rem; }
.beneficio-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; font-size: 1.3rem; }
.beneficio-card p { color: #666; line-height: 1.6; }

.revendedor-form-section {
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.revendedor-form-section .form-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.revendedor-form-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.revendedor-form-section > .form-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.revendedor-form { max-width: 500px; margin: 0 auto; text-align: left; }

@media (max-width: 768px) {
    .revendedor-hero h1 { font-size: 2rem; }
    .revendedor-hero .subtitle { font-size: 1rem; }
    .beneficios-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .beneficio-card { padding: 1.5rem; max-width: 400px; }
    .revendedor-form-section .form-container { padding: 1.5rem; }
    .revendedor-form-section h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .revendedor-hero h1 { font-size: 1.5rem; }
    .beneficio-icon { font-size: 2.5rem; }
    .revendedor-form-section .form-container { padding: 1.25rem; }
    .revendedor-form-section h2 { font-size: 1.3rem; }
}
