/**
 * Components.css - Componentes Específicos Template Luxe
 * Animações, hover effects e responsividade avançada
 */

/* === HEADER COMPONENTS === */
.luxe-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.luxe-logo {
  transition: all var(--luxe-transition-normal);
}

.luxe-logo:hover {
  transform: scale(1.05);
}

.luxe-search-bar {
  position: relative;
  overflow: hidden;
}

.luxe-search-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--palette-rgba-212-175-55-0-1),
    transparent
  );
  transition: left 0.5s;
}

.luxe-search-bar:focus-within::before {
  left: 100%;
}

.luxe-header-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--luxe-transition-normal);
}

.luxe-header-dropdown.active,
.luxe-header-item:hover .luxe-header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* === NAVIGATION COMPONENTS === */
.luxe-nav-item {
  position: relative;
  overflow: hidden;
}

.luxe-nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--luxe-gradient-primary);
  transition: all var(--luxe-transition-normal);
  transform: translateX(-50%);
}

.luxe-nav-item:hover::before,
.luxe-nav-item.active::before {
  width: 100%;
}

.luxe-nav-link {
  position: relative;
  transition: all var(--luxe-transition-fast);
}

.luxe-nav-link:hover {
  transform: translateY(-2px);
}

/* === MEGAMENU COMPONENTS === */
.category-menu {
  background: var(--category-menu-surface, #ffffff);
  border-color: var(--category-menu-border, #e5e7eb);
  color: var(--category-menu-text, #1f2937);
}

/* O menu pode receber uma quantidade variável de categorias. Mantemos os
   itens inteiros e permitimos novas linhas quando a largura disponível não
   comportar todos eles, inclusive em tablets na horizontal. */
.category-menu-items {
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 1rem;
}

.category-menu-items--tablet {
  column-gap: 1.5rem;
  row-gap: .75rem;
}

.category-menu-items > :is(.category-menu-item, .category-menu-link) {
  flex: 0 0 auto;
  min-width: 0;
}

.category-menu-link,
.category-mobile-toggle,
.category-mobile-heading {
  color: var(--category-menu-text, #1f2937);
}

.category-menu-link:hover,
.category-menu-link:focus-visible,
.category-mobile-toggle:hover,
.category-mobile-toggle:focus-visible,
.category-mobile-heading:hover,
.category-mobile-heading:focus-visible {
  color: var(--category-menu-hover, #e11d48);
}

.category-megamenu-panel {
  background: var(--category-menu-surface, #ffffff);
  border-color: var(--category-menu-border, #ffe4e6);
  color: var(--category-menu-text, #1f2937);
}

.category-megamenu-heading {
  border-color: var(--category-menu-border, #ffe4e6);
  color: var(--category-menu-text, #1f2937);
}

.category-megamenu-heading:hover,
.category-megamenu-heading:focus-visible,
.category-megamenu-link:hover,
.category-megamenu-link:focus-visible,
.category-megamenu-action:hover,
.category-megamenu-action:focus-visible {
  color: var(--category-menu-hover, #be123c);
}

.category-megamenu-icon,
.category-megamenu-action {
  color: var(--category-menu-accent, #f43f5e);
}

.category-megamenu-link,
.category-mobile-child {
  color: var(--category-menu-muted, #4b5563);
}

.category-megamenu-footer,
.category-mobile-block {
  border-color: var(--category-menu-border, #ffe4e6);
}

.category-mobile-toggle:hover,
.category-mobile-toggle:focus-visible {
  background: var(--category-menu-hover-bg, #fff1f2);
}

.category-mobile-child:hover,
.category-mobile-child:focus-visible {
  border-color: var(--category-menu-accent, #f43f5e);
  color: var(--category-menu-hover, #be123c);
}

.luxe-megamenu {
  background: var(--palette-rgba-255-255-255-0-95-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.luxe-megamenu-item {
  transition: all var(--luxe-transition-normal);
  border-radius: var(--luxe-radius-lg);
}

.luxe-megamenu-item:hover {
  background: var(--luxe-gradient-primary);
  color: var(--luxe-white);
  transform: translateX(8px);
  box-shadow: var(--luxe-shadow-gold);
}

.luxe-megamenu-category {
  position: relative;
}

.luxe-megamenu-category::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid var(--luxe-gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity var(--luxe-transition-fast);
}

.luxe-megamenu-category:hover::after {
  opacity: 1;
}

/* === PRODUCT CARD COMPONENTS === */
.luxe-product-card {
  background: var(--luxe-white);
  border-radius: var(--luxe-radius-2xl);
  overflow: hidden;
  transition: all var(--luxe-transition-normal);
  position: relative;
}

.luxe-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--luxe-gradient-primary);
  opacity: 0;
  transition: opacity var(--luxe-transition-normal);
  z-index: 1;
}

.luxe-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--luxe-shadow-2xl);
}

.luxe-product-card:hover::before {
  opacity: 0.05;
}

.luxe-product-image {
  position: relative;
  overflow: hidden;
}

.luxe-product-image img {
  transition: transform var(--luxe-transition-slow);
}

.luxe-product-card:hover .luxe-product-image img {
  transform: scale(1.1);
}

.luxe-product-badge {
  position: absolute;
  top: var(--luxe-space-3);
  left: var(--luxe-space-3);
  background: var(--luxe-gradient-primary);
  color: var(--luxe-white);
  padding: var(--luxe-space-1) var(--luxe-space-3);
  border-radius: var(--luxe-radius-full);
  font-size: var(--luxe-text-xs);
  font-weight: var(--luxe-font-bold);
  z-index: 2;
  animation: luxe-pulse-gold 2s infinite;
}

.luxe-product-actions {
  position: absolute;
  top: var(--luxe-space-3);
  right: var(--luxe-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--luxe-space-2);
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--luxe-transition-normal);
  z-index: 2;
}

.luxe-product-card:hover .luxe-product-actions {
  opacity: 1;
  transform: translateX(0);
}

.luxe-product-action {
  width: 40px;
  height: 40px;
  background: var(--luxe-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--luxe-shadow-md);
  transition: all var(--luxe-transition-fast);
  cursor: pointer;
}

.luxe-product-action:hover {
  background: var(--luxe-gold);
  color: var(--luxe-white);
  transform: scale(1.1);
}

.luxe-product-info {
  padding: var(--luxe-space-6);
  position: relative;
  z-index: 2;
}

.luxe-product-title {
  font-family: var(--luxe-font-primary);
  font-weight: var(--luxe-font-semibold);
  margin-bottom: var(--luxe-space-2);
  transition: color var(--luxe-transition-fast);
}

.luxe-product-card:hover .luxe-product-title {
  color: var(--luxe-gold);
}

.luxe-product-price {
  display: flex;
  align-items: center;
  gap: var(--luxe-space-2);
  margin-bottom: var(--luxe-space-4);
}

.luxe-product-price-current {
  font-size: var(--luxe-text-xl);
  font-weight: var(--luxe-font-bold);
  color: var(--luxe-gold);
}

.luxe-product-price-old {
  font-size: var(--luxe-text-sm);
  color: var(--luxe-gray-500);
  text-decoration: line-through;
}

.luxe-product-rating {
  display: flex;
  align-items: center;
  gap: var(--luxe-space-1);
  margin-bottom: var(--luxe-space-4);
}

.luxe-product-star {
  color: var(--luxe-gold);
  font-size: var(--luxe-text-sm);
}

.luxe-product-star.empty {
  color: var(--luxe-gray-300);
}

/* === BUTTON COMPONENTS === */
.luxe-btn-floating {
  position: fixed;
  bottom: var(--luxe-space-6);
  right: var(--luxe-space-6);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--luxe-gradient-primary);
  color: var(--luxe-white);
  border: none;
  cursor: pointer;
  box-shadow: var(--luxe-shadow-xl);
  transition: all var(--luxe-transition-normal);
  z-index: var(--luxe-z-fixed);
}

.luxe-btn-floating:hover {
  transform: scale(1.1);
  box-shadow: var(--luxe-shadow-2xl);
}

.luxe-btn-ripple {
  position: relative;
  overflow: hidden;
}

.luxe-btn-ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--palette-rgba-255-255-255-0-3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.luxe-btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* === MODAL COMPONENTS === */
.luxe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--palette-rgba-0-0-0-0-5-2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--luxe-z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--luxe-transition-normal);
}

.luxe-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.luxe-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--luxe-white);
  border-radius: var(--luxe-radius-2xl);
  box-shadow: var(--luxe-shadow-2xl);
  z-index: var(--luxe-z-modal);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  transition: all var(--luxe-transition-normal);
}

.luxe-modal-overlay.active .luxe-modal {
  transform: translate(-50%, -50%) scale(1);
}

/* === TOAST COMPONENTS === */
.luxe-toast {
  position: fixed;
  top: var(--luxe-space-6);
  right: var(--luxe-space-6);
  background: var(--luxe-white);
  border-radius: var(--luxe-radius-xl);
  box-shadow: var(--luxe-shadow-xl);
  padding: var(--luxe-space-4) var(--luxe-space-6);
  z-index: var(--luxe-z-toast);
  transform: translateX(100%);
  transition: transform var(--luxe-transition-normal);
}

.luxe-toast.active {
  transform: translateX(0);
}

.luxe-toast-success {
  border-left: 4px solid var(--luxe-success);
}

.luxe-toast-warning {
  border-left: 4px solid var(--luxe-warning);
}

.luxe-toast-error {
  border-left: 4px solid var(--luxe-error);
}

.luxe-toast-info {
  border-left: 4px solid var(--luxe-info);
}

/* === LOADING COMPONENTS === */
.luxe-skeleton {
  background: linear-gradient(
    90deg,
    var(--luxe-gray-200) 25%,
    var(--luxe-gray-100) 50%,
    var(--luxe-gray-200) 75%
  );
  background-size: 200% 100%;
  animation: luxe-shimmer 1.5s infinite;
  border-radius: var(--luxe-radius);
}

.luxe-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--palette-rgba-255-255-255-0-8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--luxe-z-modal);
}

.luxe-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--luxe-gray-200);
  border-top: 4px solid var(--luxe-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* === PAGINATION COMPONENTS === */
.luxe-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--luxe-space-2);
}

.luxe-pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--luxe-radius-lg);
  font-weight: var(--luxe-font-medium);
  transition: all var(--luxe-transition-fast);
  cursor: pointer;
}

.luxe-pagination-item:hover {
  background: var(--luxe-gold);
  color: var(--luxe-white);
  transform: translateY(-2px);
}

.luxe-pagination-item.active {
  background: var(--luxe-gradient-primary);
  color: var(--luxe-white);
}

/* === BREADCRUMB COMPONENTS === */
.luxe-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--luxe-space-2);
  font-size: var(--luxe-text-sm);
}

.luxe-breadcrumb-item {
  color: var(--luxe-gray-600);
  transition: color var(--luxe-transition-fast);
}

.luxe-breadcrumb-item:hover {
  color: var(--luxe-gold);
}

.luxe-breadcrumb-item.active {
  color: var(--luxe-dark);
  font-weight: var(--luxe-font-medium);
}

.luxe-breadcrumb-separator {
  color: var(--luxe-gray-400);
}

/* Breadcrumb da página do produto: mantém a trilha em uma única linha no
   mobile e permite o gesto horizontal sem exibir uma barra de rolagem. */
.product-breadcrumb {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-breadcrumb > i,
.product-breadcrumb > a {
  flex: 0 0 auto;
}

.product-breadcrumb::-webkit-scrollbar {
  display: none;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 767px) {
  .luxe-product-card {
    border-radius: var(--luxe-radius-xl);
  }
  
  .luxe-product-info {
    padding: var(--luxe-space-4);
  }
  
  .luxe-btn-floating {
    width: 50px;
    height: 50px;
    bottom: var(--luxe-space-4);
    right: var(--luxe-space-4);
  }
  
  .luxe-modal {
    margin: var(--luxe-space-4);
    max-width: calc(100vw - 2rem);
  }
  
  .luxe-toast {
    top: var(--luxe-space-4);
    right: var(--luxe-space-4);
    left: var(--luxe-space-4);
    transform: translateY(-100%);
  }
  
  .luxe-toast.active {
    transform: translateY(0);
  }
}

/* === PRINT STYLES === */
@media print {
  .luxe-product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--luxe-gray-300);
  }
  
  .luxe-btn-floating,
  .luxe-modal-overlay,
  .luxe-toast {
    display: none;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.luxe-focus-visible:focus-visible {
  outline: 2px solid var(--luxe-gold);
  outline-offset: 2px;
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
  .luxe-product-card {
    border: 2px solid var(--luxe-dark);
  }
  
  .luxe-btn {
    border: 2px solid currentColor;
  }
}

/* === EXCLUSIVE PRODUCTS SECTION === */
.luxe-exclusive-products-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.luxe-exclusive-products-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--palette-rgba-212-175-55-0-03) 0%,
    transparent 70%
  );
  animation: luxe-rotate 60s linear infinite;
}

@keyframes luxe-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.luxe-grid-exclusive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.luxe-frete-badge {
  background: var(--palette-10b981);
  color: var(--palette-white);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 6px var(--palette-rgba-0-0-0-0-1);
}

.luxe-discount-badge {
  background: var(--palette-ef4444);
  color: var(--palette-white);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 4px 6px var(--palette-rgba-0-0-0-0-1);
}

.luxe-registration-notice {
  border: 2px dashed var(--theme-accent);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.luxe-registration-notice:hover {
  border-color: var(--theme-accent-dark);
  transform: translateY(-2px);
}

.luxe-price-boleto {
  position: relative;
}

.luxe-price-boleto::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--theme-accent);
  border-radius: 9999px;
}

.luxe-price-cartao {
  font-size: 0.875rem;
  color: var(--theme-text-muted);
}

.luxe-quantity-selector {
  background: var(--theme-surface);
  border-radius: 0.5rem;
  padding: 0.5rem;
  transition: all 0.2s;
}

.luxe-quantity-selector:hover {
  background: var(--theme-border);
}

.luxe-quantity-input {
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.luxe-quantity-input:focus {
  border-color: var(--theme-accent);
  background: var(--theme-product-surface);
}

.luxe-quantity-btn {
  background: var(--theme-border);
  border: none;
  color: var(--theme-text);
  transition: all 0.2s;
  cursor: pointer;
}

.luxe-quantity-btn:hover {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
}

.luxe-out-of-stock-notice,
.luxe-quote-button,
.luxe-whatsapp-button {
  transition: all 0.2s;
}

.luxe-out-of-stock-notice:hover,
.luxe-quote-button:hover,
.luxe-whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px var(--palette-rgba-0-0-0-0-1);
}

/* Responsive adjustments for exclusive products */
@media (max-width: 1024px) {
  .luxe-grid-exclusive {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .luxe-grid-exclusive {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .luxe-product-info {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .luxe-grid-exclusive {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .luxe-quantity-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .luxe-quantity-controls {
    flex-direction: row;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Animation for product cards */
.luxe-exclusive-product {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxe-exclusive-product.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* === PREMIUM PRODUCTS SECTION === */
.luxe-premium-products-section {
  background: var(--theme-background);
  padding: 60px 0;
}

.luxe-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: var(--theme-product-surface);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--palette-rgba-0-0-0-0-1);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 4px 16px var(--palette-rgba-0-0-0-0-15);
}

/* Product Image */
.product-image {
  position: relative;
  overflow: hidden;
  background: var(--theme-product-surface);
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--palette-white);
  text-align: center;
}

.badge-frete {
  background: var(--palette-28a745);
}

.badge-desconto {
  background: var(--palette-dc3545);
}

/* Quick View Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--palette-rgba-0-0-0-0-5-2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-quickview {
  background: var(--theme-surface);
  color: var(--theme-text);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-quickview:hover {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
  transform: scale(1.1);
}

/* Product Info */
.product-info {
  padding: 20px;
}

.product-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.product-title a {
  color: var(--theme-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: var(--theme-accent);
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.rating-count {
  font-size: 14px;
  color: var(--theme-text-muted);
}

/* Login Required */
.login-required {
  margin-bottom: 15px;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--palette-f8f9fa);
  border: 2px dashed var(--palette-007bff);
  border-radius: 6px;
  color: var(--palette-007bff);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--palette-e3f2fd);
  border-color: var(--palette-0056b3);
  color: var(--palette-0056b3);
}

/* Product Prices */
.product-prices {
  margin-bottom: 20px;
}

.price-boleto {
  background: var(--palette-fff3cd);
  border: 1px solid var(--palette-ffeaa7);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
}

.price-label {
  display: block;
  font-size: 12px;
  color: var(--palette-856404);
  margin-bottom: 5px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--palette-856404);
}

.price-normal {
  text-align: center;
  margin-bottom: 8px;
}

.price-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--theme-text);
  margin-right: 8px;
}

.price-old {
  font-size: 14px;
  color: var(--theme-text-muted);
  text-decoration: line-through;
}

.price-installments {
  text-align: center;
  font-size: 14px;
  color: var(--theme-text-muted);
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid var(--palette-ddd);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  background: var(--palette-f8f9fa);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: var(--palette-e9ecef);
}

.qty-input {
  border: none;
  padding: 8px 12px;
  width: 60px;
  text-align: center;
  font-weight: 500;
}

.qty-input:focus {
  outline: none;
  background: var(--palette-f8f9fa);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-cart {
  background: var(--palette-007bff);
  color: var(--palette-white);
}

.btn-cart:hover {
  background: var(--palette-0056b3);
  transform: translateY(-1px);
}

.btn-notify {
  background: var(--palette-ffc107);
  color: var(--palette-212529);
}

.btn-notify:hover {
  background: var(--palette-e0a800);
}

.btn-quote {
  background: var(--palette-6c757d);
  color: var(--palette-white);
}

.btn-quote:hover {
  background: var(--palette-545b62);
}

.btn-whatsapp {
  background: var(--palette-25d366);
  color: var(--palette-white);
}

.btn-whatsapp:hover {
  background: var(--palette-1da851);
}

/* Responsive Design */
@media (max-width: 768px) {
  .luxe-grid-premium {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .luxe-grid-premium {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .quantity-selector {
    flex-direction: row;
  }
  
  .qty-input {
    width: 50px;
  }
}

/* Clean animations */
.product-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.product-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states for accessibility */
.btn:focus,
.qty-btn:focus,
.qty-input:focus {
  outline: 2px solid var(--palette-007bff);
  outline-offset: 2px;
}

/* Loading state */
.product-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--palette-rgba-255-255-255-0-8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === PRODUCT DETAILS PAGE COMPONENTS === */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--theme-border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.quantity-btn {
  background: var(--theme-surface);
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--theme-text);
}

.quantity-btn:hover {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
}

.quantity-input {
  border: none;
  padding: 0.75rem 1.5rem;
  width: 80px;
  text-align: center;
  font-weight: 600;
  color: var(--theme-text);
  background: var(--theme-product-surface);
}

.quantity-input:focus {
  outline: none;
}

/* Tab System - Product Page */
.tab-button {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--theme-text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button:hover {
  color: var(--theme-accent);
  border-bottom-color: color-mix(in srgb, var(--theme-accent) 30%, transparent);
}

/* Aba ativa: texto na cor do texto (dourado sobre branco não passa de 4,5:1), sublinhado no destaque */
.tab-button.active {
  color: var(--theme-text);
  border-bottom-color: var(--theme-accent);
}

/* Tab Navigation Container */
.tab-navigation {
  background: var(--theme-surface);
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0 1rem;
  margin-bottom: 0;
  box-shadow: 0 1px 3px var(--palette-rgba-0-0-0-0-05);
}

/* Tab Content Container */
.tab-content {
  background: var(--theme-surface);
  padding: 2rem;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 1px 3px var(--palette-rgba-0-0-0-0-1);
  animation: fadeIn 0.3s ease-in;
  margin-bottom: 2rem;
}

/* Conteúdo rico segue a paleta semântica do tema ativo. */
.prose {
  --tw-prose-body: var(--theme-text);
  --tw-prose-headings: var(--theme-text);
  --tw-prose-lead: var(--theme-text-muted);
  --tw-prose-links: var(--theme-accent);
  --tw-prose-bold: var(--theme-text);
  --tw-prose-counters: var(--theme-text-muted);
  --tw-prose-bullets: var(--theme-border);
  --tw-prose-hr: var(--theme-border);
  --tw-prose-quotes: var(--theme-text);
  --tw-prose-quote-borders: var(--theme-border);
  --tw-prose-captions: var(--theme-text-muted);
  --tw-prose-code: var(--theme-text);
  --tw-prose-th-borders: var(--theme-border);
  --tw-prose-td-borders: var(--theme-border);
}

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

/* === PRODUCT METADATA SEPARATORS === */
/* Oculta separadores quando elementos adjacentes estão ocultos */
.product-metadata-separator {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--theme-border);
}

/* Oculta separador se o próximo elemento visível estiver oculto */
span[style*="display: none"] + .text-gray-300,
span[style*="display:none"] + .text-gray-300 {
  display: none !important;
}

/* Oculta separador se o elemento anterior estiver oculto */
.text-gray-300:has(+ span[style*="display: none"]),
.text-gray-300:has(+ span[style*="display:none"]) {
  display: none !important;
}

/* Fallback: oculta separador órfão no final da linha */
.flex.flex-wrap > .text-gray-300:last-child {
  display: none !important;
}

/* === OCULTAR ELEMENTOS VAZIOS === */
/* Oculta divs com style="none" (provavelmente erro de display:none) */
div[style="none;"],
div[style="none"] {
  display: none !important;
}

/* Oculta spans vazios (sem texto, apenas com ícone ou totalmente vazios) */
span.inline-flex.items-center:empty,
span.text-green-700:empty,
span.font-mono:empty {
  display: none !important;
}

/* Oculta badges de condição do produto quando vazios */
.inline-flex.items-center.bg-green-600:has(> i.fa-check-circle):not(:has(+ *:not(:empty))) {
  display: none !important;
}

/* Oculta elementos span vazios dentro de metadados do produto */
.flex.flex-wrap.items-center span:empty:not(.text-gray-300) {
  display: none !important;
}

/* === PRODUCT PAGE STYLES === */
/* O coração vem das vitrines com position:absolute; aqui ele é um botão do cabeçalho */
.product-favorite .favorite-btn-content {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
  background: transparent !important;
  border-radius: 9999px !important;
  color: var(--theme-text-muted);
  transition: color 0.2s, background 0.2s;
}

.product-favorite .favorite-btn-content:hover {
  background: var(--theme-border);
  color: var(--palette-ef4444);
  transform: none;
}

.product-favorite .favorite-btn-content.active,
.product-favorite .favorite-btn-content .fas.fa-heart {
  color: var(--palette-ef4444);
}

/* Product Gallery Styles */
.product-gallery-column {
  --gallery-aspect: 1;
  --gallery-max-height: 620px;
  --gallery-thumb-size: 84px;
  width: 100%;
}

/* Estreita a galeria conforme a proporção real da foto, evitando faixas brancas */
.product-gallery-main,
.product-gallery-thumbs {
  width: 100%;
  max-width: min(100%, calc(var(--gallery-max-height) * var(--gallery-aspect)));
  margin-inline: auto;
}

.product-gallery-thumbs {
  margin-top: 0.75rem;
}

/* No grid a coluna esticaria e a régua de miniaturas herdaria uma altura enorme,
   transbordando por cima das abas e roubando os cliques */
.product-gallery-column { align-self: start; }

/* vitrines.css aplica padding: 20px 0 60px em qualquer .swiper */
.product-gallery-main .swiper,
.product-gallery-thumbs .swiper {
  padding: 0;
}

.product-gallery-thumbs .swiper,
.product-gallery-thumbs .swiper-wrapper {
  height: var(--gallery-thumb-size);
}

.product-gallery-stage {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--theme-product-surface);
}

.product-gallery-main .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--gallery-max-height);
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-gallery-stage:hover img {
  transform: scale(1.06);
}

.product-gallery-zoom-hint {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--palette-rgba-255-255-255-0-9);
  color: var(--theme-text);
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-gallery-stage:hover .product-gallery-zoom-hint {
  opacity: 1;
}

/* Uma imagem só: não faz sentido mostrar a régua de miniaturas */
.product-gallery-thumbs:not(.has-multiple) {
  display: none;
}

.product-gallery-thumbs .swiper-slide {
  width: var(--gallery-thumb-size);
  height: var(--gallery-thumb-size);
  cursor: pointer;
}

.product-gallery-thumbs .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.25s, border-color 0.25s;
}

.product-gallery-thumbs .swiper-slide:hover img {
  opacity: 0.85;
}

.product-gallery-thumbs .swiper-slide-thumb-active img {
  opacity: 1;
  border-color: var(--theme-accent);
}

/* Vídeo enviado pelo lojista: ocupa a mesma área da foto, sem zoom nem lightbox */
.product-gallery-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--gallery-aspect);
  max-height: var(--gallery-max-height);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--palette-black, #000);
}

.product-gallery-video-stage .plyr,
.product-gallery-video-stage video {
  width: 100%;
  height: 100%;
}

.product-gallery-video-stage video {
  object-fit: contain;
}

.product-gallery-video-thumb {
  position: relative;
}

.product-gallery-video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  background: var(--palette-black, #000);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.25s, border-color 0.25s;
}

.product-gallery-video-thumb:hover video {
  opacity: 0.85;
}

.product-gallery-video-thumb.swiper-slide-thumb-active video {
  opacity: 1;
  border-color: var(--theme-accent);
}

.product-gallery-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--palette-white, #fff);
  font-size: 1.1rem;
  text-shadow: 0 1px 4px var(--palette-rgba-0-0-0-0-5, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.product-uploaded-video {
  background: var(--palette-black, #000);
}

.product-uploaded-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
  .product-gallery-column {
    --gallery-max-height: 460px;
    --gallery-thumb-size: 64px;
  }
}

/* Variation Color Options - Moderno */
.variation-color-option {
  position: relative;
  min-width: 120px;
  height: 60px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px var(--palette-rgba-0-0-0-0-1);
}

.variation-color-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--palette-rgba-0-0-0-0-15);
}

.variation-color-option.scale-105 {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--palette-rgba-212-175-55-0-3);
}

/* Variation Select Dropdown */
.variation-select {
  font-size: 16px;
  transition: all 0.3s ease;
}

.variation-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--palette-rgba-212-175-55-0-1);
}

/* Variation Step Animation */
.variation-step {
  animation: slideInUp 0.4s ease-out;
}

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

/* Color Options - Old (compatibilidade) */
.color-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.color-option.active {
  border-color: var(--theme-accent);
  transform: scale(1.1);
  box-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent) 50%, transparent);
}

/* Storage Options */
.storage-option {
  cursor: pointer;
  transition: all 0.3s;
}

.storage-option.active {
  background-color: var(--theme-accent);
  color: var(--theme-accent-text);
  transform: scale(1.05);
}

/* Quantity Selector */
.quantity-selector input[type="number"]::-webkit-inner-spin-button,
.quantity-selector input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.quantity-selector input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--theme-accent);
  background: var(--theme-surface);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--palette-rgba-0-0-0-0-1-2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

/* Rating Stars */
#btnOpenAccordion {
  text-decoration: none;
  display: inline-flex;
  gap: 2px;
}

/* Product Details Mobile Responsive */
@media (max-width: 1024px) {
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .quantity-selector {
    width: 100%;
    justify-content: space-between;
  }

  .quantity-input {
    flex: 1;
  }
}

#bt_comprar {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
}

button[onclick="changeProductQuantity(-1)"],
button[onclick="changeProductQuantity(1)"],
#product_qty {
  color: var(--theme-text);
}

body header .luxe-topbar a:not(ul a) {
  color: inherit;
}

.vitrine[data-variante="bannersdinamicos"] .banners-dinamicos-swiper .swiper-button-prev:hover,
.vitrine[data-variante="bannersdinamicos"] .banners-dinamicos-swiper .swiper-button-next:hover {
  background: var(--theme-surface);
  color: var(--theme-accent);
}

.quantity-selector,
.vitrine[data-variante="fullscreen"] :is(.electronics-card, .product-image-section, .product-image, .product-content) {
  background-color: var(--theme-product-surface);
}

:is(.vitrine, .product-display) :is(.size-option, .text-option):not(.active) {
  background-color: var(--theme-product-surface) !important;
}

.bg-white {
  background-color: var(--theme-surface);
}

.text-gray-900,
.text-gray-700 {
  color: var(--theme-text);
}

.text-gray-600 {
  color: var(--theme-text-muted);
}

.border-gray-100,
.border-gray-200,
.border-gray-300 {
  border-color: var(--theme-border);
}

.luxe-header-actions > .group > a > .bg-gray-100 {
  background-color: var(--theme-border);
  color: var(--theme-header-text);
}

.luxe-header-actions > .group:hover > a > .bg-gray-100 {
  background-color: var(--theme-accent);
  color: var(--theme-accent-text);
}

#wishlist-count-desktop,
#wishlist-count-mobile,
#cart-count-desktop,
#cart-count-mobile {
  background-color: var(--theme-accent);
  color: var(--theme-accent-text);
  box-shadow: 0 0 0 2px var(--theme-header-background);
}

.luxe-header-dropdown .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--theme-border);
}

.cart-luxe-wrapper .cart-btn-remove,
.cart-luxe-wrapper .cart-btn-clear {
  color: #f87171;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
  background-color: var(--theme-surface);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--theme-text-muted);
}

.vitrine.vitrine :is(.kit-option, .number-option),
.product-display.product-display :is(.kit-option, .number-option) {
  color: var(--theme-text);
}

.luxe-price-cartao,
.product-favorite .favorite-btn-content {
  color: var(--theme-text);
}

.bg-gray-100 {
  background-color: var(--theme-border);
}

/* Selo "Economize" do produto: verde mais escuro para o texto branco passar de 4,5:1 */
.produto-selo-economia {
    background-color: #15803d;
}

/* Toast: os tons 500 do Tailwind não passam de 4,5:1 com texto branco */
#toast.bg-green-500 { background-color: #15803d; }
#toast.bg-red-500 { background-color: #b91c1c; }
#toast.bg-orange-500 { background-color: #c2410c; }

/* Barra de listagem: ordenação + filtros + grade/lista (categoria, marca, produtos, busca) */
.listing-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 0.95rem;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-sort:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 45%, var(--theme-border, #e5e7eb));
}

.listing-sort:focus-within {
  border-color: var(--theme-accent, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #2563eb) 18%, transparent);
}

.listing-sort__icon {
  font-size: 0.875rem;
  color: var(--theme-accent, #2563eb);
}

.listing-sort__label {
  font-size: 0.8125rem;
  color: var(--theme-text-muted, #6b7280);
  white-space: nowrap;
}

.listing-sort select {
  appearance: none;
  -webkit-appearance: none;
  margin-right: -1.75rem;
  padding: 0 1.75rem 0 0;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text, #111827);
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.listing-sort__chevron {
  font-size: 0.625rem;
  color: var(--theme-text-muted, #6b7280);
  pointer-events: none;
}

.listing-tool-btn {
  height: 2.75rem;
  padding: 0 1rem;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text, #111827);
  transition: border-color 0.2s ease;
}

.listing-tool-btn:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 45%, var(--theme-border, #e5e7eb));
}

.listing-tool-btn i {
  color: var(--theme-accent, #2563eb);
}

.listing-view-switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #e5e7eb);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.listing-view-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--theme-accent, #2563eb);
  transition: transform 0.25s ease;
}

.listing-view-switch[data-view="list"]::before {
  transform: translateX(100%);
}

.listing-view-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--theme-text-muted, #6b7280);
  transition: color 0.2s ease;
}

.listing-view-switch button:hover {
  color: var(--theme-text, #111827);
}

.listing-view-switch button[aria-pressed="true"] {
  color: var(--theme-accent-text, #fff);
}

.listing-view-switch button:focus-visible {
  outline: 2px solid var(--theme-accent, #2563eb);
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .listing-sort__label {
    display: none;
  }

  .listing-sort {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.75rem;
  }

  .listing-sort select {
    min-width: 0;
    width: 100%;
    text-overflow: ellipsis;
  }

  .listing-tool-btn {
    flex-shrink: 0;
    padding: 0 0.85rem;
  }

  .listing-view-switch {
    flex-shrink: 0;
  }
}
