/* ============================================================
   STYLES.CSS — Produtos da Josi — Redesign "Pastel Luxury"
   Distribuidora de Produtos de Higiene e Limpeza
   ============================================================ */

/* === RESET & VARIABLES === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Acessibilidade: skip-link, visually-hidden, focus-visible */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #7C3AED;
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; outline: 2px solid #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Focus visivel para navegacao por teclado */
:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) { outline: none; }

/* Respeita usuario que prefere menos animacao */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --roxo-escuro: #4C1D95;
  --roxo-medio: #7C3AED;
  --roxo-claro: #A78BFA;
  --roxo-light: #C4B5FD;
  --roxo-bg: #EDE9FE;
  --roxo-surface: #F5F3FF;
  --preto: #1E1B4B;
  --preto-card: #FFFFFF;
  --branco: #FFFFFF;
  --cinza: #6B7280;
  --cinza-light: #F9FAFB;
  --dourado: #D97706;
  --dourado-light: #FEF3C7;
  --verde: #059669;
  --verde-whatsapp: #25D366;
  --vermelho: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50px;
  --shadow-card: 0 1px 3px rgba(124,58,237,0.06), 0 4px 12px rgba(124,58,237,0.04);
  --shadow-hover: 0 8px 30px rgba(124,58,237,0.12), 0 2px 8px rgba(124,58,237,0.06);
  --shadow-glow: 0 0 20px rgba(167,139,250,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--preto);
  min-height: 100vh;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, #F5F3FF 0%, #EDE9FE 30%, #FFFFFF 60%, #F5F3FF 100%);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%, rgba(167,139,250,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(196,181,253,0.06) 0%, transparent 60%);
}

body > * {
  position: relative;
  z-index: 1;
}

/* === HEADER === */
.header {
  background: rgba(255,255,255,0.85);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(124,58,237,0.1);
  box-shadow: 0 1px 12px rgba(124,58,237,0.06);
  backdrop-filter: blur(12px);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 15px 40px;
  position: relative;
}
.header-top .logo-area { grid-column: 2; justify-self: center; }
.header-top .header-actions { grid-column: 3; justify-self: end; }

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: column;
  text-align: center;
}

.logo-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--roxo-medio);
  filter: drop-shadow(0 4px 12px rgba(124,58,237,0.2));
}
.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--preto);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.logo-text p {
  font-size: 11px;
  color: var(--roxo-claro);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  text-align: center;
}

/* === CART BUTTON === */
.cart-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.cart-btn:hover { transform: translateY(-50%) scale(1.05); box-shadow: 0 4px 15px rgba(124,58,237,0.3); }
#cartCount {
  background: #fff;
  color: var(--roxo-medio);
  font-size: 12px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
}

/* === CART DRAWER === */
.cart-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,27,75,0.5);
  z-index: 9998;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, #FFFFFF, #F5F3FF);
  border-left: 1px solid rgba(167,139,250,0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-expo);
  overflow: hidden;
}
.cart-drawer.open { right: 0; }
.cart-header-bar {
  padding: 20px 20px 15px;
  background: var(--roxo-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(167,139,250,0.15);
}
.cart-header-bar h3 { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400; color: var(--preto); }
.cart-close { background: rgba(124,58,237,0.08); border: none; color: var(--preto); font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-close:hover { background: rgba(124,58,237,0.15); }
.cart-items-list { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { text-align: center; color: var(--cinza); padding: 60px 20px; font-size: 15px; }
.cart-item-card {
  background: rgba(237,233,254,0.4);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(245,243,255,0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 28px;
}
.cart-item-icon img { max-width: 90%; max-height: 90%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 700; color: var(--preto); margin-bottom: 3px; }
.cart-item-marca { font-size: 11px; color: var(--roxo-claro); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn { background: rgba(124,58,237,0.08); border: 1px solid var(--roxo-light); color: var(--preto); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--roxo-bg); }
.qty-num { font-size: 14px; font-weight: 700; min-width: 24px; text-align: center; }
.cart-item-remove { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: var(--vermelho); width: 28px; height: 28px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.cart-item-remove:hover { background: rgba(239,68,68,0.15); }
.cart-footer {
  padding: 15px 20px;
  border-top: 1px solid rgba(167,139,250,0.15);
  background: rgba(245,243,255,0.9);
}
.cart-total { font-size: 16px; color: var(--preto); font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; }
.cart-total span { color: var(--cinza); font-size: 14px; }
.btn-whatsapp-checkout {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--verde-whatsapp), #128C7E);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-whatsapp-checkout:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
.btn-whatsapp-checkout:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-pix-checkout {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}
.btn-pix-checkout:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(5,150,105,0.3); }
.pix-info { margin-top: 10px; font-size: 11px; color: var(--cinza); text-align: center; }
.btn-add-cart {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}
.btn-add-cart:hover { transform: translateY(-2px); box-shadow: 0 2px 10px rgba(124,58,237,0.25); }

/* === NAV / FILTERS === */
.nav-bar {
  background: rgba(245,243,255,0.8);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}

.search-box {
  flex: 0 1 320px;
  min-width: 180px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 20px 10px 45px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(167,139,250,0.3);
  background: var(--branco);
  color: var(--preto);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  border-color: var(--roxo-medio);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* Autocomplete dropdown */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--branco);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(124,58,237,0.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1100;
}
.search-suggestion {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(167,139,250,0.08);
  transition: background 0.15s;
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover { background: var(--roxo-bg); }
.suggestion-name {
  font-size: 14px;
  color: var(--preto);
  font-weight: 500;
}
.suggestion-brand {
  font-size: 11px;
  color: var(--roxo-medio);
  text-transform: uppercase;
  font-weight: 600;
}

.search-box::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(167,139,250,0.3);
  background: transparent;
  color: var(--roxo-medio);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--roxo-medio);
  color: var(--branco);
  border-color: var(--roxo-medio);
}

/* === HERO BANNER === */
.hero-banner {
  background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 45%, #C4B5FD 100%);
  padding: 80px 40px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px; right: -80px;
  pointer-events: none;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(76,29,149,0.1);
  border: 1px solid rgba(76,29,149,0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--roxo-escuro);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: floatIn 0.8s var(--ease-expo) both;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--roxo-escuro), var(--roxo-medio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: floatIn 0.8s var(--ease-expo) 0.1s both;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--roxo-escuro);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
  animation: floatIn 0.8s var(--ease-expo) 0.3s both;
}

.hero-region {
  font-size: 14px;
  color: var(--roxo-medio);
  margin-bottom: 30px;
  animation: floatIn 0.8s var(--ease-expo) 0.5s both;
}

.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  line-height: 0;
}

.hero-top-wave {
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0.08;
  pointer-events: none;
}

/* === CATALOG CONTROLS === */
.catalog-controls {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalog-select-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
  max-width: 260px;
}

.catalog-select-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--roxo-medio);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.catalog-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: var(--radius-md);
  background: var(--branco);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--preto);
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--ease-expo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.catalog-select:hover {
  border-color: var(--roxo-medio);
}
.catalog-select:focus {
  border-color: var(--roxo-medio);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

.catalog-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--cinza);
  white-space: nowrap;
  padding-bottom: 14px;
}

/* === MAIN CONTENT === */
.main { padding: 30px 40px; }

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--preto);
}

.section-title span { color: var(--roxo-medio); }

.results-info {
  display: none;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(167,139,250,0.12);
  transition: all 0.35s var(--ease-expo);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--roxo-light);
  box-shadow: var(--shadow-hover);
}

.product-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-expo);
}

.product-card:hover .product-img img { transform: scale(1.08); }

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-marca { background: var(--roxo-medio); color: var(--branco); }
.badge-atacado {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--dourado), #F59E0B);
  color: #fff;
}

.product-info { padding: 15px; }

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 5px;
  line-height: 1.4;
}

.product-marca {
  font-size: 13px;
  color: var(--roxo-medio);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-categoria {
  font-size: 12px;
  color: var(--cinza);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-categoria::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--roxo-light);
  flex-shrink: 0;
}

.product-price {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 900;
  color: var(--dourado);
  line-height: 1;
  letter-spacing: -0.5px;
}

.product-price-label {
  font-size: 11px;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.product-price-tag {
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--dourado-light);
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--dourado);
  text-align: center;
}

/* === COMBOS === */
.combos-section { margin-bottom: 50px; }

.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.combo-card {
  background: var(--branco);
  border-radius: var(--radius-xl);
  padding: 25px;
  border: 1px solid rgba(167,139,250,0.15);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.combo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--roxo-claro), var(--roxo-medio), var(--roxo-claro));
}

.combo-card:hover {
  border-color: var(--roxo-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.combo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.combo-title { font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400; color: var(--preto); }
.combo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.2);
  flex-shrink: 0;
}
.combo-icon svg {
  width: 26px;
  height: 26px;
}

.combo-desc {
  font-size: 12px;
  color: var(--cinza);
  margin-bottom: 15px;
  line-height: 1.5;
}

.combo-products { display: flex; flex-direction: column; gap: 10px; }

.combo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--roxo-bg);
  border-radius: 10px;
  border: 1px solid rgba(167,139,250,0.1);
}

.combo-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.combo-item-img img { width: 100%; height: 100%; object-fit: contain; }
.combo-item-info { flex: 1; }
.combo-item-name { font-size: 13px; font-weight: 600; color: var(--preto); }
.combo-item-cat { font-size: 11px; color: var(--cinza); }

.combo-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 12px;
}

.tag-economia { background: rgba(5,150,105,0.1); color: var(--verde); }
.tag-premium { background: var(--dourado-light); color: var(--dourado); }
.tag-popular { background: var(--roxo-bg); color: var(--roxo-medio); }

.combo-add-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.25s var(--ease-expo);
}
.combo-add-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(124,58,237,0.25); }

/* === BRAND GRID === */
.brand-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--roxo-claro) transparent;
}
.brand-grid::-webkit-scrollbar { height: 8px; }
.brand-grid::-webkit-scrollbar-track { background: transparent; }
.brand-grid::-webkit-scrollbar-thumb { background: var(--roxo-claro); border-radius: 8px; }
.brand-grid .brand-chip {
  flex: 0 0 auto;
  min-width: 130px;
  scroll-snap-align: start;
}
@media (min-width: 769px) {
  .brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    overflow: visible;
    padding: 0;
  }
  .brand-grid .brand-chip { min-width: 0; }
}

.brand-chip {
  padding: 10px 15px;
  background: var(--branco);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--roxo-medio);
  box-shadow: var(--shadow-card);
}

.brand-chip:hover, .brand-chip.active {
  background: var(--roxo-medio);
  color: var(--branco);
  border-color: var(--roxo-medio);
}

.brand-chip .count {
  display: block;
  font-size: 10px;
  color: var(--cinza);
  font-weight: 400;
  margin-top: 2px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(167,139,250,0.3);
  background: var(--branco);
  color: var(--roxo-medio);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover, .page-btn.active {
  background: var(--roxo-medio);
  color: var(--branco);
}

.page-btn.nav {
  width: auto;
  padding: 0 15px;
  font-size: 12px;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
  padding: 50px 40px 30px;
  border-top: 2px solid var(--roxo-medio);
  margin-top: 50px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.footer-brand h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--branco);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-atacado-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--roxo-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 2;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.footer-section a:hover { color: var(--roxo-light); }

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(167,139,250,0.15);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom .brand {
  color: var(--roxo-light);
  font-weight: 700;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--verde-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 8000;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-float::after {
  content: 'Fale Conosco';
  position: absolute;
  right: 70px;
  background: #fff;
  color: #333;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.whatsapp-float:hover::after { opacity: 1; }

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 15px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 30px rgba(37,211,102,0); }
}

.whatsapp-float { animation: whatsappPulse 2.5s ease-out infinite; }
.whatsapp-float:hover { animation: none; }

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30,27,75,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { display: flex; }

.modal-content {
  background: var(--branco);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(76,29,149,0.2);
  animation: floatIn 0.4s var(--ease-expo);
}

.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(124,58,237,0.08);
  border: none;
  color: var(--preto);
  font-size: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(124,58,237,0.15); }

.modal-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}

.modal-body { padding: 25px; }

.modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--roxo-bg);
  color: var(--roxo-escuro);
}

.modal-nome {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--preto);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-marca {
  font-size: 15px;
  color: var(--roxo-medio);
  font-weight: 600;
  margin-bottom: 5px;
}

.modal-categoria {
  font-size: 13px;
  color: var(--cinza);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-desc {
  font-size: 13px;
  color: var(--cinza);
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--roxo-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--roxo-light);
}

.modal-btn-cart {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--verde-whatsapp), #128C7E);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 10px;
  transition: var(--transition);
}
.modal-btn-cart:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,0.3); }

.modal-btn-back {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}
.modal-btn-back:hover { transform: translateY(-2px); opacity: 0.9; }

/* === LOADING === */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,243,255,0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.loading-overlay.show { display: flex; }

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(167,139,250,0.2);
  border-top: 4px solid var(--roxo-medio);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F3FF; }
::-webkit-scrollbar-thumb { background: var(--roxo-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--roxo-medio); }

/* === BESTSELLERS === */
.bestsellers-section {
  margin-bottom: 50px;
  padding: 30px 0 10px;
}
.bestsellers-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.best-card {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 1px solid rgba(167,139,250,0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(124,58,237,0.04);
  cursor: pointer;
  transition: all 0.4s var(--ease-expo);
  overflow: hidden;
  position: relative;
}
.best-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124,58,237,0.12);
  border-color: var(--roxo-light);
}

.best-img {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(170deg, #F5F3FF 0%, #EDE9FE 100%);
  position: relative;
  padding: 16px;
}
.best-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-expo);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
.best-card:hover .best-img img { transform: scale(1.1) rotate(-2deg); }
.best-fallback {
  display: none;
  font-size: 44px;
  align-items: center;
  justify-content: center;
}

.best-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--roxo-medio);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 2;
}
.best-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
}

.best-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.best-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--preto);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.best-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}
.best-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--dourado);
  letter-spacing: -0.5px;
}
.best-unit {
  font-size: 11px;
  color: var(--cinza);
  font-weight: 500;
}
.best-consult {
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza);
  margin-top: 2px;
}
.best-add {
  width: 100%;
  padding: 10px;
  margin-top: auto;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s var(--ease-expo);
}
.best-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124,58,237,0.3);
}

/* === SORT CONTROLS === */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 5px;
}
.sort-controls select {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167,139,250,0.3);
  background: var(--branco);
  color: var(--preto);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.sort-controls select:focus { border-color: var(--roxo-medio); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* === FAVORITAR no item do carrinho === */
.cart-item-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid #FCA5A5;
  background: #fff;
  color: #DC2626;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.cart-item-fav svg { stroke: currentColor; fill: none; transition: fill 0.2s; }
.cart-item-fav:hover {
  background: #FEF2F2;
  border-color: #DC2626;
}
.cart-item-fav.active {
  background: #DC2626;
  color: #fff;
  border-color: #DC2626;
}
.cart-item-fav.active svg { fill: #fff; }
@keyframes favPop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cart-item-fav.active { animation: favPop 0.35s ease; }

/* Botão "Favoritar" textual no modal */
.modal-btn-fav {
  width: 100%;
  padding: 12px 18px;
  margin-top: 10px;
  border-radius: var(--radius-full);
  border: 2px solid #FCA5A5;
  background: #fff;
  color: #DC2626;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.modal-btn-fav:hover {
  background: #FEF2F2;
  border-color: #DC2626;
}
.modal-btn-fav.active {
  background: #DC2626;
  color: #fff;
  border-color: #DC2626;
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}
.modal-btn-fav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.modal-btn-fav.active svg { fill: #fff; }

/* === ABOUT SECTION === */
.about-section {
  margin: 50px 0;
  padding: 40px;
  background: var(--branco);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(167,139,250,0.12);
  box-shadow: var(--shadow-card);
}
.about-content h2 { margin-bottom: 20px; }
.about-content > p {
  color: var(--cinza);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.about-features {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.about-feature {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--roxo-bg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(167,139,250,0.1);
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.about-feature strong { color: var(--preto); font-size: 14px; display: block; margin-bottom: 2px; }
.about-feature p { color: var(--cinza); font-size: 12px; margin: 0; }

/* === BOTTOM NAV === */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid rgba(167,139,250,0.15);
  z-index: 9000;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--cinza);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 12px;
  position: relative;
  transition: color 0.2s;
  min-width: 60px;
}
.bottom-nav-item.active { color: var(--roxo-medio); }
.bottom-nav-item svg { stroke: currentColor; }
.fav-count, .cart-count-badge {
  position: absolute;
  top: -2px;
  right: 8px;
  background: var(--vermelho);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-fade-up { animation: fadeInUp 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }

.btn-add-cart:active { transform: scale(0.97); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header { position: static; }
  .header-top { padding: 8px 15px; flex-direction: row; justify-content: space-between; gap: 10px; }
  .logo-area { flex-direction: row; }
  .logo-inner { gap: 10px; }
  .logo-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; }
  .logo-text h1 { font-size: 18px; text-align: left; }
  .cart-btn { position: static; transform: none; padding: 8px 14px; font-size: 14px; }
  .cart-btn:hover { transform: scale(1.05); }
  .nav-bar { padding: 8px 15px; position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(167,139,250,0.1); flex-wrap: nowrap; gap: 8px; }
  .search-box { flex: 1; min-width: 0; }
  .search-box input { padding: 8px 15px 8px 38px; font-size: 13px; }
  .filter-btn { padding: 6px 12px; font-size: 11px; white-space: nowrap; }
  .section-title { font-size: 20px; }
  .main { padding: 15px; }
  .hero-banner { padding: 50px 20px 80px; }
  .hero-title { font-size: 28px; letter-spacing: 1px; }
  .hero-subtitle { font-size: 13px; letter-spacing: 2px; }
  .combo-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .catalog-controls { gap: 10px; }
  .catalog-select-label { min-width: 0; max-width: none; }
  .catalog-select { font-size: 14px; padding: 10px 32px 10px 12px; }
  .catalog-count { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .whatsapp-float { bottom: 75px; right: 15px; width: 55px; height: 55px; }
  .whatsapp-float::after { display: none; }
  .bottom-nav { display: flex; }
  .footer { padding-bottom: 80px; }
  .about-section { padding: 25px 15px; margin: 30px 0; }
  .about-features { flex-direction: column; }
  .products-header { flex-direction: column; align-items: flex-start; }
  .bestsellers-scroll { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .best-img { height: 120px; padding: 10px; }
  .best-body { padding: 10px 12px 12px; }
  .best-name { font-size: 12px; }
  .best-price { font-size: 17px; }
}

/* === SIZE CHIPS === */
.size-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-chip {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(167,139,250,0.3);
  background: transparent;
  color: var(--roxo-medio);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.size-chip:hover { border-color: var(--roxo-medio); color: var(--roxo-escuro); }
.size-chip.active {
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}

@media (max-width: 480px) {
  .logo-text h1 { font-size: 18px; }
  .hero-title { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product-img { height: 170px; }
}

/* === HEADER ACTIONS (favoritos + carrinho juntos) === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-actions .cart-btn {
  position: static !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
}
.header-fav-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #DC2626;
  background: #fff;
  color: #DC2626;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-fav-btn:hover,
.header-fav-btn.active {
  background: #DC2626;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.header-fav-btn svg { stroke: currentColor; }
.header-fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}
/* Garante que [hidden] funciona mesmo com display:flex acima */
[hidden] { display: none !important; }
@media (max-width: 768px) {
  .header-actions { right: 12px; gap: 8px; }
  .header-fav-btn { width: 38px; height: 38px; }
}

/* === CATEGORY GRID (view "Categorias") === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  background: #fff;
  border: 1.5px solid rgba(167,139,250,0.25);
  border-radius: var(--radius-md);
  color: var(--roxo-escuro);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.category-chip:hover {
  border-color: var(--roxo-medio);
  background: #FAF5FF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.category-chip.active {
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(124,58,237,0.3);
}
.category-chip-ico { font-size: 28px; line-height: 1; }
.category-chip-label { font-size: 13px; font-weight: 700; }
.category-chip-count {
  background: rgba(167,139,250,0.15);
  color: var(--roxo-medio);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.category-chip.active .category-chip-count {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .category-chip { padding: 14px 8px; }
  .category-chip-ico { font-size: 24px; }
  .category-chip-label { font-size: 12px; }
}

/* === FILTER BTN FAVORITOS / AJUDA === */
.filter-btn-fav,
.filter-btn-help {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.filter-btn-fav { color: #DC2626; border-color: rgba(220,38,38,0.3); }
.filter-btn-fav:hover, .filter-btn-fav.active {
  background: #DC2626;
  color: #fff;
  border-color: #DC2626;
}
.filter-btn-help { color: #2563EB; border-color: rgba(37,99,235,0.3); }
.filter-btn-help:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}
.filter-btn-badge {
  display: inline-block;
  margin-left: 6px;
  background: #fff;
  color: #DC2626;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}
.filter-btn-fav.active .filter-btn-badge,
.filter-btn-fav:hover .filter-btn-badge {
  background: #fff;
  color: #DC2626;
}

/* === FLOATING TOOLS (Ajuda + A+) === */
.floating-tools {
  position: fixed;
  right: 25px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}
.float-tool-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--roxo-medio);
  color: var(--roxo-escuro);
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(124,58,237,0.18);
}
.float-tool-btn:hover {
  background: var(--roxo-medio);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 5px 14px rgba(124,58,237,0.35);
}
.float-tool-icon { font-size: 14px; line-height: 1; }
.float-tool-icon sup { font-size: 9px; }
.float-tool-label { display: none; }
.float-tool-help { color: #2563EB; border-color: #2563EB; }
.float-tool-help:hover { background: #2563EB; color: #fff; box-shadow: 0 5px 14px rgba(37,99,235,0.35); }
.float-tool-help .float-tool-icon { font-size: 18px; }

@media (max-width: 768px) {
  .floating-tools { right: 15px; bottom: 145px; }
  .float-tool-btn { width: 40px; height: 40px; }
}

/* Tamanho de texto aplicado globalmente */
html.text-size-large { font-size: 18px; }
html.text-size-large body { font-size: 16px; }
html.text-size-large .product-name { font-size: 15px !important; }
html.text-size-large .product-brand { font-size: 13px !important; }
html.text-size-large .filter-btn { font-size: 13px !important; padding: 9px 18px; }
html.text-size-large .catalog-select { font-size: 16px !important; }
html.text-size-large .btn-add-cart, html.text-size-large .modal-btn-cart { font-size: 16px !important; padding: 14px !important; }
html.text-size-large .footer p, html.text-size-large .footer a { font-size: 15px !important; }

html.text-size-xlarge { font-size: 20px; }
html.text-size-xlarge body { font-size: 18px; }
html.text-size-xlarge .product-name { font-size: 17px !important; }
html.text-size-xlarge .product-brand { font-size: 14px !important; }
html.text-size-xlarge .filter-btn { font-size: 14px !important; padding: 10px 20px; }
html.text-size-xlarge .catalog-select { font-size: 17px !important; }
html.text-size-xlarge .btn-add-cart, html.text-size-xlarge .modal-btn-cart { font-size: 17px !important; padding: 15px !important; }
html.text-size-xlarge .footer p, html.text-size-xlarge .footer a { font-size: 16px !important; }

/* === COOKIE BANNER (LGPD) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 100%);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-expo);
  padding: 20px 24px;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 280px; }
.cookie-banner-text strong { display: block; font-size: 16px; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.92); margin: 0; }
.cookie-banner-text a { color: #FDE68A; text-decoration: underline; font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept,
.cookie-btn-reject {
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #fff;
  transition: var(--transition);
  white-space: nowrap;
}
.cookie-btn-accept { background: #fff; color: var(--roxo-escuro); }
.cookie-btn-accept:hover { background: #FDE68A; border-color: #FDE68A; transform: translateY(-1px); }
.cookie-btn-reject { background: transparent; color: #fff; }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 640px) {
  .cookie-banner { padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject { flex: 1; padding: 13px 12px; }
}

/* Cookie banner not below bottom-nav: shift up on mobile when bottom-nav visible */
@media (max-width: 768px) {
  body:has(.bottom-nav) .cookie-banner.show { bottom: 60px; }
}

/* === MODAL AJUDA === */
.modal-help { max-width: 580px; }
.modal-help .modal-body { padding: 32px 28px; }
.ajuda-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.ajuda-steps li {
  background: var(--roxo-surface);
  border-left: 4px solid var(--roxo-medio);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}
.ajuda-steps li strong { color: var(--roxo-escuro); font-size: 16px; display: inline-block; margin-bottom: 4px; }
.ajuda-steps li em { color: var(--roxo-medio); font-style: normal; font-weight: 600; }
.ajuda-contato {
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  text-align: center;
  margin-bottom: 18px;
}
.ajuda-contato strong { display: block; color: #166534; font-size: 15px; margin-bottom: 10px; }
.ajuda-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde-whatsapp);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.ajuda-whatsapp-link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,211,102,0.4); }

/* === LEGAL PAGES (Termos / Quem Somos / Privacidade) === */
.legal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid rgba(167,139,250,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.legal-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--roxo-escuro);
  margin: 0;
  font-weight: normal;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--roxo-medio);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.legal-back:hover { background: var(--roxo-bg); color: var(--roxo-escuro); }
.legal-page {
  max-width: 820px;
  margin: 32px auto 60px;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
  color: #333;
  line-height: 1.7;
}
.legal-page article { background: #fff; padding: 40px 44px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.legal-eyebrow {
  display: inline-block;
  background: var(--roxo-bg);
  color: var(--roxo-escuro);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.legal-page h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--roxo-escuro);
  margin: 0 0 12px;
  font-weight: normal;
  line-height: 1.2;
}
.legal-page h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  color: var(--roxo-escuro);
  margin: 28px 0 10px;
  font-weight: 700;
}
.legal-page .legal-lead { font-size: 17px; color: #555; margin-bottom: 22px; }
.legal-page p { margin: 10px 0 14px; font-size: 15.5px; }
.legal-page ul { margin: 8px 0 16px; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; font-size: 15.5px; }
.legal-page a { color: var(--roxo-medio); font-weight: 600; }
.legal-page a:hover { color: var(--roxo-escuro); text-decoration: underline; }
.legal-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--roxo-medio), var(--roxo-claro));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
  transition: var(--transition);
}
.legal-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.legal-footer {
  text-align: center;
  padding: 24px 16px;
  background: var(--roxo-surface);
  color: var(--cinza);
  font-size: 13px;
}
.legal-footer a { color: var(--roxo-medio); text-decoration: none; font-weight: 600; }
.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .legal-header { padding: 14px 16px; }
  .legal-header h1 { font-size: 18px; }
  .legal-page { margin: 18px auto 40px; padding: 0 12px; }
  .legal-page article { padding: 28px 22px; }
  .legal-page h2 { font-size: 28px; }
  .legal-page h3 { font-size: 17px; }
}
