/* =========================================
   VULTUS STORE - PROFESSIONAL EDITION
   Responsive Design | Performance Optimized
   ========================================= */

/* ============= RESET & BASE ============= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-dark: #000000;
  --bg-secondary: #0a0a0a;
  --bg-panel: #111111;
  --primary: #ffffff;
  --text-muted: #888888;
  --border: #222222;
  --border-light: #333333;
  --accent: #1a1a1a;
  --success: #25d366;
  --danger: #ff3b3b;

  /* Typography */
  --font-primary:
    "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Oswald", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary);
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Images */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-base);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============= LOADING SCREEN ============= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  text-align: center;
}

.loading-logo span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-md);
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  to {
    left: 100%;
  }
}

/* ============= TOAST NOTIFICATIONS ============= */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-tooltip);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
}

.vultus-toast {
  background: var(--primary);
  color: var(--bg-dark);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.vultus-toast::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--bg-dark);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
  }
}

/* ============= HEADER ============= */
.header-container {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.header-container.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img {
  height: clamp(40px, 6vw, 70px);
  width: auto;
  max-width: 250px;
  object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: var(--z-fixed);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Cart Icon */
.cart-icon-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  position: relative;
}

.cart-icon-wrapper:hover {
  border-color: var(--primary);
  background: var(--bg-panel);
  transform: translateY(-2px);
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-count {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 2px 8px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  min-width: 20px;
  text-align: center;
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Navigation */
.nav-container {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.nav-list {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: 0 var(--space-lg);
}

.nav-item {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  background: var(--bg-panel);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 80%;
}

/* ============= HERO SECTION (BANNER) ============= */
.hero-section {
  /* AJUSTE: Altura um pouco menor */
  height: clamp(550px, 85vh, 900px);

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    url("img/PERSONAGENS.png");

  background-size: cover;

  /* Alinhado pelo topo e centro para mostrar cabeças */
  background-position: top center;

  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.2) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: var(--primary);
  color: var(--bg-dark);
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  max-width: 600px;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  font-style: italic;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  font-weight: 500;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ============= BENEFITS BAR ============= */
.benefits-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  max-width: 1400px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.benefit-item:hover {
  color: var(--primary);
  background: var(--bg-panel);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.benefit-item:hover .benefit-icon {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.benefit-text h4 {
  color: var(--primary);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

.benefit-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============= MAIN CONTENT ============= */
.main-content {
  max-width: 1400px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.filter-controls {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.sort-select {
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.sort-select:hover {
  border-color: var(--primary);
}

/* ============= PRODUCTS GRID ============= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image-container,
.product-info-area {
  cursor: pointer;
}

.product-tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.625rem;
  padding: 4px 8px;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-dark);
  margin-bottom: var(--space-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: all 0.5s ease;
}

.img-back {
  opacity: 0;
}

.product-card:hover .img-front {
  opacity: 0;
  transform: scale(1.1);
}

.product-card:hover .img-back {
  opacity: 1;
  transform: scale(1.05);
}

.product-name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  min-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.old-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

/* Botão adicionar ao carrinho no card */
.btn-add-to-cart {
  width: 100%;
  padding: var(--space-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.btn-add-to-cart:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state svg {
  margin: 0 auto var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

/* Loading Skeleton */
.products-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--space-md);
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-panel);
  margin-bottom: var(--space-md);
}

@keyframes skeleton-loading {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============= PRODUCT DETAIL MODAL (Compacto & Ajustado) ============= */
.product-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-sm); /* Reduzi o padding externo */
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.detail-container {
  width: 100%;
  max-width: 1100px; /* Um pouco mais largo para ajudar a caber lado a lado */
  height: auto;
  max-height: 90vh; /* Garante que cabe na tela sem scroll na janela principal */
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Dá um pouco mais de espaço para a imagem */
  gap: var(--space-md);
  padding: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  overflow: hidden; /* Evita que o modal cresça além de 90vh */
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px; /* Menor */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-base);
}

.detail-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.detail-close:hover svg {
  stroke: var(--bg-dark);
}

/* Gallery (Lado Esquerdo) */
.detail-gallery {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center; /* Centraliza verticalmente */
  overflow: hidden;
}

.main-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%; /* Ocupa a altura disponível */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.main-media-container {
  width: 100%;
  height: 100%;
  max-height: 65vh; /* Limita a altura da imagem para não estourar a tela */
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Garante que a imagem inteira apareça sem cortes */
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0.7;
  z-index: 10;
}

.gallery-nav:hover {
  opacity: 1;
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-nav:hover svg {
  stroke: var(--bg-dark);
}

.gallery-nav.prev {
  left: 10px;
}
.gallery-nav.next {
  right: 10px;
}

.thumbs-list {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 5px;
  height: 60px; /* Altura fixa para as miniaturas */
}

.thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.5;
  transition: all var(--transition-base);
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Product Info (Lado Direito) */
.detail-info {
  display: flex;
  flex-direction: column;
  /* Reduzi o gap drasticamente para caber tudo */
  gap: 12px;
  overflow-y: auto; /* Scroll apenas aqui se o texto for gigante */
  padding-right: 5px;
  height: 100%;
}

/* Scrollbar fina para o texto */
.detail-info::-webkit-scrollbar {
  width: 4px;
}
.detail-info::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
.detail-info::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 2px;
}

.detail-category {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: -5px; /* Puxa o título para cima */
}

.detail-name {
  font-family: var(--font-display);
  font-size: 1.8rem; /* Um pouco menor */
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

.detail-price {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.detail-old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Menos espaço entre título e texto */
}

.info-title {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem; /* Títulos menores */
  border-left: 3px solid var(--primary);
  padding-left: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.info-text {
  color: var(--text-muted);
  font-size: 0.85rem; /* Texto menor */
  line-height: 1.4;
  white-space: pre-line;
  max-height: 60px; /* Limita altura do texto */
  overflow-y: auto; /* Scroll se texto for muito longo */
}

/* Size & Color Selector */
.size-selector {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 40px; /* Botões mais compactos */
  padding: 6px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.8rem;
}

.size-option:hover,
.size-option.selected {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* Add to Cart Button */
.btn-add-cart-large {
  width: 100%;
  padding: 12px; /* Botão um pouco mais fino */
  background: var(--primary);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: auto; /* Empurra para o fundo se sobrar espaço */
}

.btn-add-cart-large:hover {
  background: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Product Meta */
.product-meta {
  display: flex;
  flex-direction: row; /* Meta em linha para economizar altura */
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Mobile Responsive para o Modal */
@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
    height: 100vh;
    max-height: 100vh;
    border: none;
    overflow-y: auto; /* Scroll na vertical para mobile */
    display: flex;
    flex-direction: column;
  }

  .detail-gallery {
    height: auto;
    flex-shrink: 0;
  }

  .main-media-container {
    max-height: 40vh;
  }

  .detail-info {
    overflow-y: visible;
    height: auto;
  }
}
/* ============= CART MODAL ============= */
.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  justify-content: flex-end;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.cart-sidebar {
  width: 100%;
  max-width: 450px;
  background: var(--bg-secondary);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  position: relative;
  z-index: 1;
  animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
}

.cart-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.cart-close:hover svg {
  stroke: var(--bg-dark);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cart-item-info h4 {
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.cart-item-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.btn-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: auto;
}

.btn-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  font-weight: 700;
}

.total-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.btn-whatsapp {
  width: 100%;
  padding: var(--space-md);
  background: var(--success);
  color: var(--primary);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--transition-base);
  letter-spacing: 0.05em;
}

.btn-whatsapp:hover {
  background: #1ea952;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-clear-cart {
  width: 100%;
  padding: var(--space-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: all var(--transition-base);
}

.btn-clear-cart:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ============= FOOTER ============= */
.footer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-column h3,
.footer-column h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.footer-column p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-column ul li a:hover {
  color: var(--primary);
  padding-left: var(--space-xs);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-links a:hover svg {
  fill: var(--bg-dark);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-primary);
  transition: border-color var(--transition-base);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  outline: none;
}

.newsletter-form button {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-form button:hover {
  background: var(--text-muted);
  transform: translateY(-2px);
}

.newsletter-form button svg {
  stroke: var(--bg-dark);
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.payment-methods img {
  height: 24px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.payment-methods img:hover {
  opacity: 1;
}

/* NOVO: Botão de Acesso Admin no Footer */
#btnAdminAccess {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-right: 10px;
  transition: color var(--transition-base);
}

#btnAdminAccess:hover {
  color: var(--text-muted);
}

/* ============= RESPONSIVE DESIGN ============= */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
  }

  .detail-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .detail-gallery {
    position: relative;
  }
}

/* Mobile Landscape & Small Tablets (600px - 768px) */
@media (max-width: 768px) {
  .header-content {
    padding: var(--space-sm) var(--space-md);
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .cart-icon-wrapper {
    order: 3;
  }

  .nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    transition: left var(--transition-base);
    z-index: var(--z-fixed);
  }

  .nav-container.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-2xl) var(--space-lg);
  }

  .nav-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
  }

  /* AJUSTE MOBILE DO BANNER */
  .hero-section {
    height: 75vh;
    background-position: top center;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 0 var(--space-md);
    margin-top: 40vh;
    text-align: center;
  }

  .benefits-bar {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .btn-add-to-cart {
    font-size: 0.7rem;
    padding: var(--space-xs);
  }

  .detail-container {
    padding: var(--space-lg);
    max-height: 100vh;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Portrait (up to 600px) */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    gap: var(--space-xs);
  }

  .product-card {
    padding: var(--space-sm);
  }

  .product-name {
    font-size: 0.8125rem;
    min-height: 35px;
  }

  .current-price {
    font-size: 1.125rem;
  }

  .detail-close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
  }

  .thumbs-list {
    gap: var(--space-xs);
  }

  .thumb {
    width: 60px;
    height: 60px;
  }

  .toast-container {
    top: var(--space-sm);
    right: var(--space-sm);
    left: var(--space-sm);
    max-width: 100%;
  }
}

/* Extra Small Devices (up to 380px) */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 4px var(--space-sm);
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }
}

/* Print Styles */
@media print {
  .header-container,
  .nav-container,
  .hero-section,
  .benefits-bar,
  .footer-section,
  .cart-modal,
  .product-detail-modal,
  .toast-container,
  .loading-screen {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .product-card {
    break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: #555555;
    --border-light: #666666;
    --text-muted: #aaaaaa;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Override (if system preference changes) */
@media (prefers-color-scheme: light) {
  /* Keep dark theme - this is a dark-themed store */
}

/* =========================================
   NOVO: MODAL DE SENHA ADMIN (CUSTOMIZADO)
   ========================================= */
.admin-modal {
  display: none; /* Oculto por padrão */
  position: fixed;
  inset: 0;
  z-index: var(--z-modal); /* Fica acima de tudo */
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(8px); /* Desfoque no fundo */
  background: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
}

.admin-modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--primary);
  padding: var(--space-xl);
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(0);
  animation: slideUp 0.3s ease;
}

.admin-modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
}

.admin-modal p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.admin-input {
  width: 100%;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-family: var(--font-primary);
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.2em; /* Espaçamento para senha ficar estilo **** */
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.admin-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.btn-admin-confirm {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 10px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
}

.btn-admin-confirm:hover {
  background: transparent;
  color: var(--primary);
}

.btn-admin-cancel {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.btn-admin-cancel:hover {
  color: var(--danger);
}

/* Animações simples */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
