/* ==================== IMPORTS ==================== */


:root {
  /* CORES PRINCIPAIS - MANTIDAS DO CATÁLOGO */
  --primary: #1A4E8A;
  --primary-dark: #0F3A66;
  --primary-light: #E8EEF8;
  --primary-glow: rgba(26, 78, 138, 0.15);
  --secondary: #080C1A;
  --accent: #1A4E8A;
  --accent-hover: #0F3A66;
  --white: #ffffff;
  --bg-body: #F5F7FB;
  --bg-surface: #F8FAFE;
  --text-main: #0B1E3E;
  --text-muted: #4A6A8F;
  --text-light: #8AA3C9;
  --border-light: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);
  --card-bg: #F0F5FF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 24px 48px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-xl: 0 32px 64px rgba(0,0,0,0.12), 0 12px 24px rgba(0,0,0,0.06);
  --status-warning: #f59e0b;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-2xl: 24px;
  --danger: #EF4444;
  --danger-light: #fef2f2;
  --discount-badge: #E85D3A;
  --text-secondary: #B8D0FF;

  --apple-start: #f5f5f7;
  --apple-end: #e8e8ef;
  --apple-glow: rgba(160, 160, 180, 0.2);
  --apple-accent: #6e6e73;
  --redmi-start: #EBF2FF;
  --redmi-end: #D6E8FF;
  --redmi-glow: rgba(0, 96, 255, 0.18);
  --redmi-accent: #0060FF;
  --xiaomi-start: #FFF3E8;
  --xiaomi-end: #FFE5CC;
  --xiaomi-glow: rgba(255, 110, 0, 0.18);
  --xiaomi-accent: #FF6200;
  --poco-start: #1A1A1A;
  --poco-end: #2A2A2A;
  --poco-glow: rgba(255, 214, 0, 0.2);
  --poco-accent: #FFD600;
  --samsung-start: #EEF0FF;
  --samsung-end: #E0E4FF;
  --samsung-glow: rgba(60, 80, 220, 0.18);
  --samsung-accent: #3C50DC;
  --moto-start: #EDF0F5;
  --moto-end: #DDE3EE;
  --moto-glow: rgba(30, 80, 130, 0.15);
  --moto-accent: #1E5082;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== FIX: FOOTER SEMPRE NO RODAPÉ ==================== */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

body {
  font-family: 'Inter', 'Inter', sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ==================== HEADER ==================== */
header {
  background: linear-gradient(135deg, #060A18 0%, #0B1230 50%, #0D1535 100%);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(26, 78, 138, 0.3);
  box-shadow: 0 12px 40px rgba(0, 20, 60, 0.35);
}

header::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(26, 78, 138, 0.12) 0%, rgba(15, 58, 102, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: headerGlowPulse 8s ease-in-out infinite;
}

header::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(80, 140, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes headerGlowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}

header .header-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 20px;
  position: relative;
  z-index: 1;
  gap: 16px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-frame {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-ring {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1px solid rgba(26, 78, 138, 0.4);
  background: linear-gradient(135deg, rgba(26, 78, 138, 0.08), transparent);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(26, 78, 138, 0.15);
  animation: logoRingPulse 3.5s ease-in-out infinite;
}

@keyframes logoRingPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(26, 78, 138, 0.15); border-color: rgba(26, 78, 138, 0.4); }
  50% { box-shadow: 0 0 20px rgba(26, 78, 138, 0.32); border-color: rgba(68, 136, 255, 0.6); }
}

.logo-frame {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.logo-frame:hover {
  transform: translateY(-1px);
}

.main-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.25);
}

.header-divider-v {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
  margin: 0 18px;
  flex-shrink: 0;
}

.store-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.6px;
}

.store-name .brand-accent {
  color: #4488FF;
  background: linear-gradient(135deg, #4488FF, #66AAFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.store-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.8px;
  margin: 0;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== BOTÃO HOME ===== */
.home-icon-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

.home-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.home-icon-btn:hover::before {
  left: 130%;
}

.home-icon-btn:hover {
  background: linear-gradient(135deg, rgba(26, 78, 138, 0.22), rgba(255, 255, 255, 0.08));
  border-color: rgba(26, 78, 138, 0.45);
  transform: scale(1.05) translateY(-1px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 6px 20px rgba(26, 78, 138, 0.28);
}

.home-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.85);
  fill: none;
}

.home-icon-btn:hover svg {
  stroke: white;
}

/* ===== BOTÃO DO CARRINHO ===== */
.cart-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

.cart-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cart-icon-btn:hover::before {
  left: 130%;
}

.cart-icon-btn:hover {
  background: linear-gradient(135deg, rgba(26, 78, 138, 0.22), rgba(255, 255, 255, 0.08));
  border-color: rgba(26, 78, 138, 0.45);
  transform: scale(1.05) translateY(-1px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 6px 20px rgba(26, 78, 138, 0.28);
}

.cart-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.85);
}

/* ==================== BADGE LIMPO E ELEGANTE ==================== */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EF4444;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  border: 1.5px solid #0a0a1a;
  z-index: 10;
  animation: badgeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.2s ease;
}

/* Número com 2 dígitos */
.cart-badge.dois-digitos {
  min-width: 20px;
  height: 20px;
  font-size: 0.5rem;
  top: -5px;
  right: -5px;
}

/* Número com 3 dígitos */
.cart-badge.tres-digitos {
  min-width: 24px;
  height: 24px;
  font-size: 0.45rem;
  top: -6px;
  right: -6px;
}

/* Animação de entrada suave */
@keyframes badgeIn {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Pequeno pulso para chamar atenção - mais sutil */
.cart-badge {
  animation: badgeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), badgePulse 3s ease-in-out 0.5s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 2px 14px rgba(239, 68, 68, 0.5);
  }
}

/* ===== RESPONSIVIDADE DO HEADER E BADGE ===== */

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .header-main {
    padding: 16px 24px;
    gap: 12px;
  }
  .store-name {
    font-size: 1.2rem;
  }
  .logo-frame {
    width: 46px;
    height: 46px;
  }
  .main-logo {
    width: 46px;
    height: 46px;
  }
  .header-divider-v {
    margin: 0 12px;
    height: 32px;
  }
  .home-icon-btn {
    width: 40px;
    height: 40px;
  }
  .home-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .cart-icon-btn {
    width: 40px;
    height: 40px;
  }
  .cart-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .cart-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.5rem;
    top: -3px;
    right: -3px;
  }
  .cart-badge.dois-digitos {
    min-width: 18px;
    height: 18px;
    font-size: 0.45rem;
  }
  .cart-badge.tres-digitos {
    min-width: 22px;
    height: 22px;
    font-size: 0.4rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }
  
  .store-title {
    display: flex !important;
    flex-direction: column;
    gap: 0px;
  }
  
  .store-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.1;
  }
  
  .store-name .brand-accent {
    background: linear-gradient(135deg, #4488FF, #66AAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .store-tagline {
    display: none;
  }
  
  .header-divider-v {
    display: none !important;
  }
  
  .logo-frame {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  
  .main-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .logo-ring {
    inset: -2px;
    border-radius: 10px;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .home-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  
  .home-icon-btn svg {
    width: 17px;
    height: 17px;
  }
  
  .cart-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  
  .cart-icon-btn svg {
    width: 17px;
    height: 17px;
  }
  
  .cart-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.48rem;
    top: -3px;
    right: -3px;
    border-width: 1.5px;
    box-shadow: 0 1px 6px rgba(239, 68, 68, 0.3);
  }
  .cart-badge.dois-digitos {
    min-width: 18px;
    height: 18px;
    font-size: 0.45rem;
    top: -4px;
    right: -4px;
  }
  .cart-badge.tres-digitos {
    min-width: 22px;
    height: 22px;
    font-size: 0.4rem;
    top: -5px;
    right: -5px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 400px) {
  .header-main {
    padding: 8px 10px;
    gap: 4px;
  }
  
  .logo-wrapper {
    gap: 6px;
  }
  
  .logo-frame {
    width: 32px;
    height: 32px;
  }
  
  .main-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  
  .logo-ring {
    inset: -2px;
    border-radius: 8px;
  }
  
  .store-name {
    font-size: 0.8rem;
    font-weight: 700;
  }
  
  .home-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  
  .home-icon-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .cart-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  
  .cart-icon-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .cart-badge {
    min-width: 14px;
    height: 14px;
    font-size: 0.42rem;
    top: -2px;
    right: -2px;
    border-width: 1.5px;
  }
  .cart-badge.dois-digitos {
    min-width: 16px;
    height: 16px;
    font-size: 0.4rem;
    top: -3px;
    right: -3px;
  }
  .cart-badge.tres-digitos {
    min-width: 18px;
    height: 18px;
    font-size: 0.38rem;
    top: -4px;
    right: -4px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .header-main {
    padding: 22px 28px 20px;
  }
  .store-name {
    font-size: 1.45rem;
  }
  .logo-frame {
    width: 52px;
    height: 52px;
  }
  .main-logo {
    width: 52px;
    height: 52px;
  }
  .header-divider-v {
    margin: 0 18px;
    height: 36px;
  }
  .home-icon-btn {
    width: 44px;
    height: 44px;
  }
  .cart-icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==================== FILTROS ==================== */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 20px;
  box-shadow: 0 4px 24px rgba(0, 30, 80, 0.06);
}

.filter-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.filter-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.search-wrapper:focus-within {
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 16px;
  height: 16px;
  transition: color 0.25s, transform 0.25s;
  z-index: 1;
}

.search-wrapper:focus-within .search-icon {
  transform: translateY(-50%) scale(1.1);
}

#searchInput {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.28s cubic-bezier(0.2, 0, 0, 1);
  border-radius: 14px;
  color: var(--text-main);
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

#searchInput::placeholder { color: var(--text-light); font-weight: 400; }

#searchInput:hover {
  border-color: rgba(26, 78, 138, 0.25);
  background: var(--white);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 78, 138, 0.1), 0 6px 20px rgba(26, 78, 138, 0.1);
}

#searchInput:focus + .search-icon,
.search-wrapper:focus-within .search-icon { color: var(--primary); }

.filter-groups-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.filter-groups {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 17px;
  border: 1.5px solid var(--border-light);
  background: var(--white);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.1px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-btn:hover {
  border-color: rgba(26, 78, 138, 0.3);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 78, 138, 0.14);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.32), inset 0 1px 1px rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 78, 138, 0.38), inset 0 1px 1px rgba(255,255,255,0.2);
}

.filter-btn:active {
  transform: translateY(0) scale(0.97);
}

.brand-logo {
  width: 15px;
  height: 15px;
  object-fit: contain;
  transition: transform 0.25s;
}

.filter-btn:hover .brand-logo {
  transform: scale(1.1);
}

.filter-icon {
  font-size: 0.8rem;
  transition: transform 0.25s;
}

.filter-btn:hover .filter-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .filter-groups {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-groups::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 6px 12px; font-size: 0.73rem; }
  .filter-btn span:not(.filter-icon) { display: none; }
  .brand-logo { width: 17px; height: 17px; }
}

.resultados-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px 4px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.contador-texto {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -0.1px;
}

.ordenacao-wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

#ordenacaoSelect {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 6px 28px 6px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6478' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

#ordenacaoSelect:hover {
  border-color: rgba(26, 78, 138, 0.3);
}

#ordenacaoSelect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 78, 138, 0.08);
}

.skeleton-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 40px 24px;
}

@keyframes shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.shimmer {
  background: linear-gradient(90deg, #f0f2f7 25%, #e4e8f0 50%, #f0f2f7 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-img { height: 220px; width: 100%; border-radius: 0; }

.skeleton-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line { height: 12px; }
.skeleton-price { height: 30px; width: 50%; margin-top: 6px; }
.skeleton-btn { height: 44px; width: 100%; border-radius: 12px; margin-top: 8px; }

.img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 85%, var(--glow-color, rgba(26,78,138,0.10)) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.produto:hover .img-glow { opacity: 1; }
.img-container img { position: relative; z-index: 1; }
.img-container > * { position: relative; z-index: 1; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 16px 24px 40px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 14px; padding: 16px 16px 32px 16px; } }

/* ==================== PRODUTOS CARD - AZUL SUAVE PREMIUM ==================== */
.produto {
  background: #F0F5FF;
  border-radius: var(--border-radius-2xl);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 
              0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(26, 78, 138, 0.06);
  will-change: transform;
  animation: cardFadeIn 0.5s ease-out forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.produto::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(26, 78, 138, 0.03), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.produto:hover::after {
  opacity: 1;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.produto:nth-child(1) { animation-delay: 0.02s; }
.produto:nth-child(2) { animation-delay: 0.06s; }
.produto:nth-child(3) { animation-delay: 0.10s; }
.produto:nth-child(4) { animation-delay: 0.14s; }
.produto:nth-child(5) { animation-delay: 0.18s; }
.produto:nth-child(6) { animation-delay: 0.22s; }

.produto:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(26, 78, 138, 0.08), 
              0 20px 40px -12px rgba(26, 78, 138, 0.10);
  border-color: rgba(26, 78, 138, 0.12);
}

/* ==================== IMAGEM - AZUL SUAVE ==================== */
.img-container {
  cursor: pointer;
  position: relative;
  padding: 24px 20px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
  background: #E8EEFF;
  transition: background 0.4s ease;
}

.produto:hover .img-container {
  background: #DCE4F5;
}

.img-container img {
  width: auto;
  max-width: 88%;
  max-height: 230px;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
  position: relative;
  z-index: 1;
}

.produto:hover .img-container img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.10));
}

.detail-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  z-index: 10;
  letter-spacing: -0.1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.img-container:hover .detail-btn { 
  opacity: 1; 
  transform: translateY(-2px);
}
.detail-btn:hover { 
  background: var(--primary); 
  color: white;
  border-color: transparent; 
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.3);
}
.detail-btn svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .img-container {
    padding: 20px 16px 16px 16px;
    min-height: 200px;
  }
  .img-container img {
    max-height: 180px;
    max-width: 82%;
  }
  .detail-btn { 
    opacity: 0.85; 
    padding: 5px 10px; 
    font-size: 0.63rem;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .img-container {
    padding: 16px 12px 12px 12px;
    min-height: 170px;
  }
  .img-container img {
    max-height: 150px;
    max-width: 78%;
  }
}

/* ==================== BADGES ==================== */
.badges-wrapper {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
}

.type-badge {
  padding: 4px 10px;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.3px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: fit-content;
  text-transform: uppercase;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.produto:hover .type-badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.desconto-badge { 
  background: #E85D3A;
  color: #ffffff; 
  font-size: 0.75rem;
  font-weight: 800; 
  padding: 4px 16px; 
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(232, 93, 58, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  animation: discountPulse 3s ease-in-out infinite;
}

@keyframes discountPulse {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(232, 93, 58, 0.3);
  }
  50% {
    box-shadow: 0 2px 20px rgba(232, 93, 58, 0.5), 0 0 30px rgba(232, 93, 58, 0.1);
  }
}

.usado-badge { 
  background: #10B981;
  color: #ffffff;
  font-size: 0.55rem; 
  padding: 3px 12px; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.promo-badge { 
  background: #F59E0B;
  color: #ffffff;
  font-size: 0.55rem; 
  padding: 3px 12px; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.novo-badge {
  display: none !important;
}

.encomenda-badge { 
  background: #8B5CF6;
  color: #ffffff;
  font-size: 0.55rem; 
  padding: 3px 12px; 
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ==================== BATERIA BADGE - NOVO ESTILO QUADRADO ==================== */

/* Container do badge de bateria - posicionado no canto superior direito */
.produto .bateria-badge-wrapper {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge quadrado de bateria */
.produto .bateria-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 58px;
  min-height: 58px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

/* Efeito de brilho no badge */
.produto .bateria-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.produto:hover .bateria-badge::before {
  opacity: 1;
}

/* Ícone da bateria */
.produto .bateria-badge .bateria-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.produto .bateria-badge .bateria-icon svg {
  width: 16px;
  height: 16px;
  stroke: #15803D;
  stroke-width: 2.2;
  fill: none;
}

/* Texto da porcentagem */
.produto .bateria-badge .bateria-texto {
  font-size: 0.7rem;
  font-weight: 800;
  color: #15803D;
  letter-spacing: -0.2px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

/* Variação para bateria baixa (menos de 80%) */
.produto .bateria-badge.bateria-baixa {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.12);
}

.produto .bateria-badge.bateria-baixa .bateria-icon svg {
  stroke: #D97706;
}

.produto .bateria-badge.bateria-baixa .bateria-texto {
  color: #D97706;
}

/* Variação para bateria crítica (menos de 60%) */
.produto .bateria-badge.bateria-critica {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.10);
}

.produto .bateria-badge.bateria-critica .bateria-icon svg {
  stroke: #DC2626;
}

.produto .bateria-badge.bateria-critica .bateria-texto {
  color: #DC2626;
}

/* Animação de entrada do badge */
.produto .bateria-badge {
  animation: bateriaBadgeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
}

.produto:nth-child(1) .bateria-badge { animation-delay: 0.08s; }
.produto:nth-child(2) .bateria-badge { animation-delay: 0.12s; }
.produto:nth-child(3) .bateria-badge { animation-delay: 0.16s; }
.produto:nth-child(4) .bateria-badge { animation-delay: 0.20s; }
.produto:nth-child(5) .bateria-badge { animation-delay: 0.24s; }
.produto:nth-child(6) .bateria-badge { animation-delay: 0.28s; }

@keyframes bateriaBadgeIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Hover do badge */
.produto:hover .bateria-badge {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.produto:hover .bateria-badge.bateria-baixa {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.produto:hover .bateria-badge.bateria-critica {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.18);
}

/* Remove o estilo antigo de bateria-info */
.produto .bateria-info {
  display: none !important;
}

/* Responsividade do badge de bateria */
@media (max-width: 768px) {
  .produto .bateria-badge-wrapper {
    top: 10px;
    right: 10px;
  }
  
  .produto .bateria-badge {
    min-width: 50px;
    min-height: 50px;
    padding: 4px 8px;
    border-radius: 8px;
  }
  
  .produto .bateria-badge .bateria-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .produto .bateria-badge .bateria-texto {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .produto .bateria-badge-wrapper {
    top: 8px;
    right: 8px;
  }
  
  .produto .bateria-badge {
    min-width: 44px;
    min-height: 44px;
    padding: 3px 6px;
    border-radius: 6px;
  }
  
  .produto .bateria-badge .bateria-icon svg {
    width: 12px;
    height: 12px;
  }
  
  .produto .bateria-badge .bateria-texto {
    font-size: 0.55rem;
  }
}

/* ==================== BOLINHAS DE CORES - ABAIXO DO TEXTO ==================== */
.produto .color-indicator {
  display: flex;
  gap: 6px;
  padding: 2px 16px 4px 16px;
  margin-top: 2px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.produto .color-indicator-label {
  display: none;
}

.produto .color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #1a1a1a !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
  flex-shrink: 0;
  transform: scale(0);
  animation: dotPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.produto .color-dot:nth-child(1) { animation-delay: 0.05s; }
.produto .color-dot:nth-child(2) { animation-delay: 0.12s; }
.produto .color-dot:nth-child(3) { animation-delay: 0.19s; }
.produto .color-dot:nth-child(4) { animation-delay: 0.26s; }
.produto .color-dot:nth-child(5) { animation-delay: 0.33s; }
.produto .color-dot:nth-child(6) { animation-delay: 0.40s; }

.produto .color-dot:hover {
  transform: scale(1.3) translateY(-3px) !important;
  border-color: #1a1a1a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20), 0 0 0 3px rgba(26, 78, 138, 0.12);
  z-index: 2;
}

.produto .color-dot:active {
  transform: scale(0.9) !important;
  transition-duration: 0.1s;
}

.produto .color-dot::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  width: 55%;
  height: 35%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.produto .color-dot:hover::after {
  opacity: 1;
}

.produto .color-dot[title]:hover::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
}

.produto .color-dot[title]:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@keyframes dotPopIn {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.produto .color-indicator .mais-cores {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(26, 78, 138, 0.5);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1.5px solid #1a1a1a;
  letter-spacing: 0.2px;
  font-family: 'Inter', sans-serif;
}

/* ==================== CARD BODY ==================== */
.card-body { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  padding: 0;
  background: transparent;
  padding-top: 4px;
}

.card-footer { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 0 16px 18px 16px; 
  background: transparent;
}

.produto h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B1E3E;
  margin: 14px 16px 4px 16px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  transition: color 0.3s ease;
  padding-right: 70px;
}

.produto:hover h3 {
  color: #0A2A52;
}

.produto .ram-info {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4A6A8F;
  margin: 0 16px 2px 16px;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  animation: ramFadeIn 0.6s ease forwards;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.produto .ram-info .gb-destaque,
.produto .ram-info .ram-texto {
  color: #4A6A8F;
  font-weight: 600;
  font-size: 0.78rem;
}

.produto .ram-info .separador {
  color: #B8D0FF;
  font-weight: 300;
  font-size: 0.6rem;
}

.produto .ram-info .variacoes-hint {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 12px;
  letter-spacing: 0.1px;
  border: 1px solid var(--border-light);
  margin-left: 2px;
}

.produto:hover .ram-info {
  transform: translateX(2px);
}

@keyframes ramFadeIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.produto:nth-child(1) .ram-info { animation-delay: 0.08s; }
.produto:nth-child(2) .ram-info { animation-delay: 0.12s; }
.produto:nth-child(3) .ram-info { animation-delay: 0.16s; }
.produto:nth-child(4) .ram-info { animation-delay: 0.20s; }
.produto:nth-child(5) .ram-info { animation-delay: 0.24s; }
.produto:nth-child(6) .ram-info { animation-delay: 0.28s; }

.produto .specs-gb {
  display: none !important;
}

.variacoes-hint {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 12px;
  letter-spacing: 0.1px;
  border: 1px solid var(--border-light);
  margin-left: 4px;
}

.cor-info {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 16px 6px 16px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}

.produto .preco-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.produto .preco {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0B1E3E;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
  animation: priceSlideUp 0.5s ease forwards;
  opacity: 0;
}

.produto:nth-child(1) .preco { animation-delay: 0.12s; }
.produto:nth-child(2) .preco { animation-delay: 0.16s; }
.produto:nth-child(3) .preco { animation-delay: 0.20s; }
.produto:nth-child(4) .preco { animation-delay: 0.24s; }
.produto:nth-child(5) .preco { animation-delay: 0.28s; }
.produto:nth-child(6) .preco { animation-delay: 0.32s; }

@keyframes priceSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.produto .preco-antigo {
  text-decoration: line-through;
  color: #8AA3C9;
  font-size: 0.8rem;
  font-weight: 500;
}

.preco-sob-consulta {
  font-size: 0.82rem; 
  font-weight: 700; 
  background: #FEF3C7;
  color: #D97706;
  display: inline-block; 
  padding: 4px 12px; 
  border-radius: 8px;
  border: 1px solid #FDE68A;
}

.produto .preco-container {
  padding: 0 16px 8px 16px;
  margin-top: auto;
}

.btn-detalhes {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(26, 78, 138, 0.06);
  border: 1px solid rgba(26, 78, 138, 0.08);
  color: #4A6A8F;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Inter', sans-serif;
  opacity: 0.7;
}

.btn-detalhes:hover {
  background: #1A4E8A;
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.25);
}

.btn-detalhes:active {
  transform: scale(0.95);
}

.btn-detalhes svg {
  stroke: currentColor;
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.produto .btn-whatsapp {
  flex: 1;
  background: #1A4E8A;
  color: var(--white);
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  border-radius: 14px;
  letter-spacing: -0.1px;
  box-shadow: 0 1px 3px rgba(26, 78, 138, 0.2), 
              0 4px 12px -4px rgba(26, 78, 138, 0.15);
  position: relative;
  overflow: hidden;
  animation: btnReveal 0.5s ease forwards;
  opacity: 0;
}

.produto:nth-child(1) .btn-whatsapp { animation-delay: 0.16s; }
.produto:nth-child(2) .btn-whatsapp { animation-delay: 0.20s; }
.produto:nth-child(3) .btn-whatsapp { animation-delay: 0.24s; }
.produto:nth-child(4) .btn-whatsapp { animation-delay: 0.28s; }
.produto:nth-child(5) .btn-whatsapp { animation-delay: 0.32s; }
.produto:nth-child(6) .btn-whatsapp { animation-delay: 0.36s; }

@keyframes btnReveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-whatsapp:hover::before {
  width: 200%;
  height: 200%;
}

.btn-whatsapp:hover {
  background: #0F3A66;
  transform: translateY(-2px);
  gap: 10px;
  box-shadow: 0 2px 4px rgba(26, 78, 138, 0.2), 
              0 8px 24px -4px rgba(26, 78, 138, 0.3);
}

.btn-whatsapp:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

.btn-whatsapp svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.btn-whatsapp:hover svg {
  transform: translateX(4px);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  .img-container {
    padding: 20px 16px 16px 16px;
    min-height: 200px;
  }
  
  .img-container img {
    max-height: 180px;
    max-width: 82%;
  }
  
  .produto h3 {
    font-size: 0.88rem;
    margin: 12px 14px 3px 14px;
    padding-right: 60px;
  }
  
  .produto .color-indicator {
    padding: 0 14px 4px 14px;
    gap: 5px;
  }
  
  .produto .color-dot {
    width: 16px;
    height: 16px;
    border-width: 2px !important;
  }
  
  .produto .ram-info {
    font-size: 0.72rem;
    margin: 0 14px 2px 14px;
  }
  
  .produto .ram-info .gb-destaque,
  .produto .ram-info .ram-texto {
    font-size: 0.72rem;
  }
  
  .produto .preco {
    font-size: 1.4rem;
  }
  
  .produto .preco-antigo {
    font-size: 0.7rem;
  }
  
  .produto .preco-container {
    padding: 0 14px 6px 14px;
  }
  
  .card-footer {
    padding: 0 14px 16px 14px;
    gap: 8px;
  }
  
  .btn-detalhes {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }
  
  .btn-whatsapp {
    font-size: 0.78rem;
    padding: 10px 14px;
    border-radius: 12px;
  }
  
  .badges-wrapper {
    top: 10px;
    left: 10px;
    gap: 4px;
  }
  
  .desconto-badge {
    font-size: 0.65rem;
    padding: 3px 14px;
  }
  
  .usado-badge,
  .promo-badge,
  .encomenda-badge {
    font-size: 0.48rem;
    padding: 2px 10px;
  }
  
  .detail-btn {
    opacity: 0.7;
    padding: 4px 10px;
    font-size: 0.6rem;
  }
  
  .variacoes-hint {
    font-size: 0.5rem;
    padding: 1px 6px;
  }
}

@media (max-width: 480px) {
  .img-container {
    padding: 16px 12px 12px 12px;
    min-height: 170px;
  }
  
  .img-container img {
    max-height: 150px;
    max-width: 78%;
  }
  
  .produto h3 {
    font-size: 0.82rem;
    margin: 10px 12px 2px 12px;
    padding-right: 50px;
  }
  
  .produto .color-indicator {
    padding: 0 12px 3px 12px;
    gap: 4px;
  }
  
  .produto .color-dot {
    width: 14px;
    height: 14px;
    border-width: 1.5px !important;
  }
  
  .produto .ram-info {
    font-size: 0.68rem;
    margin: 0 12px 2px 12px;
  }
  
  .produto .ram-info .gb-destaque,
  .produto .ram-info .ram-texto {
    font-size: 0.68rem;
  }
  
  .produto .color-indicator .mais-cores {
    font-size: 0.45rem;
    padding: 1px 6px;
  }
  
  .produto .preco {
    font-size: 1.25rem;
  }
  
  .produto .preco-antigo {
    font-size: 0.65rem;
  }
  
  .produto .preco-container {
    padding: 0 12px 4px 12px;
  }
  
  .card-footer {
    padding: 0 12px 14px 12px;
    gap: 6px;
  }
  
  .btn-detalhes {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .btn-detalhes svg {
    width: 14px;
    height: 14px;
  }
  
  .btn-whatsapp {
    font-size: 0.73rem;
    padding: 8px 12px;
    border-radius: 10px;
  }
  
  .btn-whatsapp svg {
    width: 13px;
    height: 13px;
  }
  
  .badges-wrapper {
    top: 8px;
    left: 8px;
    gap: 3px;
  }
  
  .desconto-badge {
    font-size: 0.6rem;
    padding: 2px 12px;
    border-radius: 6px;
  }
  
  .usado-badge,
  .promo-badge,
  .encomenda-badge {
    font-size: 0.42rem;
    padding: 2px 8px;
  }
  
  .detail-btn {
    opacity: 0.8;
    padding: 3px 8px;
    font-size: 0.55rem;
    bottom: 10px;
    right: 10px;
  }
  
  .detail-btn svg {
    width: 11px;
    height: 11px;
  }
  
  .variacoes-hint {
    font-size: 0.45rem;
    padding: 1px 5px;
  }
}

/* ==================== CARRINHO SIDEBAR ==================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  border-left: 1px solid var(--border-light);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--white);
}

.cart-header h2 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.3px;
}

.cart-header h2 svg {
  stroke: var(--primary);
}

.cart-close-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.cart-close-btn:hover {
  background: var(--bg-body);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cart-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.cart-empty p { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; letter-spacing: -0.2px; }
.cart-empty span { font-size: 0.78rem; color: var(--text-muted); }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.cart-item-specs {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cart-item-spec {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 0.92rem; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }

.cart-item-quantity { display: flex; align-items: center; gap: 8px; }

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all 0.18s;
  font-weight: 600;
}

.cart-qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-qty-value { font-size: 0.82rem; font-weight: 700; min-width: 20px; text-align: center; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-remove:hover { color: var(--danger); background: var(--danger-light); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--white);
}

.cart-summary { margin-bottom: 16px; }

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-summary-row span:last-child { font-weight: 500; color: var(--text-main); }

.cart-total {
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
}

.cart-total span:last-child {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  letter-spacing: -0.4px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.25);
  letter-spacing: -0.2px;
}

.cart-checkout-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26, 78, 138, 0.35); }

.cart-clear-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.73rem;
  cursor: pointer;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
  font-weight: 500;
}

.cart-clear-btn:hover { color: var(--danger); }

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0D1117;
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.83rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  letter-spacing: -0.2px;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: linear-gradient(135deg, #0D2E1A, #133D22);
  border-color: rgba(26, 78, 138, 0.25);
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
footer {
    background: #0a0f1e;
    color: white;
    padding: 3rem 5% 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.footer-info h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    color: white;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Condições de pagamento (informação só no rodapé) */
.footer-info .footer-payment {
    color: #cbd5e1;
    font-weight: 500;
    margin: 0.5rem 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    color: #94a3b8;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: white;
    border-color: #4a8af4;
    background: rgba(74, 138, 244, 0.15);
    transform: translateY(-3px);
}

/* Cor real de cada rede ao passar o mouse, focar ou tocar (mobile). */
.footer-social a[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:focus-visible,
.footer-social a[aria-label="Facebook"]:active {
    color: white;
    border-color: transparent;
    background: #1877f2;
}

.footer-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:focus-visible,
.footer-social a[aria-label="Instagram"]:active {
    color: white;
    border-color: transparent;
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.footer-social a[aria-label="WhatsApp"]:hover,
.footer-social a[aria-label="WhatsApp"]:focus-visible,
.footer-social a[aria-label="WhatsApp"]:active {
    color: white;
    border-color: transparent;
    background: #25d366;
}

.footer-credit p {
    color: #7d8ba1;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.footer-credit-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(148, 163, 184, 0.5);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-credit-link:hover,
.footer-credit-link:focus-visible {
    color: #cbd5e1;
    text-decoration-color: currentColor;
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 4% 1.5rem;
    }
    .footer-info h4 {
        font-size: 1.1rem;
    }
}

/* ==================== MODAL DE COMPRA ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.22s, opacity 0.22s;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-2xl);
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  animation: modalUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.4px;
}

.modal-close {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  padding: 7px;
  color: var(--text-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-body);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--bg-body);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.modal-footer {
  padding: 18px 22px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-cancel {
  background: var(--white);
  color: var(--text-muted);
  border: 1.5px solid var(--border-light);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 11px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-cancel:hover {
  color: var(--text-main);
  background: var(--bg-body);
  border-color: var(--border-medium);
}

.btn-add-cart {
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.28s cubic-bezier(0.2, 0, 0, 1);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(26, 78, 138, 0.25);
  letter-spacing: -0.1px;
  position: relative;
  overflow: hidden;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 78, 138, 0.35);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.selection-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selection-section {
  margin-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-title h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.2px;
}

.section-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
}

.info-box {
  background: #FFF8E7;
  border: 1px solid #FFE5A3;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 4px;
}

.info-box p {
  font-size: 0.7rem;
  color: #B45309;
  line-height: 1.4;
  margin: 0;
}

.storage-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.storage-option {
  flex: 0 0 auto;
  cursor: pointer;
}

.storage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 112px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: 999px;
  padding: 14px 22px;
  text-align: center;
  position: relative;
  /* transform/background/color/box-shadow ficam a cargo do GSAP no clique;
     a transição CSS só cobre o hover (o GSAP já assume no clique). */
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
}

.storage-option:not(.disabled):not(.selected) .storage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.storage-option.selected .storage-card {
  border-color: var(--primary);
}

.storage-option.disabled .storage-card {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ícone e RAM saem da pílula (já aparecem no badge acima e ficam redundantes aqui);
   mantidos no DOM ocultos para não quebrar o JS que os referencia. */
.storage-icon,
.storage-ram {
  display: none;
}

.storage-size {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.storage-price {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
}

.storage-status {
  font-size: 0.55rem;
  font-weight: 700;
  margin-top: 4px;
  color: #f59e0b;
}

/* Selo de check removido da UI (o fundo escuro já indica a seleção, como no exemplo);
   mantido no DOM oculto pelo mesmo motivo acima. */
.storage-check {
  display: none;
}

.color-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 64px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.color-option:hover {
  transform: translateY(-4px) scale(1.04);
}

.color-circle-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  border: 2px solid transparent;
}

.color-option:hover .color-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.color-option.selected .color-circle {
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 78, 138, 0.12), 0 6px 28px rgba(26, 78, 138, 0.2);
  transform: scale(1.06);
}

.color-option.selected .color-circle-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: colorPulse 2.2s ease-in-out infinite;
}

@keyframes colorPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.color-selected-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid white;
  box-shadow: 0 2px 12px rgba(26, 78, 138, 0.35);
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-40deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.color-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  transition: all 0.3s ease;
}

.color-option:hover .color-name {
  color: var(--text-main);
  transform: translateY(1px);
}

.color-option.selected .color-name {
  color: var(--primary);
  font-weight: 700;
}

.selected-color-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: auto;
  animation: fadeInColor 0.4s ease;
}

@keyframes fadeInColor {
  from {
    opacity: 0;
    transform: scale(0.8) translateX(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 16px;
  width: fit-content;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  color: var(--primary);
  font-size: 1rem;
}

.quantity-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.08);
}

.quantity-btn:active {
  transform: scale(0.96);
}

.quantity-display {
  text-align: center;
  min-width: 60px;
}

.quantity-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.quantity-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.order-summary {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.summary-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.summary-row span:first-child {
  font-weight: 500;
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.summary-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.summary-total {
  font-size: 0.8rem !important;
}

.summary-total span:last-child {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-product-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 0 18px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.modal-product-info {
  flex: 1;
  min-width: 0;
}

.modal-product-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.modal-product-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.modal-spec-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.modal-price-consult {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--status-warning);
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.modal-price-old {
  font-size: 0.7rem;
  text-decoration: line-through;
  color: #b0bccc;
  font-weight: 500;
}

/* ==================== MODAL FULLSCREEN - ESTRUTURA MELHORADA ==================== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.product-modal.active {
  visibility: visible;
  opacity: 1;
}

.product-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  border-radius: 0;
  animation: modalScaleIn 0.35s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 769px) {
  .product-modal-container {
    width: 92%;
    height: 90%;
    max-width: 1400px;
    margin: 2% auto;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
  }
}

.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--white);
  z-index: 10;
}

.product-modal-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.product-modal-close {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.product-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.product-modal-close:hover {
  background: var(--bg-body);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.product-modal-body {
  flex: 1;
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.product-modal-body::-webkit-scrollbar {
  width: 4px;
}

.product-modal-body::-webkit-scrollbar-track {
  background: var(--bg-body);
}

.product-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .product-modal-body {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .product-modal-body {
    flex-direction: row;
    overflow: hidden;
  }
  .product-gallery {
    flex: 1.2;
    overflow-y: auto;
    height: 100%;
  }
  .product-info {
    flex: 1.1;
    overflow-y: auto;
    height: 100%;
  }
}

/* ==================== GALERIA ==================== */
.product-gallery {
  background: linear-gradient(145deg, #f5f7fc 0%, #eef2f8 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-gallery::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(ellipse at 50% 50%, 
    rgba(26, 78, 138, 0.08) 0%, 
    rgba(26, 78, 138, 0.03) 30%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product-gallery::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.gallery-carousel {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.carousel-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 45%, 
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.02) 40%,
    transparent 70%);
  border-radius: 32px;
  padding: 20px;
}

.carousel-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, 
    transparent 40%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 90%);
  pointer-events: none;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-main:hover::after {
  opacity: 0.6;
}

.carousel-image {
  max-width: 100%;
  max-height: 48vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 25px 35px -12px rgba(0, 0, 0, 0.25))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.carousel-image:hover {
  filter: drop-shadow(0 30px 45px -15px rgba(0, 0, 0, 0.3))
          drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.carousel-image.fade-transition {
  animation: fadeEffect 0.25s ease-in-out;
}

@keyframes fadeEffect {
  0% { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

.carousel-image.zoom-enabled {
  transform: scale(1.3);
  cursor: zoom-out;
  transition: transform 0.3s ease;
  z-index: 10;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 2px;
}

.carousel-btn {
  pointer-events: auto;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  margin: 0;
  transition: all 0.2s;
}

.carousel-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 78, 138, 0.25);
}

.image-counter {
  position: absolute;
  bottom: 68px;
  right: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.63rem;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 5;
}

.carousel-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumbnail-item {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  background: var(--white);
}

.thumbnail-item:hover {
  transform: scale(1.06) translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 78, 138, 0.2);
}

.thumbnail-item.active {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.25);
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== INFORMAÇÕES DO PRODUTO ==================== */
.product-info {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 22px 28px 28px 28px;
  background: var(--white);
  border-left: 1px solid var(--border-light);
}

.product-info-title {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.product-info-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.product-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.2px;
}

.product-badge.new {
  background: var(--primary);
  color: white;
}

.product-badge.used {
  background: #10B981;
  color: white;
}

.product-badge.promo {
  background: #F59E0B;
  color: white;
}

.product-info-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.spec-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.product-info-description {
  margin-bottom: 16px;
}

.product-info-description p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0;
}

.product-info-observacao {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.observacao-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.observacao-icon svg {
  width: 16px;
  height: 16px;
  stroke: #D97706;
}

.observacao-texto {
  font-size: 0.72rem;
  color: #92400E;
  line-height: 1.5;
}

.observacao-texto strong {
  font-weight: 700;
}

.product-info-price {
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.price-current {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.price-installment {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.price-old {
  font-size: 0.8rem;
  color: #b0bccc;
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 10px;
}

/* CORES - SELEÇÃO MELHORADA */
.variant-group {
  margin-bottom: 16px;
}

.variant-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.variant-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.variant-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.variant-color:hover {
  transform: translateY(-3px);
}

.variant-color-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}

.variant-color:hover .variant-color-circle {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.variant-color.selected .variant-color-circle {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(26, 78, 138, 0.12), 0 4px 20px rgba(26, 78, 138, 0.15);
}

.variant-color.selected .variant-color-circle::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(26, 78, 138, 0.3);
}

.variant-color-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  text-transform: capitalize;
}

.variant-color.selected .variant-color-name {
  color: var(--primary);
  font-weight: 700;
}

/* COR SELECIONADA - DISPLAY */
.selected-color-display {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
  animation: colorFadeIn 0.3s ease;
}

@keyframes colorFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateX(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

.quantity-selector-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
}

.quantity-btn-modal {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn-modal:hover {
  background: var(--primary);
  color: white;
}

.quantity-btn-modal:active {
  transform: scale(0.92);
}

.quantity-value-modal {
  font-size: 1rem;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  color: var(--text-main);
}

.btn-whatsapp-modal {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  padding: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  margin-top: 16px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(26, 78, 138, 0.25);
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-whatsapp-modal:hover::before {
  left: 130%;
}

.btn-whatsapp-modal:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 78, 138, 0.35);
}

.btn-whatsapp-modal:active {
  transform: translateY(0) scale(0.98);
}

.btn-whatsapp-modal svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-whatsapp-modal:hover svg {
  transform: translateX(4px);
}

/* ==================== ESTOQUE BADGE ==================== */
.estoque-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
    margin-top: 2px;
}

.estoque-badge svg {
    flex-shrink: 0;
    display: block;
    margin-top: -0.5px;
}

.estoque-badge.estoque-normal {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.estoque-badge.estoque-baixo {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.estoque-badge.estoque-ultimo {
    background: rgba(239, 68, 68, 0.14);
    color: #DC2626;
    border-color: rgba(239, 68, 68, 0.25);
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.18);
    animation: estoquePulse 2s ease-in-out infinite;
}

.estoque-badge.estoque-esgotado {
    background: rgba(107, 114, 128, 0.12);
    color: #6B7280;
    border-color: rgba(107, 114, 128, 0.2);
}

@keyframes estoquePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(239, 68, 68, 0.18);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.35), 0 0 20px rgba(239, 68, 68, 0.15);
    }
}

/* Estoque no modal */
.estoque-info-modal {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 0 8px 0;
}

.estoque-info-modal.estoque-normal {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.estoque-info-modal.estoque-baixo {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.estoque-info-modal.estoque-ultimo {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.estoque-info-modal.estoque-esgotado {
    background: rgba(107, 114, 128, 0.08);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* Ajuste para o modal fullscreen */
.product-info .estoque-info-modal {
    margin: 8px 0 12px 0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
}

/* ==================== RESPONSIVIDADE MODAL ==================== */
@media (max-width: 768px) {
  .product-gallery {
    flex: none;
    min-height: auto;
    padding: 16px 16px 8px 16px;
  }
  .product-info {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border-light);
    border-radius: 20px 20px 0 0;
    margin-top: -8px;
    padding: 20px;
  }
  .product-info-title h3 {
    font-size: 1.1rem;
  }
  .price-current {
    font-size: 1.6rem;
  }
  .carousel-image {
    max-height: 35vh;
  }
  .variant-color-circle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .product-modal-header {
    padding: 12px 16px;
  }
  .product-modal-header h2 {
    font-size: 0.8rem;
  }
  .product-info {
    padding: 16px;
  }
  .product-info-title h3 {
    font-size: 0.95rem;
  }
  .price-current {
    font-size: 1.4rem;
  }
  .spec-chip {
    font-size: 0.6rem;
    padding: 3px 10px;
  }
  .variant-color-circle {
    width: 32px;
    height: 32px;
  }
  .variant-color-name {
    font-size: 0.6rem;
  }
  .btn-whatsapp-modal {
    padding: 12px;
    font-size: 0.82rem;
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  .carousel-btn svg {
    width: 14px;
    height: 14px;
  }
  .thumbnail-item {
    width: 44px;
    height: 44px;
  }
}

/* ==================== NAVIGATION LOADING OVERLAY ==================== */
.nav-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.nav-loading-spinner {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  padding: 24px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.nav-loading-spinner span {
  display: block;
  margin-top: 16px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #1A4E8A;
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

body.navigating {
  cursor: wait;
  pointer-events: none;
}

@keyframes homePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 78, 138, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(26, 78, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 78, 138, 0);
  }
}

.home-icon-btn:active {
  animation: homePulse 0.5s ease-out;
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  header::before,
  .logo-ring,
  .header-glow-line::after {
    animation: none !important;
  }
}

/* ===== PRODUÇÃO: estilos compartilhados consolidados ===== */
/* Identidade compartilhada: cabeçalho, catálogo e painéis. */
:root { --bc-blue: #194d88; --bc-blue-dark: #103b70; --bc-line: #b2cae6; --bc-ink: #142135; --bc-muted: #526174; --bc-surface: #f5f7fa; }
html { scroll-padding-top: 100px; }
#navbar.bc-site-header { position: sticky; top: 0; left: auto; width: 100%; padding: 0; margin: 0; z-index: 120; background: #fff; border: 0; border-bottom: 1px solid var(--bc-line); box-shadow: none; backdrop-filter: none; font-family: Inter, sans-serif; }
#navbar.bc-site-header::before, #navbar.bc-site-header::after { content: none; }
#navbar .bc-header-inner { max-width: 1240px; min-height: 84px; margin: auto; padding: 12px 24px; display: flex; align-items: center; gap: 30px; }
#navbar .bc-brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--bc-ink); flex-shrink: 0; }
#navbar .bc-brand img { width: 46px; height: 46px; border-radius: 8px; object-fit: contain; }
#navbar .bc-brand-name { display: block; font-size: 23px; line-height: 1.05; font-weight: 750; letter-spacing: -.05em; }
#navbar .bc-brand-sub { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; letter-spacing: .15em; line-height: 1.1; color: var(--bc-blue); text-transform: uppercase; }
#navbar .bc-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
#navbar .bc-nav a { text-decoration: none; color: #4b596c; padding: 12px 0; font-size: 14px; font-weight: 550; border-bottom: 2px solid transparent; line-height: 1.4; white-space: nowrap; }
#navbar .bc-nav a:hover, #navbar .bc-nav a[aria-current] { color: var(--bc-blue); border-bottom-color: var(--bc-blue); }
#navbar .bc-nav .bc-mobile-contact { display: none; }
#navbar .bc-header-actions { display: flex; align-items: center; gap: 10px; }
#navbar .bc-header-action, #navbar .bc-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--bc-line); border-radius: 7px; color: var(--bc-blue); background: #fff; font: 600 14px/1.3 Inter, sans-serif; text-decoration: none; cursor: pointer; position: relative; }
#navbar .bc-header-action:hover { background: #f1f6fc; }
#navbar .bc-contact { color: #fff; background: var(--bc-blue); border-color: var(--bc-blue); }
#navbar .bc-contact:hover { background: var(--bc-blue-dark); }
#navbar .bc-header-action svg, #navbar .bc-menu-toggle svg { width: 19px; height: 19px; flex-shrink: 0; }
#navbar #cartBadge { position: static; min-width: 20px; height: 20px; padding: 2px 5px; margin: 0; background: var(--bc-blue); color: #fff; border: 0; box-shadow: none; border-radius: 4px; font: 600 11px/1 Inter, sans-serif; transform: none; animation: none !important; align-items: center; justify-content: center; }
#navbar .bc-menu-toggle { display: none; }
#navbar :is(a,button):focus-visible { outline: 3px solid #377cce; outline-offset: 3px; }
.bc-catalogue { font-family: Inter, sans-serif; background: #f5f7fa; background-image: none; }
.bc-catalogue.modal-open { position: static; height: auto; overflow: hidden; }
.bc-catalogue .page-wrapper { overflow: visible; }
.bc-catalogue .filter-bar { position: relative; top: auto; padding: 24px 24px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: none; backdrop-filter: none; }
.bc-catalogue .filter-bar::before { content: none; }
.bc-catalogue .filter-container { max-width: 1192px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 24px; align-items: center; }
.bc-catalogue .search-wrapper { width: 100%; max-width: none; margin: 0; transform: none; }
.bc-catalogue #searchInput { background: #f8fafc; min-height: 46px; border: 1px solid var(--bc-line); border-radius: 7px; font: 400 16px/1.5 Inter, sans-serif; color: var(--bc-ink); box-shadow: none; padding: 11px 14px 11px 42px; }
.bc-catalogue #searchInput::placeholder { color: #64748b; opacity: 1; }
.bc-catalogue #searchInput:focus { outline: 2px solid var(--bc-blue); outline-offset: 1px; }
.bc-catalogue .search-icon { color: #526174; }
.bc-catalogue .filter-groups-wrapper { width: auto; min-width: 0; overflow: visible; }
.bc-catalogue .filter-groups { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.bc-catalogue .filter-btn { min-height: 44px; background: #fff; color: #42516a; border: 1px solid #d3dfea; border-radius: 7px; padding: 9px 12px; font: 500 14px/1.3 Inter, sans-serif; box-shadow: none; transform: none; gap: 7px; }
.bc-catalogue .filter-btn::before, .bc-catalogue .filter-btn::after { content: none; }
.bc-catalogue .filter-btn:hover { border-color: var(--bc-blue); background: #f5f8fc; }
.bc-catalogue .filter-btn.active { background: #eaf2fc; border-color: var(--bc-blue); color: var(--bc-blue-dark); box-shadow: inset 0 0 0 1px var(--bc-blue); }
.bc-catalogue .filter-btn .brand-logo, .bc-catalogue .filter-btn:hover .brand-logo { width: 18px; height: 18px; object-fit: contain; filter: none; transform: none; }
.bc-catalogue .filter-btn:focus-visible, .bc-catalogue #ordenacaoSelect:focus-visible { outline: 3px solid #377cce; outline-offset: 2px; }
.bc-catalogue .resultados-bar { max-width: 1240px; margin: 0 auto; padding: 22px 24px 0; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bc-catalogue .contador-texto { font: 400 14px/1.5 Inter, sans-serif; color: var(--bc-muted); }
.bc-catalogue #ordenacaoSelect { min-height: 42px; font: 500 14px/1.3 Inter, sans-serif; color: var(--bc-ink); background: #fff; border: 1px solid var(--bc-line); border-radius: 7px; box-shadow: none; }
.bc-product { border-color: #8eafd5; transition: border-color 160ms ease, box-shadow 160ms ease; }
.bc-product:hover, .bc-product:focus-within { border-color: var(--bc-blue); box-shadow: 0 0 0 1px var(--bc-blue); }
.bc-purchase { border-top-color: #c6d8ec; }
/* Um único painel de produto com rolagem natural. */
#productModal .modal-overlay, #cartOverlay { background: rgba(15,30,50,.5); backdrop-filter: none; animation: none; }
#productModal .product-modal-container { width: calc(100% - 48px); max-width: 1120px; height: auto; max-height: calc(100dvh - 48px); margin: 24px auto; border: 1px solid #8eafd5; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px #0f1e3238; animation: none; }
#productModal .product-modal-header { padding: 14px 24px; min-height: 70px; border-bottom: 1px solid #c6d8ec; background: #fff; }
#productModal .product-modal-header h2 { font: 600 15px/1.4 Inter, sans-serif; color: var(--bc-muted); }
#productModal .product-modal-close, #cartSidebar .cart-close-btn { width: 44px; height: 44px; background: #fff; border: 1px solid var(--bc-line); border-radius: 7px; color: var(--bc-blue); box-shadow: none; transform: none; }
#productModal .product-modal-body { display: block; overflow: auto; flex: 1 1 auto; min-height: 0; scroll-behavior: auto; font-family: Inter, sans-serif; }
.bc-detail { display: grid; grid-template-columns: 46% minmax(0,1fr); color: var(--bc-ink); align-items: start; }
.bc-detail-gallery { min-width: 0; padding: 24px; background: #f5f7fa; align-self: stretch; }
.bc-detail-gallery-sticky { position: sticky; top: 24px; }
.bc-detail-photo { display: grid; place-items: center; position: relative; min-height: 310px; }
.bc-photo-zoom { border: 0; width: 100%; background: transparent; overflow: hidden; padding: 14px; cursor: zoom-in; }
#productModal .carousel-image { width: 100%; height: 315px; max-height: none; object-fit: contain; display: block; transform: none; filter: none; }
#productModal .carousel-image.zoom-enabled { transform: scale(1.5); cursor: zoom-out; }
.bc-gallery-controls { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 18px; }
.bc-gallery-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--bc-line); border-radius: 7px; color: var(--bc-blue); background: #fff; font-size: 20px; cursor: pointer; }
.bc-gallery-controls .image-counter { position: static; background: none; padding: 0; color: var(--bc-muted); font-size: 13px; }
.bc-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#productModal .bc-thumb { width: 60px; height: 60px; min-width: 60px; padding: 5px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; box-shadow: none; cursor: pointer; opacity: 1; transform: none; }
#productModal .bc-thumb.active { border-color: var(--bc-blue); box-shadow: inset 0 0 0 1px var(--bc-blue); }
.bc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bc-detail-info { padding: 28px; min-width: 0; }
.bc-detail-info h3 { font: 650 29px/1.15 Inter, sans-serif; letter-spacing: -.045em; margin: 4px 0 18px; color: var(--bc-ink); }
.bc-detail-info .bc-eyebrow { font-family: Inter, sans-serif; }
.bc-detail-price { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 18px 0; margin: 18px 0 22px; }
.bc-detail-price strong { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.055em; }
.bc-detail-price s { color: var(--bc-muted); margin-right: 10px; font-size: 14px; }
.bc-detail-price .bc-payment { margin: 4px 0 10px; display: block; font-size: 14px; }
.bc-terms { font-size: 13px; line-height: 1.6; color: var(--bc-muted); margin: 8px 0 0; }
.bc-options { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.bc-options legend { font: 600 14px/1.4 Inter, sans-serif; padding: 0; margin-bottom: 10px; }
.bc-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-option { border: 1px solid #c2cede; border-radius: 7px; min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--bc-ink); font: 500 14px/1.3 Inter, sans-serif; cursor: pointer; }
.bc-option[aria-pressed="true"] { border-color: var(--bc-blue); background: #edf4fc; box-shadow: inset 0 0 0 1px var(--bc-blue); color: var(--bc-blue-dark); }
.bc-detail-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #c6d8ec; padding-top: 20px; }
.bc-quantity { display: inline-flex; align-items: center; border: 1px solid var(--bc-line); border-radius: 7px; overflow: hidden; }
.bc-quantity button { min-width: 44px; min-height: 46px; background: #fff; border: 0; color: var(--bc-blue); font-size: 20px; cursor: pointer; }
.bc-quantity span { min-width: 30px; text-align: center; font-size: 15px; }
.bc-detail-buy .bc-open { flex: 1 1 190px; font-family: Inter, sans-serif; }
.bc-order-total { flex-basis: 100%; font-size: 14px; color: var(--bc-muted); }
.bc-description { margin-top: 24px; border-top: 1px solid #e2e8f0; padding-top: 18px; }
.bc-description summary { font-size: 15px; font-weight: 600; cursor: pointer; padding: 5px 0; }
.bc-description p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--bc-muted); white-space: pre-line; }
#productModal :is(button,summary):focus-visible, #cartSidebar button:focus-visible { outline: 3px solid #377cce; outline-offset: 2px; }
#productModal button:disabled { opacity: .5; cursor: not-allowed; }
/* Carrinho com a mesma hierarquia de preço e ação dos cards. */
#cartSidebar { max-width: 460px; border-left: 1px solid #8eafd5; box-shadow: -10px 0 40px #0f1e3220; background: #fff; font-family: Inter, sans-serif; }
#cartSidebar .cart-header { padding: 18px 22px; min-height: 82px; border-bottom: 1px solid #c6d8ec; }
#cartSidebar .cart-header h2 { font: 600 19px/1.3 Inter, sans-serif; color: var(--bc-ink); }
#cartSidebar .cart-items { padding: 0 22px; }
#cartSidebar .cart-item { border: 0; border-bottom: 1px solid #e2e8f0; background: #fff; border-radius: 0; padding: 22px 0; margin: 0; gap: 14px; animation: none; box-shadow: none; }
#cartSidebar .cart-item-image { width: 82px; height: 100px; border: 1px solid #e2e8f0; background: #f5f7fa; border-radius: 7px; }
#cartSidebar .cart-item-name { font: 600 16px/1.4 Inter, sans-serif; white-space: normal; color: var(--bc-ink); }
#cartSidebar .cart-item-specs { gap: 5px; flex-wrap: wrap; }
#cartSidebar .cart-item-spec { font-size: 12px; color: var(--bc-muted); background: #f2f5f8; padding: 3px 5px; border-radius: 4px; }
#cartSidebar .cart-item-bottom { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#cartSidebar .cart-item-price { font-size: 20px; letter-spacing: -.04em; color: var(--bc-ink); }
#cartSidebar .cart-qty-btn { width: 40px; height: 40px; border: 1px solid var(--bc-line); border-radius: 6px; background: #fff; color: var(--bc-blue); }
#cartSidebar .cart-item-remove { min-height: 36px; margin-top: 8px; font-size: 13px; color: #526174; }
#cartSidebar .cart-footer { padding: 22px; border-top: 1px solid #c6d8ec; background: #fff; }
#cartSidebar .cart-checkout-btn { min-height: 48px; border-radius: 7px; background: var(--bc-blue); font: 600 15px/1.4 Inter, sans-serif; box-shadow: none; transform: none; }
#cartSidebar .cart-total span:last-child { font-size: 24px !important; color: var(--bc-ink) !important; }
#cartSidebar .cart-clear-btn { font: 500 13px/1.4 Inter, sans-serif; min-height: 40px; }
#cartSidebar .cart-empty p { font: 600 18px/1.4 Inter, sans-serif; }
#cartSidebar .cart-empty span { font: 400 14px/1.6 Inter, sans-serif; }
.bc-catalogue .toast { font-family: Inter, sans-serif; border-radius: 7px; }
@media (max-width: 1100px) {
  #navbar .bc-header-inner { gap: 20px; }
  #navbar .bc-nav { gap: 18px; }
  #navbar .bc-contact .bc-action-label { display: none; }
  .bc-catalogue .filter-container { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 980px) {
  #navbar .bc-header-inner { min-height: 76px; flex-wrap: wrap; gap: 0 10px; padding: 12px 18px; }
  #navbar .bc-brand { margin-right: auto; gap: 9px; }
  #navbar .bc-brand-name { font-size: 21px; }
  #navbar .bc-brand img { width: 40px; height: 40px; }
  #navbar .bc-brand-sub { font-size: 10px; }
  #navbar .bc-menu-toggle { display: inline-flex; padding: 10px 12px; }
  #navbar .bc-nav { display: none; order: 3; width: 100%; margin: 14px 0 0; padding-top: 8px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; gap: 0 24px; }
  #navbar .bc-nav.is-open { display: flex; }
  #navbar .bc-header-actions { gap: 7px; }
  #navbar .bc-cart .bc-action-label { display: none; }
  #navbar .bc-header-action { padding: 10px 11px; }
}
@media (max-width: 820px) {
  .bc-detail { grid-template-columns: 1fr; }
  .bc-detail-gallery { padding: 18px; }
  .bc-detail-gallery-sticky { position: static; top: auto; }
  .bc-detail-photo { min-height: 210px; }
  #productModal .carousel-image { height: 230px; }
  .bc-detail-info { padding: 24px; }
}
@media (max-width: 480px) {
  #navbar .bc-header-inner { padding: 12px; gap: 0 7px; }
  #navbar .bc-brand img { width: 35px; height: 35px; }
  #navbar .bc-brand-name { font-size: 20px; }
  #navbar .bc-brand { gap: 7px; }
  #navbar .bc-header-action, #navbar .bc-menu-toggle { padding: 10px; }
  #navbar .bc-header-actions { gap: 5px; }
  #navbar .bc-cart { gap: 4px; }
  #navbar .bc-contact { display: none; }
  #navbar .bc-nav .bc-mobile-contact { display: block; }
  .bc-catalogue .filter-bar { padding: 18px 12px; }
  .bc-catalogue .filter-btn { padding: 9px 10px; }
  .bc-catalogue .resultados-bar { padding: 18px 12px 0; }
  #productModal .product-modal-container { width: calc(100% - 16px); max-height: calc(100dvh - 16px); margin: 8px; border-radius: 12px; }
  #productModal .product-modal-header { padding: 10px 16px; min-height: 64px; }
  .bc-detail-info { padding: 22px 18px; }
  .bc-detail-info h3 { font-size: 27px; }
  #cartSidebar { max-width: 100%; }
  #cartSidebar .cart-items, #cartSidebar .cart-footer { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bc-product { transition: none; } }