:root {
  --bg: #ffffff;
  --bg-alt: #f9f9f9;
  --text: #222222;
  --text-muted: #777777;
  --accent: #e3262e; /* Vermelho Renner */
  --accent-hover: #b81c22;
  --border: #e8e8e8;
  --promo-bar-bg: #e3262e;
  --promo-bar-text: #ffffff;
  --header-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-lg: rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
}

/* Modo Escuro Opcional */
body.light-mode {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent: #e3262e;
  --accent-hover: #ff4a50;
  --border: #2d2d2d;
  --promo-bar-bg: #0a0a0a;
  --promo-bar-text: #ffffff;
  --header-bg: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* Links globais */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ==========================================================================
   BARRA PROMOCIONAL DO TOPO
   ========================================================================== */
.promo-bar {
  background: var(--promo-bar-bg);
  color: var(--promo-bar-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 5vw;
  text-align: center;
  z-index: 100;
  position: relative;
}

.promo-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.promo-bar-content .separator {
  opacity: 0.5;
}

/* ==========================================================================
   HEADER ESTILO RENNER (3 níveis)
   ========================================================================== */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background-color 0.3s;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
}

/* Barra de Busca integrada */
.search-bar {
  display: flex;
  flex: 1;
  max-width: 500px;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--text);
}

.search-bar input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 45px 10px 18px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.search-bar button:hover {
  color: var(--text);
}

.search-icon {
  stroke: currentColor;
}

/* Ações do Usuário */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: color 0.2s;
}

.action-btn:hover {
  color: var(--accent);
}

.action-label {
  display: inline-block;
}

/* Dropdown do Usuário */
.user-menu-container {
  position: relative;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 130%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px var(--shadow-lg);
  min-width: 160px;
  padding: 8px 0;
  z-index: 100;
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.user-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.logout-link {
  color: var(--accent) !important;
}

/* Carrinho Sacola */
.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle do Tema */
.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--bg-alt);
}

/* Menu de Categorias Horizontal */
.header-nav {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.header-nav .category-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-cat-item {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-cat-item:hover, .nav-cat-item.active {
  color: var(--accent);
}

.nav-cat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-cat-item.active::after {
  transform: scaleX(1);
}

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.carousel-container {
  width: 100%;
  position: relative;
  aspect-ratio: 2.8 / 1;
  min-height: 280px;
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 5;
  margin-left: 8%;
  max-width: 500px;
  color: #111111;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.slide-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.slide-content h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.slide-content p {
  font-size: 14px;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-shop {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background-color 0.2s;
}

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

/* Controles do Carousel */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, color 0.2s;
}

.carousel-prev:hover, .carousel-next:hover {
  background: var(--accent);
  color: white;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dots .dot.active {
  background: var(--accent);
}

/* ==========================================================================
   BARRA DE BENEFÍCIOS
   ========================================================================== */
.benefits-bar {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg-alt);
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefit-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.benefit-text h4 {
  font-size: 13.5px;
  font-weight: 700;
}

.benefit-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   SEÇÕES GERAIS E COMPRE POR CATEGORIA
   ========================================================================== */
.section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Compre por Categorias (Visual Mosaico) */
.visual-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.visual-cat-card {
  height: 240px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-cat-card:hover .cat-bg {
  transform: scale(1.08);
}

.cat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
  color: #ffffff;
}

.cat-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cat-btn-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.visual-cat-card:hover .cat-btn-text {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   GRID DE PRODUTOS
   ========================================================================== */
.products-section {
  border-top: 1px solid var(--border);
}

.products-grid-container {
  width: 100%;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}

.product {
  background: var(--bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
}

/* Foto do produto e troca no hover */
.product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-img .main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Badge Promo/Tag */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  z-index: 5;
}

/* Hover Info minimalista */
.hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  padding: 12px;
  font-size: 11px;
  color: #333333;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border);
  z-index: 6;
}

body.light-mode .hover-info {
  background: rgba(26, 26, 26, 0.95);
  color: #f5f5f5;
}

.product:hover .hover-info {
  transform: translateY(0);
}

.hover-info b {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
}

/* Thumbs Galeria */
.thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 0 0;
  overflow-x: auto;
}

.thumb {
  width: 40px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.thumb:hover, .thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detalhes do Produto */
.product-info {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info p {
  display: none;
}

.price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

/* Parcelamento calculado */
.price-installments {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Seleção de Tamanhos */
.sizes {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sizes button {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sizes button:hover {
  border-color: var(--text);
}

.sizes button.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Botão adicionar */
.product .btn.primary.add {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s, color 0.2s;
}

.product .btn.primary.add:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ==========================================================================
   DEPOIMENTOS (REVIEWS)
   ========================================================================== */
.reviews-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px var(--shadow);
}

.review-stars {
  color: #ffb100;
  font-size: 14px;
  margin-bottom: 10px;
}

.review-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   SOBRE A MARCA (CLEAN)
   ========================================================================== */
.about-section {
  border-top: 1px solid var(--border);
}

.about-container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.about-brand-content {
  max-width: 800px;
}

.brand-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.about-brand-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
}

.about-brand-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section {
  background: var(--text);
  color: var(--bg);
  padding: 50px 20px;
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-text h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
}

.newsletter-text p {
  font-size: 13.5px;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  flex: 1;
  max-width: 500px;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 18px;
  font-size: 13.5px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #ffffff;
}

.newsletter-form button {
  background: #ffffff;
  color: #111111;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.newsletter-form button:hover {
  background: var(--accent);
  color: white;
}

/* ==========================================================================
   CARRINHO DRAWER LATERAL
   ========================================================================== */
.cart {
  position: fixed;
  top: 0;
  right: -450px;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 1000;
  padding: 24px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.cart.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.cart-header .close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
}

.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item b {
  font-size: 13.5px;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.btn-checkout.whatsapp {
  background: #111111;
  color: white;
}

.btn-checkout.whatsapp:hover {
  background: var(--accent);
}

.btn-checkout.mercadopago {
  background: #009ee3;
  color: white;
}

.btn-checkout.mercadopago:hover {
  background: #007ebb;
}

/* ==========================================================================
   FOOTER PROFISSIONAL
   ========================================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   PAINEL ADMIN E MODAIS (LIMPOS E CLAROS)
   ========================================================================== */
body.admin-mode .promo-bar,
body.admin-mode .main-header,
body.admin-mode main,
body.admin-mode .footer {
  display: none !important;
}

.admin-panel {
  display: none;
  min-height: 100vh;
  background: var(--bg-alt);
  color: var(--text);
  padding: 50px 20px;
}

.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.login-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid var(--accent);
}

.login-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.login-card .input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.login-card input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.login-card input:focus {
  border-color: var(--text);
}

/* Botões do Admin */
.btn {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
  color: var(--text);
}

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

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

.btn.ghost:hover {
  background: var(--bg-alt);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 15px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider span {
  padding: 0 10px;
}

.btn-google {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-google:hover {
  background: var(--bg-alt);
}

.btn-google.full-width {
  width: 100%;
}

.btn-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  margin-top: 15px;
  text-decoration: underline;
}

.btn-cancel:hover {
  color: var(--text);
}

.login-error, .auth-error-msg {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

/* Dashboard Layout */
.admin-dashboard {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 45px var(--shadow);
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 800;
}

.admin-sync-status {
  font-size: 12px;
  color: #44ff7c;
  font-weight: 600;
  margin-top: 4px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.admin-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tabela Admin */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--border-radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.admin-table tbody tr:hover {
  background: var(--bg-alt);
}

.admin-table-thumb {
  width: 45px;
  height: 55px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-cat-badge, .admin-tag-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.admin-tag-badge {
  background: rgba(227, 38, 46, 0.1);
  border-color: rgba(227, 38, 46, 0.2);
  color: var(--accent);
}

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

.btn-delete:hover {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

/* Modal Admin */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 30px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px var(--shadow-lg);
  border-radius: var(--border-radius);
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

/* Modais de Clientes */
.customer-auth-card {
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.auth-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn-auth-submit {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background: var(--accent);
  color: white;
}

.orders-modal-card {
  max-width: 700px;
}

.order-card {
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 15px;
  background: var(--bg-alt);
  border-radius: var(--border-radius);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.order-card-status {
  font-weight: 700;
}

.order-card-status.aprovado {
  color: #2e7d32;
}

.order-card-status.pendente {
  color: #ef6c00;
}

.order-card-total {
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .visual-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .promo-bar {
    font-size: 9.5px;
    padding: 6px 15px;
  }
  .promo-bar-content {
    gap: 5px;
  }
  .header-top {
    padding: 10px 0;
  }
  .search-bar {
    display: none;
  }
  .action-label {
    display: none;
  }
  .carousel-container {
    aspect-ratio: 1.8 / 1;
  }
  .slide-content {
    margin-left: 20px;
    margin-right: 20px;
    max-width: calc(100% - 40px);
    padding: 15px;
  }
  .slide-content h2 {
    font-size: 20px;
  }
  .slide-content p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .btn-shop {
    padding: 8px 18px;
    font-size: 10px;
  }
  .benefits-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .visual-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-stats {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }
  .benefits-container {
    grid-template-columns: 1fr;
  }
  .carousel-container {
    aspect-ratio: 1.5 / 1;
  }
  .visual-category-grid {
    grid-template-columns: 1fr;
  }
  .product-img {
    aspect-ratio: 1 / 1.2;
  }
  .product h3 {
    font-size: 12px;
    height: 34px;
  }
  .price {
    font-size: 14px;
  }
  .newsletter-container {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   PROVADOR VIRTUAL & TABELA DE MEDIDAS (RENNER STYLE)
   ========================================================================== */
.fitting-room-card {
  max-width: 850px;
  width: 95%;
  border-radius: var(--border-radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fitting-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.fitting-room-header h2 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fitting-room-header .close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.fitting-room-body {
  display: flex;
  flex: 1;
  background: var(--bg);
}

/* Coluna Esquerda: Foto do Produto */
.fitting-room-left {
  flex: 0.9;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

#fit-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.body-measures-tab {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 0 99px 99px 0;
  padding: 12px 20px 12px 16px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111111;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
  border-left: none;
  z-index: 10;
}

/* Coluna Direita: Paineis e Manequim Interno */
.fitting-room-right {
  flex: 1.4;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease-out;
}

.step-panel.active {
  display: flex;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Tabelas e Medidas */
.fitting-table {
  width: 100%;
  border-collapse: collapse;
}

.fitting-table th, .fitting-table td {
  font-size: 13px;
  padding: 12px;
}

.fitting-table tr.active-row {
  background: rgba(227, 38, 46, 0.06);
  border-left: 3px solid var(--accent);
}

/* Botões de Ação */
.btn-fit-action {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background-color 0.2s;
  margin-top: auto;
}

.btn-fit-action:hover {
  background: var(--accent);
}

.btn-fit-back {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.btn-fit-back:hover {
  background: var(--bg-alt);
  border-color: var(--text);
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.flex-1 {
  flex: 1;
}

/* Seletor de Gênero */
.gender-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.gender-btn {
  flex: 1;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.gender-btn.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.fit-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.fit-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fit-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.input-unit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg);
}

.input-unit-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 35px 12px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.input-unit-wrapper span {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Sliders e tons de pele */
.sliders-colors-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.skin-tones-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skin-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.skin-btn.active {
  border-color: var(--accent);
  transform: scale(1.15);
}

.sliders-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
}

.slider-labels b {
  color: var(--accent);
}

.slider-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.slider-btn:hover {
  background: var(--bg-alt);
  border-color: var(--text);
}

.slider-input-wrapper input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  background: var(--border);
  height: 4px;
  border-radius: 2px;
  outline: none;
}

.slider-input-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--accent);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}

.slider-input-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Indicadores de Etapa (Bolinhas) */
.step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 25px;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.step-dot.active {
  background: var(--accent);
  width: 14px;
  border-radius: 3px;
}

/* Resultados */
.result-recommendation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.recommended-size-box {
  background: #ffffff;
  border: 2px solid var(--accent);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(227, 38, 46, 0.1);
}

.recommended-size-box .check-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #2e7d32;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid white;
}

.btn-edit-medidas {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-edit-medidas:hover {
  background: var(--bg-alt);
  border-color: var(--text);
}

.fit-feedbacks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.feedback-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.feedback-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.feedback-indicator.fit-ideal {
  background: #2e7d32;
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
}

.feedback-indicator.fit-loose {
  background: #2979ff;
  box-shadow: 0 0 8px rgba(41, 121, 255, 0.4);
}

.feedback-indicator.fit-tight {
  background: #e3262e;
  box-shadow: 0 0 8px rgba(227, 38, 46, 0.4);
}

.alternative-sizes-selector {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.alternative-sizes-selector p {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.alt-sizes-buttons {
  display: flex;
  gap: 10px;
}

.alt-size-btn {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
  text-align: center;
  position: relative;
}

.alt-size-btn.active {
  border-color: var(--accent);
}

.alt-size-btn.active::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  background: #2e7d32;
  color: white;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Link para Tabela de Medidas nos Cards */
.btn-size-guide {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 6px;
  align-self: flex-start;
  transition: color 0.2s;
}

.btn-size-guide:hover {
  color: var(--accent);
}

/* Responsividade do Provador */
@media (max-width: 768px) {
  .fitting-room-card {
    max-height: 92vh;
    overflow-y: auto;
  }
  .fitting-room-body {
    flex-direction: column;
  }
  .fitting-room-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
    min-height: 180px;
  }
  #fit-product-img {
    min-height: 200px;
    height: 200px;
  }
  .fitting-room-right {
    padding: 20px 15px;
  }
  .fit-layout-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .sliders-list {
    width: 100%;
  }
  .skin-tones-selector {
    flex-direction: row !important;
    margin-bottom: 10px;
    gap: 12px;
  }
  .mannequin-wrapper-mini {
    height: 220px;
  }
}

/* Novas Classes do Layout Renner */
.fit-layout-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.fit-layout-horizontal.align-center {
  align-items: center;
}

.mannequin-wrapper-mini {
  width: 160px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  position: relative;
}

.mini-mannequin-svg {
  width: 100%;
  height: 100%;
  max-height: 250px;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.05));
}

.result-left-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.best-choice-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Nova Página de Detalhes de Produto (Tela Cheia) */
.product-details-card {
  max-width: 1050px;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.product-details-header {
  padding: 15px 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.close-details-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
  padding: 6px 0;
}

.close-details-btn:hover {
  color: var(--accent);
}

.product-details-body {
  padding: 30px 40px;
  flex: 1;
}

.product-details-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

/* Coluna Esquerda: Galeria & Zoom */
.details-gallery {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  width: 100%;
}

.details-main-img-container {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

#detailsMainImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
}

.details-zoom-lens {
  position: absolute;
  border: 1px solid rgba(0,0,0,0.15);
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.25);
  display: none;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), inset 0 0 8px rgba(255,255,255,0.6);
  z-index: 10;
}

.details-thumbs {
  display: flex;
  gap: 8px;
}

.details-thumbs .thumb-detail {
  flex: 1;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s;
}

.details-thumbs .thumb-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-thumbs .thumb-detail.active {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}

/* Coluna Direita: Infos & Compra */
.details-info-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.details-tag-badge {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

#detailsName {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text);
  line-height: 1.2;
}

.details-rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.details-rating-summary:hover .reviews-count {
  text-decoration: underline;
  color: var(--accent);
}

.stars-gold {
  color: #fbc02d;
  font-size: 14px;
  letter-spacing: 1px;
}

.reviews-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s;
}

.details-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.details-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.details-price-current {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.details-discount-tag {
  background: #e3262e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.details-installments {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.details-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.details-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.details-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-sizes-grid {
  display: flex;
  gap: 10px;
}

.details-sizes-grid button {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 52px;
  transition: all 0.2s;
}

.details-sizes-grid button.active, .details-sizes-grid button:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.details-size-guide-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all 0.2s;
  width: 100%;
}

.details-size-guide-btn:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.details-add-to-cart-btn {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.details-add-to-cart-btn:hover {
  background: var(--accent);
}

/* Seção de Avaliações */
.product-reviews-section {
  border-top: 1px solid var(--border);
  padding-top: 35px;
  margin-top: 35px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.reviews-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.reviews-header-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.big-rating {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.rating-stars-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.write-review-block {
  background: var(--bg-alt);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.write-review-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.stars-selector {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.stars-selector span {
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.15s;
}

.stars-selector span.active, .stars-selector span:hover {
  color: #fbc02d;
}

.write-review-block textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
}

.write-review-anonymous-alert {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  padding: 15px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 30px;
}

.write-review-anonymous-alert a {
  text-decoration: underline;
  color: var(--accent);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.review-card:last-child {
  border-bottom: none;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-username {
  font-weight: 700;
  font-size: 13px;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-comment {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-line;
}

/* Estilos de Descontos nos Cards do Catálogo */
.price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 500;
}

.price-current {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.discount-badge {
  background: #e3262e;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
}

.discount-percent-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e3262e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Responsividade de Detalhes */
@media (max-width: 768px) {
  .product-details-body {
    padding: 20px 15px;
  }
  .product-details-grid {
    flex-direction: column;
    gap: 25px;
  }
  .details-gallery {
    max-width: 100%;
  }
  #detailsName {
    font-size: 22px;
  }
  .details-sizes-grid button {
    padding: 10px 14px;
    font-size: 12px;
  }
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .product-details-card {
    height: 100%;
    max-height: 100%;
  }
}

/* Modais de Termos e Privacidade */
.legal-modal-card {
  max-width: 600px;
  width: 90%;
  padding: 30px;
  background: var(--bg);
  border-radius: var(--border-radius);
  animation: fadeIn 0.25s ease-out;
}

.legal-modal-content {
  max-height: 350px;
  overflow-y: auto;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: left;
  padding-right: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.legal-modal-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 8px 0;
  color: var(--text);
}

.legal-modal-content p {
  margin-bottom: 12px;
}

/* ==========================================================================
   Checkout details modal and shipping options selector styles
   ========================================================================== */
.checkout-modal-card {
  max-width: 500px;
}

.checkout-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.shipping-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-card:hover {
  border-color: var(--text);
  background: var(--bg);
}

.shipping-card.active {
  border-color: var(--accent);
  background: rgba(227, 38, 46, 0.05);
}

.shipping-card input[type="radio"] {
  width: auto;
  margin-right: 12px;
  cursor: pointer;
}

.shipping-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shipping-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ice);
}

.shipping-card-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.shipping-card-price {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}

/* ==========================================================================
   Timeline / Status tracking progress bar
   ========================================================================== */
.order-tracking-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 25px 0 15px 0;
  padding: 0 10px;
}

.order-tracking-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.order-tracking-timeline-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 2px;
  background: var(--accent);
  z-index: 2;
  transition: width 0.4s ease;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.timeline-step.active .timeline-dot {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(227, 38, 46, 0.4);
}

.timeline-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
  color: var(--ice);
}

.tracking-info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 12px;
}

.tracking-info-title {
  font-weight: bold;
  color: var(--ice);
  margin-bottom: 6px;
}

/* ==========================================================================
   Admin status updater styling
   ========================================================================== */
.admin-status-select {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ice);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.admin-status-select:focus {
  border-color: var(--accent);
}

.admin-tracking-input-wrapper {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.admin-tracking-input {
  padding: 4px 8px;
  font-size: 11px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ice);
  border-radius: 4px;
  width: 120px;
  outline: none;
}

.admin-tracking-input:focus {
  border-color: var(--text);
}


