@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --dark: #0f172a;
  --darker: #020617;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --light: #f8fafc;
  --gray: #94a3b8;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.hide-desktop {
  display: none;
}

/* Correção Anti-Zoom iOS */
input, select, textarea {
  font-size: 16px !important;
}

.btn-add,
.btn-primary,
.btn-wpp,
.mobile-filter-btn {
  min-height: 48px;
}

/* ============================================
   HEADER
============================================ */
.main-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.top-bar {
  background: var(--darker);
  color: white;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 30px);
  padding: 8px 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  flex-wrap: wrap;
}

.top-bar i {
  color: var(--primary);
  margin-right: 5px;
  font-size: 0.9rem;
}

.header-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  width: 100%;
}

.logo {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark);
  flex-shrink: 0;
}

.search-container {
  flex: 0 1 500px;
  display: flex;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.2s;
}

.search-container:focus-within {
  border-color: var(--primary);
}

.search-container input {
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  outline: none;
}

.search-container button {
  background: none;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  color: var(--gray);
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cart-icon {
  font-size: 1.8rem;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}

.cart-icon:hover {
  color: var(--primary);
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  border: 2px solid white;
}

.category-nav {
  border-top: 1px solid var(--border);
  background: white;
  position: relative;
}

.category-nav::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40px;
  background: linear-gradient(to right, transparent, white);
  pointer-events: none;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: center;
  gap: clamp(15px, 4vw, 50px);
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: 0.3s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.nav-list li a i {
  font-size: 1.1rem;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--dark);
  border-bottom-color: var(--primary);
}

.sale-link {
  color: var(--danger) !important;
}

/* ============================================
   HERO BANNER
============================================ */
.hero-banner {
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.5)),
              url('https://images.unsplash.com/photo-1556906781-9a412961c28c?auto=format&fit=crop&w=1920&q=80') center/cover;
  padding: clamp(40px, 8vw, 80px) 5%;
  color: white;
  text-align: center;
}

.badge-hero {
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(37, 99, 235, 0.5);
  color: #93c5fd;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-content p {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #cbd5e1;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-tags span i {
  font-size: 0.95rem;
  color: #93c5fd;
}

/* ============================================
   LAYOUT + SIDEBAR
============================================ */
.store-layout {
  display: flex;
  gap: 40px;
  padding: 40px 5%;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  width: 100%;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: white;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  align-self: start;
  position: sticky;
  top: 160px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.clear-filters {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: var(--dark);
  text-transform: uppercase;
}

.custom-check,
.custom-radio {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #475569;
  align-items: center;
}

/* ============================================
   ÁREA DE PRODUTOS (grid + paginação)
============================================ */
.products-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================
   GRID DE PRODUTOS
============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  align-content: start;
}

.product-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  background: #f1f5f9;
  display: block;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  flex: 1;
  color: var(--dark);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.btn-add {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.product-card:hover .btn-add {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* ============================================
   PAGINAÇÃO
============================================ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 35px 0 10px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* ============================================
   MODAIS — BASE
============================================ */
.overlay-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  padding: 20px;
}

.overlay-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

.overlay-modal.active .modal-box {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--light);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: 0.2s;
}

.close-modal:hover {
  background: var(--border);
}

.modal-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.modal-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 10px 0 20px;
}

#size-input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  outline: none;
}

#size-input:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* ============================================
   MODAL DE POLÍTICAS
============================================ */
.policy-box {
  max-width: 650px;
  padding: 40px;
  text-align: left;
}

.policy-intro {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.policy-content {
  margin-top: 15px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.policy-content::-webkit-scrollbar {
  width: 6px;
}

.policy-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.policy-item {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

.policy-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-3px);
}

.policy-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.policy-item-header i {
  background: #eff6ff;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-size: 1.4rem;
}

.policy-item-header h4 {
  color: var(--darker);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.policy-item p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.policy-item p strong {
  color: var(--dark);
}

/* ============================================
   MODAL ESPECIALISTA
============================================ */
.specialist-modal-box {
  max-width: 440px;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

.specialist-modal-header {
  padding: 32px 30px 20px;
  border-bottom: 1px solid var(--border);
}

.specialist-icon-wrap {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.specialist-icon-wrap i {
  font-size: 2rem;
  color: var(--primary);
}

.specialist-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.specialist-modal-header p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.specialist-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-specialist {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-specialist::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #eff6ff;
  opacity: 0;
  transition: 0.2s;
}

.btn-specialist:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.btn-specialist:hover::before {
  opacity: 1;
}

.btn-specialist:active {
  transform: translateY(0);
}

.specialist-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.av-1 { background: #dbeafe; color: #1d4ed8; }
.av-2 { background: #dcfce7; color: #15803d; }
.av-3 { background: #fef3c7; color: #b45309; }

.specialist-details {
  flex: 1;
  position: relative;
  z-index: 1;
}

.specialist-details strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.specialist-details span {
  font-size: 0.8rem;
  color: var(--gray);
}

.specialist-wpp-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.specialist-wpp-badge i { font-size: 0.95rem; }

.specialist-footer-note {
  padding: 14px 20px;
  font-size: 0.78rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
}

.specialist-footer-note i {
  font-size: 0.9rem;
  color: var(--success);
}

/* ============================================
   MODAL SINAL (40%)
============================================ */
.sinal-modal-box {
  max-width: 420px;
  padding: 36px 30px 28px;
  text-align: center;
}

.sinal-icon-wrap {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.sinal-icon-wrap i {
  font-size: 2rem;
  color: var(--primary);
}

.sinal-modal-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.sinal-subtitle {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px !important;
}

.sinal-valores {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: left;
}

.sinal-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
}

.sinal-linha strong {
  color: var(--dark);
  font-weight: 700;
}

.sinal-linha.destaque {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
}

.sinal-linha.destaque span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
}

.sinal-linha.destaque span i { font-size: 1rem; }

.sinal-linha.destaque strong {
  font-size: 1.1rem;
  color: var(--primary);
}

.sinal-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 20px !important;
  line-height: 1.5;
}

.sinal-confirm-btn {
  padding: 14px 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sinal-cancel-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.88rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  padding: 4px;
  transition: 0.2s;
  width: 100%;
}

.sinal-cancel-btn:hover { color: var(--dark); }

/* ============================================
   MODAL DETALHE DO PRODUTO
============================================ */
.product-detail-box {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  max-width: 780px;
  width: 95vw;
  overflow: hidden;
  border-radius: 16px;
}

.pd-img-wrap {
  width: 55%;
  min-height: 400px;
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 400px;
}

.pd-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.pd-info .brand-tag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.pd-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
}

.pd-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 4px 0;
}

.pd-hint {
  font-size: 0.82rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pd-add-btn {
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
}

/* ============================================
   OVERLAY DO CARRINHO
   Fecha ao clicar fora no mobile
============================================ */
.overlay-cart {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  /* Fica atrás do carrinho (z-index 1001) */
}

.overlay-cart.active {
  display: block;
}

/* ============================================
   CARRINHO LATERAL — com suporte a safe-area iOS
============================================ */
.side-cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: white;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.side-cart.active {
  right: 0;
}

.cart-header {
  padding: 25px;
  background: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-top: max(25px, env(safe-area-inset-top));
  flex-shrink: 0;
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  /* Área de toque maior para mobile */
  padding: 8px;
  margin: -8px;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--light);
  border-radius: 8px;
  padding: 5px;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.cart-footer {
  padding: 20px 25px;
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  background: var(--light);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.4;
}

.btn-wpp {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  min-height: 52px;
}

.btn-wpp:hover {
  background: #1ebe57;
}

/* ============================================
   MENU MOBILE E OVERLAYS
============================================ */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  height: 100dvh;
  background: white;
  z-index: 1005;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}

.drawer-links a:hover {
  background: var(--light);
  color: var(--primary);
}

.overlay-drawer,
.overlay-filters {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1004;
  display: none;
}

.overlay-drawer.active,
.overlay-filters.active {
  display: block;
}

/* ============================================
   FOOTER
============================================ */
.mega-footer {
  background: var(--darker);
  color: #f8fafc;
  position: relative;
  width: 100%;
  margin-top: auto;
}

.footer-main {
  padding: 80px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-col h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -2px;
  color: white;
}

.brand-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
  padding-right: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 1.3rem;
  color: white;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 15px; }

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: 0.3s;
  display: inline-block;
  cursor: pointer;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.sale-text { color: var(--danger) !important; font-weight: 700; }

.wpp-text {
  color: #25D366 !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding: 25px 5%;
  background: #000;
  position: relative;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

.pay-icons {
  display: flex;
  gap: 15px;
  color: #64748b;
  font-size: 1.8rem;
}

.back-to-top {
  position: absolute;
  right: 5%;
  top: -25px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top:hover {
  background: white;
  color: var(--dark);
  transform: translateY(-5px);
}

/* ============================================
   RESPONSIVO — 1024px
============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .store-layout { gap: 25px; }
  .sidebar { width: 220px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
}

/* ============================================
   RESPONSIVO — 992px (tablet)
============================================ */
@media (max-width: 992px) {
  .hide-desktop { display: flex; }
  .hide-mobile { display: none !important; }

  .top-bar { padding: 8px 5%; gap: 10px; font-size: 0.7rem; }
  .header-middle { padding: 12px 5%; }

  .mobile-menu-btn {
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
  }

  .mobile-search {
    padding: 10px 5%;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-search input {
    flex: 1;
    padding: 12px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
  }

  .mobile-search i { color: var(--gray); font-size: 1.2rem; }

  .store-layout { flex-direction: column; padding: 20px 4%; gap: 15px; }

  .mobile-filter-btn {
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: 0.2s;
  }

  .mobile-filter-btn:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
  }

  /* Sidebar vira drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85%;
    height: 100%;
    height: 100dvh;
    z-index: 1005;
    transition: 0.4s;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
  }

  .sidebar.active { left: 0; }

  .sidebar-header {
    padding: 20px;
    background: var(--light);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .close-filters {
    background: var(--border);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .filter-scroll { overflow-y: auto; padding: 20px; flex: 1; }

  /* Grid 2 colunas */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 220px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 0.85rem; }
  .product-price { font-size: 1.1rem; margin-bottom: 10px; }
  .btn-add { font-size: 0.85rem; padding: 10px 8px; }
  .btn-add span { display: none; }

  /* Carrinho full width no mobile */
  .side-cart { width: 100%; }
}

/* ============================================
   RESPONSIVO — 768px (mobile)
============================================ */
@media (max-width: 768px) {
  .top-bar span:last-child { display: none; }

  .hero-banner { padding: 40px 5%; text-align: left; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-tags { justify-content: flex-start; gap: 8px; }
  .hero-tags span { font-size: 0.78rem; padding: 5px 11px; }

  /* Modal produto vertical */
  .product-detail-box {
    flex-direction: column;
    max-height: 88vh;
    overflow-y: auto;
    width: 95vw;
  }

  .pd-img-wrap { width: 100%; min-height: 220px; }
  .pd-img-wrap img { min-height: 220px; max-height: 300px; }
  .pd-info { padding: 20px; gap: 10px; }
  .pd-info h2 { font-size: 1.2rem; }
  .pd-price { font-size: 1.6rem; }

  /* Modal especialista */
  .specialist-modal-box { width: 95vw; max-width: 100%; }
  .specialist-modal-header { padding: 24px 20px 16px; }
  .specialist-icon-wrap { width: 54px; height: 54px; }
  .specialist-icon-wrap i { font-size: 1.6rem; }
  .specialist-list { padding: 16px; gap: 10px; }
  .btn-specialist { padding: 14px; gap: 12px; }
  .specialist-avatar { width: 42px; height: 42px; font-size: 0.85rem; }
  .specialist-details strong { font-size: 0.95rem; }
  .specialist-wpp-badge { font-size: 0.7rem; padding: 4px 8px; }

  /* Modal sinal */
  .sinal-modal-box { padding: 28px 18px 22px; }

  /* Modal políticas */
  .policy-box { padding: 24px 18px; }
  .policy-item { padding: 15px; }

  /* Paginação mobile */
  .page-btn { min-width: 38px; height: 38px; font-size: 0.85rem; padding: 0 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-main { padding: 50px 5%; }
  .brand-col p { padding-right: 0; }
  .footer-bottom-content { flex-direction: column; text-align: center; justify-content: center; }
  .back-to-top { display: none; }
}

/* ============================================
   RESPONSIVO — 480px (mobile pequeno)
============================================ */
@media (max-width: 480px) {
  .top-bar { font-size: 0.65rem; gap: 8px; }
  .logo img { height: 75px !important; }

  .nav-list { gap: 0; padding: 0 3%; justify-content: flex-start; }
  .nav-list li a { font-size: 0.8rem; padding: 12px 10px; gap: 4px; }

  .product-grid { gap: 8px; }
  .product-img { height: 180px; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 0.8rem; margin-bottom: 6px; }
  .product-price { font-size: 1rem; margin-bottom: 8px; }
  .btn-add { padding: 8px; min-height: 40px; font-size: 0.8rem; }

  /* Carrinho */
  .cart-header { padding: 18px 20px; padding-top: max(18px, env(safe-area-inset-top)); }
  .cart-items { padding: 15px 20px; }
  .cart-footer {
    padding: 15px 20px;
    padding-bottom: max(15px, calc(env(safe-area-inset-bottom) + 10px));
  }

  /* Modais */
  .modal-box { padding: 24px 18px; width: 95%; border-radius: 12px; }
  .modal-box h3 { font-size: 1.1rem; }
  .specialist-modal-header h3 { font-size: 1.1rem; }

  /* Hero */
  .hero-content h1 { font-size: 1.7rem; }
  .badge-hero { font-size: 0.7rem; padding: 4px 12px; }
  .store-layout { padding: 15px 4%; }

  /* Footer */
  .brand-col h2 { font-size: 2rem; }
  .footer-main { padding: 40px 4%; }
}

/* ============================================
   RESPONSIVO — 360px (mobile muito pequeno)
============================================ */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .product-img { height: 160px; }
  .product-info h3 { font-size: 0.75rem; }
  .product-price { font-size: 0.95rem; }
  .nav-list li a { font-size: 0.75rem; padding: 12px 7px; }
  .nav-list li a i { display: none; }
}