:root {
  /* Tema Escuro */
  --color-bg: #0a0b0e;
  --color-surface: #1a1d24;
  --color-text: #e5e7eb;
  --color-text-secondary: #9ca3af;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-dark: #1e40af;
  --color-accent: #ef4444;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-border: #2d3139;
  --color-footer: #0f1117;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open,
body.cart-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 20px 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-text-secondary);
  font-size: 18px;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border: 0.25em solid var(--color-border);
  border-right-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.error-message,
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 20px;
  border-radius: var(--radius);
  margin: 20px;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR (Feira de Santana - BA + Telefone)
   ═══════════════════════════════════════════════════════════════ */

.promo-bar {
  background: var(--color-primary);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.top-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.top-bar .left-section {
  flex-shrink: 0;
}

.top-bar .left-section img {
  height: 65px;
  width: auto;
  transition: height 0.3s ease;
}

.top-bar .center-section {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.top-bar .center-section input {
  flex: 1;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  outline: none;
}

.top-bar .center-section input::placeholder {
  color: var(--color-text-secondary);
}

.top-bar .center-section input:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.top-bar .center-section button {
  background: var(--color-primary);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.top-bar .center-section button:hover {
  background: var(--color-primary-hover);
}

.top-bar .center-section button img {
  height: 20px;
  width: 20px;
  filter: brightness(0) invert(1);
}

.top-bar .right-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#monte-pc {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

#monte-pc:hover {
  background: var(--color-primary-hover);
}

#cart-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px;
}

#cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#account-area a,
#account-link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

#account-area a:hover,
#account-link:hover {
  background: var(--color-bg);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR (Hardware, Monitores, Periféricos, etc)
   ═══════════════════════════════════════════════════════════════ */

.navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow: visible;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 72px;
  z-index: 998;
}

.navbar::-webkit-scrollbar {
  height: 0;
}

.navbar a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.navbar a:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.navbar a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Dropdown no Navbar */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3 L5 7 L9 3' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}

.nav-dropdown-toggle:hover {
  color: var(--color-primary);
  background: var(--color-bg);
  border-bottom-color: var(--color-primary);
}

.nav-dropdown-toggle:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3 L5 7 L9 3' fill='none' stroke='%233b82f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background: var(--color-surface);
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  z-index: 997;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  top: 100%;
  left: 0;
  max-height: 500px;
  overflow-y: auto;
}

.nav-dropdown-content a {
  color: var(--color-text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: all 0.2s;
  border-bottom: none;
  border-radius: 4px;
}

.nav-dropdown-content a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   BANNERS
   ═══════════════════════════════════════════════════════════════ */

.banner,
.bannerMobile {
  width: 100%;
  height: auto;
  display: block;
}

.banner {
  display: block;
}

.bannerMobile {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════════════ */

#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Scroll suave para grids com muitos itens */
#product-list::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

#product-list::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 4px;
}

#product-list::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

#product-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.card,
.meu-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover,
.meu-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* Botão de favoritar nos cards */
.btn-favoritar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card:hover .btn-favoritar,
.meu-card:hover .btn-favoritar {
  opacity: 1;
}

.btn-favoritar:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.btn-favoritar.favoritado {
  opacity: 1;
  color: #dc2626;
}

.btn-favoritar:not(.favoritado) {
  color: #6b7280;
}

.img-wrapper {
  position: relative;
  background: var(--color-bg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.produto-img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  cursor: pointer;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
}

.preco-responsivo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.card-parcela {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-bottom: 12px;
}

.mt-auto {
  margin-top: auto;
}

/* Preços */
.text-danger {
  color: var(--color-accent);
}

.text-decoration-line-through {
  text-decoration: line-through;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-warning {
  background: var(--color-warning);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
}

.btn-info {
  background: #0ea5e9;
  color: white;
}

.btn-info:hover {
  background: #0284c7;
}

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

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: var(--color-accent);
  color: white;
}

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

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
}

.w-100 {
  width: 100%;
}

.mb-2 {
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ORDENADOR (Filtros)
   ═══════════════════════════════════════════════════════════════ */

.ordenador {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ordenador label {
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
}

.ordenador select {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.ordenador select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.promo-carousel-container {
  position: relative;
  margin: 24px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.promo-carousel-container h2 {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.promo-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: thin;
}

.promo-carousel::-webkit-scrollbar,
#pcgamer-carousel::-webkit-scrollbar,
#kits-carousel::-webkit-scrollbar {
  display: none;
}

.promo-carousel,
#pcgamer-carousel,
#kits-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.promo-carousel .card {
  flex: 0 0 280px;
  max-width: 280px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   CART MODAL (Sidebar)
   ═══════════════════════════════════════════════════════════════ */

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  transition: background 0.3s ease;
}

.cart-modal:not(.hidden) {
  background: rgba(0, 0, 0, 0.5);
}

.cart-modal.hidden {
  display: none;
}

.cart-sidebar {
  background: var(--color-surface);
  width: 100%;
  max-width: 450px;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  overflow-y: auto;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: slideInFromRight 0.4s ease-out forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-sidebar h2 {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

#cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.cart-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cart-title {
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
}

.cart-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-qty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-qty:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

.btn-qty.btn-remove {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  margin-left: auto;
}

.btn-qty.btn-remove:hover {
  background: #b91c1c;
}

.input-qty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 60px;
  height: 32px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
}

#cart-total {
  background: var(--color-bg);
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

#cart-total strong {
  color: var(--color-text);
  font-size: 18px;
}

/* Coupon Area */
.coupon-area {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.coupon-input {
  flex: 1;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
}

.coupon-input::placeholder {
  color: var(--color-text-secondary);
}

.coupon-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg);
}

.coupon-actions {
  display: flex;
  gap: 8px;
}

.coupon-btn {
  background: var(--color-primary);
  border: none;
  color: white;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.coupon-btn:hover {
  background: var(--color-primary-hover);
}

.coupon-remove {
  background: var(--color-accent);
}

.coupon-remove:hover {
  background: #b91c1c;
}

.coupon-msg {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.coupon-msg.success {
  color: var(--color-success);
}

.coupon-msg.error {
  color: var(--color-accent);
}

.cart-sidebar > .btn {
  margin: 0 20px 12px;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal-detalhes {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-detalhes .modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.6);
  padding: 30px;
}

/* Estilo específico para o modal de resumo de imagem */
#resumo-imagem .modal-content {
  max-width: 650px;
  padding: 15px;
  max-height: 75vh;
  overflow-y: auto;
  /* Customização do scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}

#resumo-imagem .modal-content::-webkit-scrollbar {
  width: 8px;
}

#resumo-imagem .modal-content::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 4px;
}

#resumo-imagem .modal-content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

#resumo-imagem .logo-resumo {
  width: 250px !important;
  margin: 0 auto 12px !important;
}

#resumo-imagem h2 {
  font-size: 17px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  text-align: center;
  font-weight: 600 !important;
}

#resumo-imagem h3 {
  font-size: 15px !important;
  margin: 12px 0 8px !important;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600 !important;
}

.modal-detalhes h2 {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.modal-detalhes h3 {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.componentes-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Componentes lista no resumo de imagem - mais compacto */
#resumo-imagem .componentes-lista {
  gap: 10px;
  margin-bottom: 12px;
  grid-template-columns: repeat(2, 1fr);
}

/* Em telas pequenas, usar 1 coluna */
@media (max-width: 500px) {
  #resumo-imagem .componentes-lista {
    grid-template-columns: 1fr;
  }
}

/* Card de categoria */
.categoria-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

/* Card mais fino no resumo de imagem */
#resumo-imagem .categoria-card {
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: var(--color-primary);
}

/* Remove hover no resumo de imagem */
#resumo-imagem .categoria-card:hover {
  transform: none;
  box-shadow: none;
}

/* Cabeçalho da categoria */
.categoria-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid var(--color-primary-hover);
}

/* Cabeçalho mais compacto no resumo de imagem */
#resumo-imagem .categoria-header {
  font-size: 13px;
  padding: 8px 12px;
}

/* Container dos itens dentro da categoria */
.categoria-items {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* Container mais compacto no resumo de imagem */
#resumo-imagem .categoria-items {
  padding: 8px;
  gap: 8px;
  background: rgba(10, 11, 14, 0.5);
}

/* Item individual dentro da categoria */
.item-componente {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

/* Item mais compacto no resumo de imagem */
#resumo-imagem .item-componente {
  gap: 6px;
  padding: 10px;
}

.item-componente:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.item-componente img {
  width: 100%;
  max-width: 180px;
  height: 160px;
  object-fit: contain;
  background: #0d0e12;
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--color-border);
}

/* Imagens menores no resumo de imagem */
#resumo-imagem .item-componente img {
  max-width: 100px;
  height: 90px;
  padding: 6px;
}

.item-componente strong {
  width: 100%;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Texto menor no resumo de imagem */
#resumo-imagem .item-componente strong {
  font-size: 11px;
  min-height: 30px;
  line-height: 1.3;
}

.item-componente span {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: auto;
}

/* Preço menor no resumo de imagem */
#resumo-imagem .item-componente span {
  font-size: 13px;
}

.componentes-lista img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #0d0e12;
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--color-border);
}

.componentes-lista strong {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 40px;
  display: block;
}

.componentes-lista span {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

.resumo-financeiro {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

/* Resumo financeiro mais compacto no modal de imagem */
#resumo-imagem .resumo-financeiro {
  padding: 12px;
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.resumo-financeiro p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Textos menores no resumo de imagem */
#resumo-imagem .resumo-financeiro p {
  font-size: 12px;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* Destaque no total PIX */
#resumo-imagem .resumo-financeiro p:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
  padding: 6px 8px;
  border-radius: 4px;
  margin: 8px 0;
}

.resumo-financeiro span {
  font-weight: 600;
}

.btn-confirmar {
  background: var(--color-success);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-confirmar:hover {
  background: #15803d;
}

.btn-fechar {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-fechar:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
}

.beneficios-loja,
.quem-somos {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

/* Seções mais compactas no resumo de imagem */
#resumo-imagem .beneficios-loja,
#resumo-imagem .quem-somos {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(26, 29, 36, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.beneficios-loja ul {
  list-style: none;
  padding: 0;
}

/* Lista em 2 colunas no resumo de imagem para economizar espaço */
#resumo-imagem .beneficios-loja ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
}

@media (max-width: 500px) {
  #resumo-imagem .beneficios-loja ul {
    grid-template-columns: 1fr;
  }
}

.beneficios-loja li {
  color: var(--color-text-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
}

/* Itens menores no resumo de imagem */
#resumo-imagem .beneficios-loja li {
  font-size: 11px;
  padding: 2px 0;
  padding-left: 16px;
}

.beneficios-loja li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.quem-somos p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

/* Textos menores no resumo de imagem */
#resumo-imagem .quem-somos p {
  font-size: 11px;
  line-height: 1.4;
}



/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
}

.pagination button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER (Fundo escuro #0f172a como na screenshot)
   ═══════════════════════════════════════════════════════════════ */

footer,
footer.site-footer {
  background: var(--color-footer);
  color: #94a3b8;
  margin-top: 60px;
  padding: 40px 24px 24px;
}

/* Footer compacto em páginas de autenticação */
body:has(.auth-page) footer,
body:has(.auth-page) footer.site-footer {
  margin-top: 40px;
  padding: 30px 24px 20px;
}

body:has(.auth-page) .footer-wrap {
  margin-bottom: 20px;
  gap: 30px;
}

body:has(.auth-page) .footer-col h4 {
  font-size: 15px;
  margin-bottom: 12px;
}

body:has(.auth-page) .footer-col p,
body:has(.auth-page) .footer-col a {
  font-size: 13px;
  line-height: 1.6;
}

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

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.hidden {
  display: none !important;
}

.muted {
  color: var(--color-text-secondary) !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.h-100 {
  height: 100% !important;
}

.mb-3 {
  margin-bottom: 12px !important;
}

.mb-4 {
  margin-bottom: 16px !important;
}

/* ═══════════════════════════════════════════════════════════════
   HAMBURGER (Mobile)
   ═══════════════════════════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger div {
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE GRID (para kits/pcs)
   ═══════════════════════════════════════════════════════════════ */

.img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.img-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  #product-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .promo-bar {
    font-size: 12px;
    padding: 6px 16px;
    flex-direction: column;
    gap: 4px;
  }

  .top-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .top-bar .center-section {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    padding: 60px 0 20px;
    transition: left 0.3s;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
  }

  /* Dropdown mobile behavior */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Desabilita hover no mobile - apenas click funciona */
  .nav-dropdown:hover .nav-dropdown-content {
    display: none !important;
  }

  .nav-dropdown:hover .nav-dropdown-toggle {
    color: inherit;
    border-bottom-color: var(--color-border);
  }

  .nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(0deg);
  }

  /* Força exibição quando mobile-open está ativo */
  .nav-dropdown.mobile-open:hover .nav-dropdown-content {
    display: flex !important;
  }

  .nav-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
  }

  .nav-dropdown-toggle::after {
    transform: rotate(0deg);
    transition: transform 0.3s;
    flex-shrink: 0;
  }

  .nav-dropdown.mobile-open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .nav-dropdown-content {
    display: none;
    position: static;
    width: 100%;
    background: var(--color-bg);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
  }

  .nav-dropdown.mobile-open .nav-dropdown-content {
    display: flex !important;
  }

  .nav-dropdown-content a {
    padding: 14px 20px 14px 40px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    width: 100%;
    display: block;
    flex-shrink: 0;
  }

  .nav-dropdown-content .view-all-btn {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    padding: 14px 20px 14px 40px;
    margin: 0;
    text-align: left;
  }

  .nav-dropdown-content .view-all-btn:hover {
    background: var(--color-primary-hover);
  }

  /* Melhorias visuais do header mobile */
  .top-bar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
  }

  .top-bar .hamburger {
    display: flex;
    order: 0;
    margin-right: 12px;
  }

  .top-bar .left-section {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 1;
  }

  .top-bar .left-section img {
    height: 35px;
    width: auto;
  }

  .top-bar .right-section {
    flex-shrink: 0;
    gap: 6px;
    order: 2;
    display: flex;
    align-items: center;
  }

  .top-bar .center-section {
    flex: 1 1 100%;
    min-width: 0;
    order: 3;
  }

  .top-bar .center-section input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .top-bar .center-section button {
    padding: 8px 12px;
  }

  .top-bar .right-section button {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  #monte-pc {
    display: inline-block !important;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  #monte-pc:hover {
    background: #e67e22;
    transform: translateY(-1px);
  }

  #cart-btn {
    position: relative;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    padding: 8px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }

  #cart-btn:hover {
    background: var(--color-primary-hover);
  }

  #cart-btn svg {
    width: 20px;
    height: 20px;
    color: white;
  }

  #cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
  }

  .overlay-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
  }

  .banner {
    display: none;
  }

  .bannerMobile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px;
  }

  #product-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
    padding-top: 12px;
  }

  .card {
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .card:active {
    transform: scale(0.98);
  }

  .card-title {
    font-size: 13px;
    min-height: 36px;
  }

  .promo-carousel-container {
    margin: 16px;
    padding: 16px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .ordenador {
    margin: 16px;
    padding: 12px;
  }

  .cart-sidebar {
    max-width: 75vw;
    width: 75vw;
  }

  .cart-sidebar > .btn {
    margin: 0 16px 12px;
    max-width: calc(100% - 32px);
  }

  #cart-items, #cart-total {
    padding: 16px;
  }

  .modal-detalhes .modal-content {
    padding: 20px;
  }

  /* Modal de produto responsivo */
  #modal-produto-detalhes .modal-content > div {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #modal-produto-detalhes img {
    max-height: 300px;
    object-fit: contain;
  }

  .componentes-lista {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .categoria-header {
    font-size: 15px;
    padding: 10px 12px;
  }

  .categoria-items {
    padding: 12px;
  }

  .item-componente {
    padding: 10px;
    gap: 10px;
  }

  .item-componente img {
    width: 70px;
    height: 70px;
  }

  .item-componente strong {
    font-size: 13px;
  }

  .item-componente span {
    font-size: 14px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Melhora no touch para bot\u00f5es */
  button, .btn, a.btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Navbar mobile deve ser scroll\u00e1vel suavemente */
  .navbar {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Melhora nos inputs mobile */
  input[type="text"], 
  input[type="email"], 
  input[type="password"], 
  input[type="number"], 
  textarea, 
  select {
    font-size: 16px !important; /* Evita zoom no iOS */
  }

  /* Cards de produtos com melhor resposta ao toque */
  .card {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 480px) {
  .navbar {
    width: 250px;
    padding: 50px 0 15px;
  }

  .nav-dropdown-content {
    max-height: 60vh;
  }

  .nav-dropdown-content a {
    padding: 12px 16px 12px 32px;
    font-size: 13px;
  }

  .nav-dropdown-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }

  .navbar a {
    padding: 12px 16px;
    font-size: 14px;
  }

  #product-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .btn-sm {
    padding: 6px 10px;
    font-size: 11px;
  }

  .componentes-lista {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .categoria-header {
    font-size: 14px;
    padding: 10px;
  }

  .categoria-items {
    padding: 10px;
  }

  .item-componente {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }

  .item-componente img {
    width: 100px;
    height: 100px;
  }

  .item-componente strong {
    font-size: 13px;
  }

  .item-componente span {
    font-size: 15px;
    margin-left: 0;
  }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   BOTÃO WHATSAPP FLUTUANTE
   ═══════════════════════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

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

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AUTHENTICATION PAGES (Login, Register, Recover, Reset)
   ═══════════════════════════════════════════════════════════════ */

/* Simplificar header nas páginas de autenticação */
.auth-page ~ footer,
.auth-page ~ footer.site-footer {
  margin-top: 0;
}

/* Header mais compacto em páginas de autenticação */
body:has(.auth-page) .top-bar {
  padding: 12px 24px;
}

body:has(.auth-page) .top-bar .left-section img {
  height: 50px;
}

body:has(.auth-page) .navbar {
  display: none;
}

body:has(.auth-page) .center-section {
  display: none;
}

body:has(.auth-page) .top-bar {
  justify-content: space-between;
}

.auth-page {
  min-height: calc(100vh - 400px);
  padding: 60px 20px;
  background: var(--color-bg);
}

.auth-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  color: var(--color-text);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-card h3 {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.auth-card p.small {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-card .small {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.auth-card label {
  display: block;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 12px;
}

.auth-card input,
.auth-card select {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.2s;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-card input::placeholder {
  color: var(--color-text-secondary);
}

.auth-card input:disabled {
  background: var(--color-border);
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.auth-inline-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}

.auth-inline-msg:empty {
  display: none;
}

.auth-card .btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: inline-block;
}

.auth-card .btn-primary {
  background: var(--color-primary);
  color: white;
}

.auth-card .btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-card .btn-success {
  background: var(--color-success);
  color: white;
}

.auth-card .btn-success:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.auth-card .btn-warning {
  background: var(--color-warning);
  color: white;
}

.auth-card .btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.auth-card .btn-secondary {
  background: var(--color-border);
  color: var(--color-text);
}

.auth-card .btn-secondary:hover {
  background: var(--color-text-secondary);
}

.auth-card .btn-light {
  background: var(--color-border);
  color: var(--color-text);
}

.auth-card .btn-light:hover {
  background: var(--color-text-secondary);
}

.auth-card .btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.auth-card .btn-ghost:hover {
  background: var(--color-primary);
  color: white;
}

.auth-card .btn-link {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: underline;
}

.auth-card .btn-link:hover {
  color: var(--color-primary-hover);
  background: rgba(59, 130, 246, 0.1);
}

.auth-left {
  grid-column: 1;
}

.auth-right {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .auth-left,
  .auth-right {
    grid-column: 1;
  }
  
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 40px 12px;
  }
  
  .auth-card {
    padding: 24px 20px;
  }
  
  .auth-card h2 {
    font-size: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */

.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.checkout-modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease-out;
  border: 1px solid var(--color-border);
}

/* Estilizar scrollbar do modal */
.checkout-modal-content::-webkit-scrollbar {
  width: 10px;
}

.checkout-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.checkout-modal-content::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

.checkout-modal-content::-webkit-scrollbar-thumb:hover {
  background: #4f5cdb;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.checkout-modal-content h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 600;
}

.checkout-modal-content p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.checkout-modal-content p strong {
  color: var(--color-text);
  font-weight: 500;
}

.checkout-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-modal-buttons .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.checkout-modal-buttons .btn-primary {
  background: var(--color-primary);
  color: white;
}

.checkout-modal-buttons .btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.checkout-modal-buttons .btn-success {
  background: #25D366;
  color: white;
}

.checkout-modal-buttons .btn-success:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.checkout-modal-buttons .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.checkout-modal-buttons .btn-secondary:hover {
  background: var(--color-border);
}

.checkout-modal-buttons .btn-lg {
  padding: 18px 28px;
  font-size: 18px;
}

.checkout-modal-buttons .btn small {
  font-weight: 400;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
  .checkout-modal-content {
    padding: 24px;
    max-height: 85vh;
  }
  
  .checkout-modal-content h3 {
    font-size: 20px;
  }
  
  .checkout-modal-buttons .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .checkout-modal-buttons .btn-lg {
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .enderecos-lista {
    max-height: 300px;
  }
}

/* ============================================
   ENDEREÇOS E FRETE - MODAIS ESTENDIDOS
   ============================================ */

.enderecos-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

/* Estilizar scrollbar para melhor aparência */
.enderecos-lista::-webkit-scrollbar {
  width: 8px;
}

.enderecos-lista::-webkit-scrollbar-track {
  background: var(--color-border);
  border-radius: 4px;
}

.enderecos-lista::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.enderecos-lista::-webkit-scrollbar-thumb:hover {
  background: #4f5cdb;
}

.endereco-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.endereco-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

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

.endereco-header strong {
  color: var(--color-primary);
  font-size: 18px;
}

.badge-padrao {
  background: var(--color-success);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.endereco-info {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.endereco-info p {
  margin: 5px 0;
}

.endereco-info strong {
  color: var(--color-text);
}

.btn-selecionar-endereco {
  margin-top: 15px;
  width: 100%;
}

/* Frete */
.frete-opcoes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.frete-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.frete-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.frete-card.recomendado {
  border-color: var(--color-success);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), transparent);
}

.badge-recomendado {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--color-success);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.frete-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frete-nome {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.frete-nome strong {
  color: var(--color-text);
  font-size: 18px;
}

.frete-servico {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.frete-detalhes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.frete-prazo {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.frete-valor {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
}

.btn-selecionar-frete {
  margin-top: 15px;
  width: 100%;
}

/* Resumo do Pedido */
.resumo-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 15px;
}

.resumo-section h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 10px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.resumo-item:last-child {
  border-bottom: none;
}

.resumo-totais {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.resumo-linha {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--color-text-secondary);
}

.resumo-linha.total {
  border-top: 2px solid var(--color-primary);
  margin-top: 10px;
  padding-top: 15px;
  color: var(--color-text);
  font-size: 20px;
}

.resumo-linha.total strong {
  color: var(--color-primary);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-content {
  text-align: center;
  color: var(--color-text);
}

.loading-content .loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
  .endereco-card,
  .frete-card {
    padding: 15px;
  }
  
  .endereco-header strong,
  .frete-nome strong {
    font-size: 16px;
  }
  
  .frete-valor {
    font-size: 18px;
  }
  
  .resumo-linha.total {
    font-size: 18px;
  }
}

