﻿/* Soft UI Dashboard styles by Creative Tim */
/* Adapted for this project */

:root {
  --brand-blue: #004aad;
  --brand-blue-dark: #002d73;
  --brand-orange: #ff4d00;
  --brand-gray: #f7f8fa;
  --bs-primary: var(--brand-blue);
  --bs-accent: var(--brand-orange);
  --bs-secondary: #6c757d;
  --bs-light: #f8f9fa;
  --bs-dark: #344767;
  --bs-white: #fff;
  --bs-body-bg: var(--brand-gray);
  --bs-font-sans-serif: "Inter", "Poppins", "Nunito", sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
}

/* Hide price elements for guests (not logged in) */
.guest .card .card-text.h5.text-primary { display: none !important; }
.guest .price-panel .price-display { display: none !important; }
.guest #price-tiers-table { display: none !important; }
.guest .quote-summary .price,
.guest .quote-summary .subtotal,
.guest .quote-summary .total { visibility: hidden; }

.volume-pricing #price-tiers-table tbody tr {
  cursor: pointer;
}

.volume-pricing #price-tiers-table tbody tr.selected {
  background: rgba(0, 74, 173, 0.12);
}

.volume-pricing #price-tiers-table tbody tr.selected td {
  font-weight: 600;
  color: var(--brand-blue);
}

.main-content {
  margin-left: 0; /* Eliminado el margen del sidebar */
  transition: all 0.3s ease-in-out;
}

/* Estilos de la barra de navegación pública */
.catalog-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: 0 2px 20px rgba(13, 110, 253, 0.12);
  padding: 0.75rem 0;
  min-height: 70px; /* ✅ ALTURA MÍNIMA CONSISTENTE */
}

.catalog-navbar .container-fluid {
  padding: 0 1.5rem;
  align-items: center; /* ✅ ALINEACIÓN VERTICAL PERFECTA */
}

.catalog-navbar .navbar-brand {
  color: var(--bs-dark) !important;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
  margin-right: 2rem;
  flex-shrink: 0;
  min-width: 200px;
  height: 44px; /* ✅ ALTURA FIJA PARA CONSISTENCIA */
  display: flex;
  align-items: center;
}

.catalog-navbar .navbar-brand:hover {
  transform: scale(1.02);
}

.catalog-navbar .navbar-brand-img {
  max-height: 42px;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
  background: #fafbfc;
  box-shadow: inset 0 1px 3px rgba(13, 110, 253, 0.05);
  width: 100%;
  max-width: none;
  transition: all 0.2s ease;
}

.nav-search:focus-within {
  border-color: var(--bs-primary);
  background: var(--bs-white);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.nav-search i {
  color: var(--bs-secondary);
  font-size: 0.95rem;
}

.nav-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  color: var(--bs-dark);
  font-weight: 500;
}

.nav-search input::placeholder {
  color: rgba(52, 71, 103, 0.55);
}

.nav-search.mobile {
  max-width: 100%;
}

.nav-search-desktop {
  max-width: 520px;
}

.nav-quick-actions {
  align-items: center;
  gap: 0.5rem; /* ✅ GAP REDUCIDO PARA MEJOR ESPACIADO */
  flex-shrink: 0;
  min-width: 300px;
  justify-content: flex-end;
  height: 44px; /* ✅ ALTURA CONSISTENTE CON BRAND */
}

.nav-quick-actions .btn {
  box-shadow: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
  display: flex;
  align-items: center;
  white-space: nowrap; /* ✅ PREVENIR WRAP EN MOBILE */
}

.nav-categories .btn {
  border-color: rgba(108, 117, 125, 0.3);
  color: var(--bs-secondary);
}

.nav-categories .btn:hover {
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
  color: white;
}

.nav-access .btn {
  border-color: rgba(108, 117, 125, 0.3);
  color: var(--bs-secondary);
  min-width: 90px; /* ✅ ANCHO MÍNIMO PARA CONSISTENCIA */
  text-align: center;
}

.nav-access .btn:hover {
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
  color: white;
  transform: translateY(-1px); /* ✅ MICRO-ANIMACIÓN */
}

.nav-help .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px; /* ✅ ANCHO MÍNIMO PARA CONSISTENCIA */
  text-align: center;
}

.nav-help .btn:hover {
  transform: translateY(-1px); /* ✅ MICRO-ANIMACIÓN */
}

.nav-quote-wrapper {
  position: relative;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
}

.nav-quote-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 110, 253, 0.2);
  background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-primary);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
  flex-shrink: 0;
  height: 44px; /* ✅ ALTURA CONSISTENTE */
  min-width: 140px; /* ✅ ANCHO MÍNIMO CONSISTENTE */
}

.nav-quote-toggle:hover,
.nav-quote-toggle:focus {
  background: linear-gradient(135deg, #e3f0ff 0%, #d6e8ff 100%);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.nav-quote-toggle i.fa-chevron-down {
  color: rgba(13, 110, 253, 0.65);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-quote-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-quote-toggle .quote-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; /* ✅ TAMAÑO OPTIMIZADO */
  height: 2rem;
  border-radius: 8px; /* ✅ BORDES MÁS SUTILES */
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  color: var(--bs-white);
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.nav-quote-toggle .quote-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  background: var(--bs-accent);
  color: var(--bs-white);
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  min-width: 1rem;
  height: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(253, 126, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-quote-toggle .quote-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  overflow: hidden; /* ✅ PREVENIR OVERFLOW */
}

.nav-quote-toggle .quote-label .title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
}

.nav-quote-toggle .quote-label .meta {
  font-size: 0.74rem;
  color: rgba(13, 110, 253, 0.75);
  font-weight: 500;
  white-space: nowrap;
  max-width: 80px; /* ✅ LIMITAR ANCHO DEL META */
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-quote-menu {
  min-width: 240px;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.nav-quote-menu .dropdown-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(52, 71, 103, 0.65);
}

.nav-quote-menu .dropdown-item {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth .btn {
  border-radius: 999px;
}

.nav-profile .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.catalog-navbar .nav-link {
  font-weight: 600;
  color: rgba(52, 71, 103, 0.8);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.catalog-navbar .nav-link:hover,
.catalog-navbar .nav-link:focus {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.06);
  transform: translateY(-1px);
}

.catalog-navbar .nav-link.active {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.1);
  font-weight: 700;
}

.catalog-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 2px;
}

.catalog-navbar .navbar-toggler {
  border: 1px solid rgba(52, 71, 103, 0.25);
  border-radius: 0.65rem;
  padding: 0.35rem 0.55rem;
}

.catalog-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.dropdown-menu-xl {
  min-width: min(480px, 90vw);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
  border: 1px solid rgba(13, 110, 253, 0.08);
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.category-scroll {
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.category-scroll .dropdown-item {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.category-scroll .dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

.category-search .input-group-text {
  background: transparent;
  border-right: none;
}

.category-search .form-control {
  border-left: none;
}

/* ===== RESPONSIVE MEJORADO ===== */

@media (max-width: 1199.98px) {
  .catalog-navbar .container-fluid {
    padding: 0 1rem;
  }
  
  .nav-quick-actions {
    min-width: 250px;
    gap: 0.4rem;
  }
  
  .nav-quote-toggle {
    min-width: 120px;
    padding: 0.5rem 0.8rem;
  }
  
  .nav-quote-toggle .quote-label .meta {
    max-width: 60px;
  }
}

@media (max-width: 991.98px) {
  /* Nueva estructura móvil organizada */
  .catalog-navbar {
    min-height: auto;
    padding: 0;
  }
  
  /* Versión desktop mantiene comportamiento original */
  .catalog-navbar .container-fluid.d-none.d-lg-flex {
    min-height: 60px;
  }
  
  .nav-quick-actions {
    order: 3;
    margin-left: auto;
    gap: 0.4rem;
    min-width: auto;
    height: auto;
  }
  
  .nav-quick-actions .btn {
    height: 38px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .nav-quote-toggle {
    height: 38px;
    min-width: 100px;
    padding: 0.4rem 0.8rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.8rem;
    height: 1.8rem;
  }
  
  .nav-quote-toggle .quote-label .title {
    font-size: 0.75rem;
  }
  
  .nav-quote-toggle .quote-label .meta {
    font-size: 0.7rem;
    max-width: 50px;
  }
  
  .catalog-navbar .dropdown-menu-xl {
    width: 100%;
  }
  
  /* Nueva estructura móvil en dos filas */
  .catalog-navbar .container-fluid.d-lg-none {
    flex-direction: column;
    gap: 0;
  }
  
  /* Fila 1: Logo + Cotización + Hamburguesa */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 50px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Logo compacto móvil */
  .catalog-navbar .navbar-brand img {
    max-height: 28px !important;
  }
  
  .catalog-navbar .navbar-brand span {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  /* Acciones rápidas móvil */
  .catalog-navbar .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* Fila 2: Buscador móvil */
  .catalog-navbar .nav-search.mobile {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.1rem;
    transition: all 0.2s ease;
  }
  
  .catalog-navbar .nav-search.mobile:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: white;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.9rem;
    padding: 0.5rem 2.5rem 0.5rem 2.2rem;
    border: none;
    background: transparent;
  }
  
  .catalog-navbar .nav-search.mobile input:focus {
    outline: none;
    box-shadow: none;
  }
  
  .catalog-navbar .nav-search.mobile i {
    left: 0.7rem;
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  /* Hamburguesa más compacta */
  .navbar-toggler {
    border: 1px solid #dee2e6 !important;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Cotización móvil más prominente */
  .catalog-navbar .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  }
  
  .catalog-navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  }
}

@media (max-width: 767.98px) {
  .catalog-navbar {
    min-height: 55px; /* ✅ ALTURA MÁS COMPACTA EN MÓVIL */
    padding: 0.5rem 0;
  }
  
  .catalog-navbar .container-fluid {
    padding: 0 0.75rem;
  }
  
  .catalog-navbar .navbar-brand {
    margin-right: 1rem;
    min-width: 160px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .nav-quick-actions {
    gap: 0.3rem;
  }
  
  .nav-quick-actions .btn {
    height: 36px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .nav-quote-toggle {
    height: 36px;
    min-width: 90px;
    padding: 0.3rem 0.6rem;
    gap: 0.5rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8rem;
  }
  
  .nav-quote-toggle .quote-label {
    display: none; /* ✅ OCULTAR ETIQUETAS EN MÓVIL MUY PEQUEÑO */
  }
}

@media (max-width: 575.98px) {
  .catalog-navbar .navbar-brand {
    min-width: 140px;
    font-size: 1rem;
  }
  
  .nav-quick-actions {
    gap: 0.3rem;
  }
  .nav-quick-actions .btn {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }
  
  .nav-quote-toggle {
    min-width: 80px;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-quote-toggle .quote-icon {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
  }
  
  .catalog-navbar .nav-link {
    width: 100%;
    text-align: left;
  }
}

/* Mobile specific styles for new two-row structure */
@media (max-width: 991.98px) {
  /* Small mobile devices - responsive adjustments for new structure */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 48px;
  }
  
  .catalog-navbar .navbar-brand {
    font-size: 0.85rem;
  }
  
  .catalog-navbar .navbar-brand img {
    max-height: 24px !important;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.85rem;
    padding: 0.45rem 2.2rem 0.45rem 2rem;
  }
  
  .catalog-navbar .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  /* Very small mobile devices - hide brand text, more compact */
  .catalog-navbar .container-fluid.d-lg-none > .d-flex:first-child {
    min-height: 46px;
  }
  
  /* Hide brand name on very small screens */
  .catalog-navbar .navbar-brand span.d-none.d-sm-inline {
    display: none !important;
  }
  
  .catalog-navbar .nav-search.mobile {
    margin-bottom: 0.5rem;
  }
  
  .catalog-navbar .nav-search.mobile input {
    font-size: 0.8rem;
    padding: 0.4rem 2rem 0.4rem 1.8rem;
  }
  
  .catalog-navbar .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.8rem !important;
  }
}

/* Navegación móvil - OCULTA EN DESKTOP */
@media (min-width: 992px) {
  #navbarMain {
    display: none !important;
  }
  .navbar-toggler {
    display: none !important;
  }
}

/* Bottom navigation (mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(52, 71, 103, 0.08);
  box-shadow: 0 -8px 32px rgba(13, 110, 253, 0.12);
  backdrop-filter: saturate(180%) blur(20px);
}

.bottom-nav-link {
  flex: 1;
  text-decoration: none;
  color: rgba(52, 71, 103, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.bottom-nav-link i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.bottom-nav-link .badge {
  position: absolute;
  top: 0.25rem;
  right: 50%;
  transform: translateX(50%);
  font-size: 0.6rem;
  padding: 0.15rem 0.35rem;
}

.bottom-nav-link.is-active,
.bottom-nav-link:focus,
.bottom-nav-link:hover {
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
}

.bottom-nav-link.is-active i,
.bottom-nav-link:hover i {
  transform: scale(1.1);
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

.input-group {
  width: 250px;
}

.card {
  border: none;
  box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
}

.card .card-body {
  padding: 1.5rem;
}

.card .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.btn {
  box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11), 0 2px 4px -1px rgba(0, 0, 0, 0.07);
  font-weight: 600;
}

.btn-primary {
  background-color: var(--bs-primary);
  border: none;
}

.btn-primary:hover {
  background-color: #0b5ed7;
}

.btn-accent {
  background-color: var(--bs-accent);
  color: var(--bs-white);
  border: none;
}
.btn-accent:hover {
  background-color: #e66a00;
  color: var(--bs-white);
}

.text-primary {
  color: var(--bs-primary) !important;
}

.alert {
  color: var(--bs-white);
}
.alert-success { background-color: #4CAF50; }
.alert-error { background-color: #f44336; }
.alert-info { background-color: #2196F3; }

.pagination .page-link {
    border-radius: 50% !important;
    margin: 0 3px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}
.pagination .page-link.active, .pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    color: white;
}

.catalog-sidebar-column .offcanvas-lg {
  border: none;
  background: transparent;
}

.catalog-sidebar-column .offcanvas-header {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.catalog-sidebar-column .offcanvas-body {
  padding: 0;
}

@media (min-width: 992px) {
  .catalog-sidebar-column .offcanvas-lg {
    position: sticky;
    top: 6.5rem;
    box-shadow: none;
    transform: none !important;
    visibility: visible !important;
  }
  .catalog-sidebar-column .offcanvas-body {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

/* ==================== MODERN FILTER PANEL DESIGN ==================== */

/* Legacy support - ocultar elementos antiguos */
.catalog-sidebar-column .offcanvas-lg,
.filter-stack,
.filter-active,
.filter-chips,
.filter-chip,
.filter-section,
.filter-section-toggle,
.filter-section-body {
  display: none !important;
}

/* Contenedor principal del panel moderno */
.modern-filter-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 20px;
}

/* Header del panel */
.filter-panel-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 20px 20px 0 0;
}

.filter-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.filter-panel-title i {
  font-size: 1.3rem;
  opacity: 0.9;
}

.btn-clear-all {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn-clear-all:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Filtros activos modernos */
.active-filters-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modern-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
}

.modern-filter-badge.segment-badge {
  background: rgba(0, 74, 173, 0.15);
  border-color: rgba(0, 74, 173, 0.2);
  color: var(--brand-blue);
}

.modern-filter-badge:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.modern-filter-badge button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.modern-filter-badge button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Formulario moderno */
.modern-filter-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Secciones del filtro */
.modern-filter-section {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-filter-section:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.filter-section-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-section-header:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
}

.filter-section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  margin-right: 16px;
  font-size: 1.1rem;
}

.filter-section-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.filter-section-count {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 12px;
}

.filter-section-indicator {
  color: #64748b;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.filter-section-header[aria-expanded="true"] .filter-section-indicator {
  transform: rotate(180deg);
}

.filter-section-content {
  padding: 20px;
}

/* Búsqueda de categorías */
.category-search-container {
  margin-bottom: 16px;
}

.modern-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-search-input i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 2;
}

.modern-search-input input {
  width: 100%;
  padding: 12px 12px 12px 36px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.modern-search-input input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Árbol de categorías moderno */
.modern-category-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-item-wrapper {
  display: flex;
  flex-direction: column;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.category-item:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
  transform: translateX(4px);
}

.category-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-item.all-categories {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-item.all-categories.active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.category-icon {
  margin-right: 12px;
  width: 16px;
  text-align: center;
  opacity: 0.8;
}

.category-name {
  flex: 1;
}

.category-toggle {
  background: none;
  border: none;
  color: inherit;
  padding: 4px;
  margin-left: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.category-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.category-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.category-children {
  margin-left: 28px;
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid #e2e8f0;
}

/* Sección de precios */
.price-quick-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.price-quick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.price-quick-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.price-quick-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.price-quick-btn i {
  margin-right: 8px;
  opacity: 0.7;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input-wrapper i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.8rem;
  z-index: 2;
}

.price-input {
  width: 100%;
  padding: 12px 12px 12px 28px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.price-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.price-range-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Grid de colores moderno */
.modern-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.color-option-wrapper {
  display: flex;
}

.color-checkbox {
  display: none;
}

.modern-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modern-color-option:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-checkbox:checked + .modern-color-option {
  background: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.color-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: all 0.2s ease;
}

.color-checkbox:checked + .modern-color-option .color-check {
  opacity: 1;
}

.color-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.color-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.color-count {
  font-size: 0.7rem;
  color: #64748b;
}

/* Lista de opciones moderna */
.modern-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-option-item {
  display: flex;
}

.option-checkbox {
  display: none;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
}

.option-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.option-checkbox:checked + .option-label {
  background: white;
  border-color: #667eea;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-check {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.option-checkbox:checked + .option-label .option-check {
  background: #667eea;
  border-color: #667eea;
}

.option-text {
  flex: 1;
}

.option-count {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 400;
}

/* Botones de acción */
.filter-actions-panel {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 20px 20px;
}

.btn-apply-filters {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-apply-filters:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* Responsive design */
@media (max-width: 991.98px) {
  .modern-filter-panel {
    border-radius: 0;
    box-shadow: none;
    background: white;
    position: static;
  }
  
  .filter-panel-header {
    border-radius: 0;
  }
  
  .modern-filter-form {
    padding: 16px;
  }
  
  .filter-actions-panel {
    padding: 16px;
  }
}

@media (max-width: 575.98px) {
  .price-range-inputs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .price-range-separator {
    display: none;
  }
  
  .modern-color-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .color-swatch {
    width: 32px;
    height: 32px;
  }
}

/* ==================== COLLAPSIBLE FILTER PANEL & CATALOG HEADER ==================== */

/* Hero de bienvenida mejorado */
.hero-welcome {
  animation: fadeInUp 0.6s ease-out;
}

.hero-welcome .card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.3),
    0 8px 16px rgba(102, 126, 234, 0.2);
  overflow: hidden;
  position: relative;
}

.hero-welcome .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-icon i {
  font-size: 2.5rem;
  color: white;
  opacity: 0.9;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.hero-actions .btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-actions .btn-light {
  background: white;
  color: #667eea;
  border: none;
}

.hero-actions .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
}

/* Panel de filtros colapsible */
#filter-sidebar-container {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#catalog-content {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header del catálogo mejorado */
.catalog-header {
  position: sticky;
  top: 80px;
  z-index: 100;
  margin-bottom: 2rem;
}

.catalog-header .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.catalog-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botón toggle de filtros */
.btn-toggle-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-toggle-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-toggle-filters:hover::before {
  left: 100%;
}

.btn-toggle-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-toggle-filters:active {
  transform: translateY(0);
}

.btn-toggle-filters.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-toggle-filters.active:hover {
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.filter-label {
  font-weight: 600;
}

.filter-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Selector de columnas */
.columns-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

.column-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
}

.column-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.column-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.column-btn span {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Toggle de vista (grid/vertical) */
.view-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #e2e8f0;
  color: #334155;
}

.view-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón de cerrar panel en header */
.btn-close-panel {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.btn-close-panel:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

/* ==================== PRODUCT GRID LAYOUTS ==================== */

/* Grid base */
.products-grid {
  display: grid;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

/* Layouts de columnas */
.products-grid.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.products-grid.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.products-grid.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Vista vertical */
.products-grid.vertical-view {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.products-grid.vertical-view .product-card {
  display: flex;
  flex-direction: row;
  max-width: none;
  width: 100%;
  padding: 1.5rem;
}

.products-grid.vertical-view .product-image {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.products-grid.vertical-view .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-grid.vertical-view .product-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.products-grid.vertical-view .product-description {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.products-grid.vertical-view .product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* New Catalog Controls Card */
.catalog-controls-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.controls-info .catalog-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.controls-info .catalog-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.controls-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-filters-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filters-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.control-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 12px;
}

.control-btn:hover {
    background: #e2e8f0;
}

.control-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn i {
    font-size: 1rem;
}

.sorting-container .card-body {
    padding: 0.75rem 1.5rem;
}


/* Estilos para los nuevos controles del catálogo */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ===========================
   HOME EXPERIENCE COMPONENTS
   =========================== */
.home-preview-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 17, 51, 0.25);
}

.home-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-hero-line {
    font-size: 1.1rem;
    margin: 0;
}

.home-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-cta-group .btn {
    border-radius: 999px;
    font-weight: 600;
}

.home-hero-note {
    font-size: 0.95rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.home-section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
}

.home-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.home-metric {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
}

.home-metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.home-metric-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.home-lead-card {
    background: rgba(2, 6, 23, 0.35);
    border-radius: 22px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.home-lead-list {
    padding-left: 1.2rem;
    color: #fff;
}

.home-lead-form input,
.home-lead-form textarea,
.home-lead-form select {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.home-lead-form select {
    color: rgba(255, 255, 255, 0.85);
}

.home-lead-form input::placeholder,
.home-lead-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.home-lead-form button {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    background: #fff;
    color: var(--brand-blue);
}

.home-trust-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
}

.home-trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-trust-logos span {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

.home-section-card {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.home-section-header {
    margin-bottom: 1.5rem;
}

.home-category-grid,
.home-benefit-grid,
.home-client-grid,
.home-kits-grid,
.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.home-category-card,
.home-benefit-card,
.home-kit-card,
.home-testimonial-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 74, 173, 0.12);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 74, 173, 0.12);
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.home-client-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.home-client-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid #eaeef5;
    border-radius: 20px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.home-client-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 77, 0, 0.12);
    color: var(--brand-orange);
    font-size: 1.3rem;
}

.home-client-card .btn {
    margin-top: 0.25rem;
    border-radius: 999px;
    font-weight: 600;
}

.home-kit-budget {
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-kit-items {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-kit-items li {
    border-left: 3px solid var(--brand-orange);
    padding-left: 0.75rem;
}

.home-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    background: #fff;
}

.home-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    gap: 1rem;
}

.home-faq summary i {
    color: var(--brand-blue);
}

.home-closing-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    border-radius: 22px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-closing-card .btn {
    min-width: 180px;
}

.catalog-control-bar .control-group {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.25rem;
}

.sort-select {
    border-radius: 999px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.insights-card {
    background: #0f172a;
    color: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
}

.consultive-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consultive-card .product-sku {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-blue);
    text-transform: uppercase;
}

.product-image-link img,
.consultive-card .product-image.placeholder-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultive-card .product-tags {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #475569;
}

.product-preview-trigger.active {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(0, 74, 173, 0.08);
}

.product-preview-tooltip {
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: none;
}

.product-preview-tooltip.active {
    display: block;
}

.product-preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.product-preview-actions .btn-link {
    color: var(--brand-blue);
    font-weight: 600;
}

.floating-quote-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1030;
}

.floating-quote-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    color: var(--brand-blue);
    box-shadow: 0 20px 50px rgba(0, 35, 96, 0.25);
    text-decoration: none;
}

.floating-quote-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.quote-feedback {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    background: var(--brand-blue);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 17, 51, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}

.quote-feedback.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-feedback.error {
    background: #dc3545;
}

.back-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 35, 96, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.catalog-info h2 {
    margin: 0;
    font-size: 1.8rem;
}

.catalog-info p {
    margin: 0;
    color: #666;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-buttons {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 5px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.view-btn.active {
    background-color: #667eea;
    color: white;
}

.sorting-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

#sorting-form {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.form-group select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
}


.products-grid.vertical-view .product-price {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .products-grid.grid-cols-6 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .products-grid.grid-cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .catalog-header {
    top: 70px;
    margin-bottom: 1.5rem;
  }
  
  .catalog-title {
    font-size: 1.5rem;
  }
  
  .catalog-actions {
    gap: 0.75rem;
  }
  
  .btn-toggle-filters {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .columns-toggle {
    display: none !important;
  }
  
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid.vertical-view .product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .products-grid.vertical-view .product-image {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .catalog-header .card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .catalog-actions {
    justify-content: space-between;
  }
  
  .catalog-title {
    font-size: 1.3rem;
  }
  
  .catalog-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-quote-wrapper {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .floating-quote-button {
    width: 100%;
    justify-content: center;
  }

  .back-to-top-btn {
    left: auto;
    right: 1rem;
    bottom: 5rem;
  }
}

@media (max-width: 575.98px) {
  .catalog-header {
    top: 60px;
    margin-bottom: 1rem;
  }
  
  .btn-toggle-filters .filter-label {
    display: none;
  }
  
  .btn-toggle-filters {
    padding: 10px 12px;
    min-width: auto;
  }
  
  .view-btn {
    width: 36px;
    height: 36px;
  }
  
  .products-grid.grid-cols-6,
  .products-grid.grid-cols-5,
  .products-grid.grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-icon {
    display: none !important;
  }
}

.filter-option-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.filter-option-list .form-check {
  margin-bottom: 0.35rem;
}

.filter-option-list .form-check-label {
  font-size: 0.85rem;
  color: var(--bs-secondary);
}

.segment-section .form-check {
  margin-bottom: 0.35rem;
}

.segment-section .form-check-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segment-section .form-check-label small {
  font-weight: 600;
}

.segment-hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 17, 51, 0.25);
}

.segment-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.segment-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.segment-hero-bullets i {
  color: var(--brand-orange);
}

.segment-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.segment-metric {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.segment-metric .value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.segment-section {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.segment-benefits-grid,
.segment-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.segment-benefit-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.segment-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 74, 173, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.segment-products-grid .product-card {
  height: 100%;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-actions .btn {
  width: 100%;
}

.filter-actions .btn-outline-secondary {
  border-color: rgba(52, 71, 103, 0.2);
  color: var(--bs-dark);
}

.filter-actions .btn-outline-secondary:hover {
  background: rgba(52, 71, 103, 0.08);
}

/* Detail Page Specific Styles */
.product-gallery .thumb {
    width: 60px;
    height: 60px;
    cursor: pointer;
}
.product-gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery .thumb.selected img {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Zoom cursor for main image */
.image-zoom {
    cursor: zoom-in;
}

/* Botones navegación galería */
.product-gallery .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #343a40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.product-gallery .gallery-prev { left: .5rem; }
.product-gallery .gallery-next { right: .5rem; }
.product-gallery .gallery-nav:focus { outline: 2px solid var(--bs-primary); }

/* Scroller de miniaturas tipo “rollo” */
.product-gallery .thumbs-scroll {
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}
.product-gallery .thumbs-scroll::-webkit-scrollbar { height: 6px; }
.product-gallery .thumbs-scroll::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 4px; }

#imageZoomModal .modal-body img {
    max-height: 80vh;
}

/* Navegación dentro del modal */
#imageZoomModal .modal-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:2.5rem;height:2.5rem;border-radius:50%;border:none;
  background:rgba(255,255,255,.9);color:#343a40;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}
#imageZoomModal .modal-prev{ left:.5rem; }
#imageZoomModal .modal-next{ right:.5rem; }
#imageZoomModal .modal-nav:focus{ outline:2px solid var(--bs-primary); }

#imageZoomModal .modal-thumbs{ overflow-x:auto; padding-bottom:.25rem; }
#imageZoomModal .modal-thumbs .thumb.selected img{ outline:2px solid var(--bs-primary); outline-offset:2px; border-radius:.5rem; }

.attribute-group h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #8392ab;
}

.nav-tabs .nav-link {
    color: var(--bs-dark);
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-color: #dee2e6 #dee2e6 var(--bs-white);
}

.table {
    color: var(--bs-secondary);
}
.table td, .table th {
    border-color: #e9ecef;
}

/* Quote Page Specific Styles */
.avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.table .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: .75rem;
}

.table .btn-link {
    text-decoration: none;
}

.impression-selector {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6; /* Borde más sutil */
    border-radius: 0.5rem; /* Bordes redondeados consistentes */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.impression-selector:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

.impression-selector.selected {
    border-color: var(--bs-primary);
    background-color: #e7f1ff;
    box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11), 0 2px 4px -1px rgba(0, 0, 0, 0.07);
}

.impression-image {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    object-fit: contain; /* Asegura que el icono se ajuste sin deformarse */
}

.impression-text {
    display: flex;
}

.impression-desc {
    font-size: 0.9em;
    color: var(--bs-secondary);
}

/* Quantity Selector */
.quantity-selector .form-control {
    border-left: none;
    border-right: none;
}
.quantity-selector .btn {
    z-index: 1;
}
/* Ocultar las flechas por defecto del input number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}
.btn-whatsapp:hover {
    background-color: #1EBE57;
    color: white;
}

/* Legacy utility classes for compatibility with older templates */
/* These restore styles like text-xxs, font-weight-bolder, opacity-7, avatar-sm */
.text-xxs {
  font-size: 0.65rem !important;
  line-height: 1.1 !important;
}

.text-xs {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

.font-weight-bold {
  font-weight: 600 !important;
}

.font-weight-bolder {
  font-weight: 700 !important;
}

.opacity-7 {
  opacity: 0.7 !important;
}

.opacity-6 {
  opacity: 0.6 !important;
}

/* Avatar sizing utilities */
.avatar-sm {
  width: 36px !important;
  height: 36px !important;
}

/* Quote Finalize Page */
.quote-item-card {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}
.quote-item-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}
.quote-item-details {
    flex-grow: 1;
}
.quote-item-details h6 {
    margin-bottom: 0.25rem;
}
.quote-item-details p {
    font-size: 0.8rem;
    color: var(--bs-secondary);
    margin-bottom: 0;
}

.logo-suggestions {
    margin-top: 2rem;
}
.logo-suggestions .list-group-item {
    border-color: #e9ecef;
}
/* Selector Cards & Swatches (UX upgrades) */
.selector-card { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #dee2e6; border-radius:.5rem; cursor:pointer; transition:.2s; background:#fff; margin-bottom:8px; }
.selector-card:hover { border-color: var(--bs-primary); transform: translateY(-1px); }
.selector-card:has(input:checked), .selector-card.selected { border-color: var(--bs-primary); background:#f2f7ff; }
.selector-icon { font-size: 1.25rem; color: var(--bs-dark); opacity:.85; }
.selector-meta .title { display:block; font-weight:600; }
.selector-meta .desc { display:block; font-size:.85rem; color: var(--bs-secondary); }

.swatches { display:flex; gap:8px; flex-wrap:wrap; }
.swatch { position:relative; width:32px; height:32px; border-radius:50%; border:2px solid #e9ecef; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.swatch .dot { width:24px; height:24px; border-radius:50%; background: var(--swatch, #ccc); }

/* Admin AI helpers */
.ai-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-buttons .spinner-border {
  display: none;
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

.ai-suggestions {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px dashed #ced4da;
  border-radius: 0.5rem;
}

.ai-suggestions .form-select {
  margin-bottom: 0.5rem;
}
.swatch:has(input:checked) { border-color: var(--bs-primary); }
.swatch .check { position:absolute; color:#fff; font-size:.75rem; display:none; }
.swatch:has(input:checked) .check { display:block; }

/* Price Panel */
.price-panel { position: sticky; top: 1rem; }
@media (max-width: 991px) { .price-panel { position: static; } }
/* Zoom overlay button */
.main-image { position: relative; }
.zoom-btn { position: absolute; right: 10px; bottom: 10px; border: none; border-radius: 999px; padding: 8px 10px; background: rgba(255,255,255,0.95); box-shadow: 0 6px 16px rgba(0,0,0,.12); color: var(--bs-dark); }
.zoom-btn:hover { transform: scale(1.04); color: var(--bs-primary); }

/* Assistant floating chat */
.assist-toggle{
  position: fixed !important; 
  right: 24px !important; 
  bottom: 24px !important; 
  z-index: 9999 !important;
  width: 52px; 
  height: 52px; 
  border-radius: 50%; 
  border: none;
  background: var(--bs-primary) !important; 
  color: #fff !important; 
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.assist-toggle:hover{
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.assist-toggle i{ font-size: 20px; }
.assist-panel{
  position: fixed; right: 24px; bottom: 88px; z-index: 9998; width: 360px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 14px; box-shadow: 0 20px 27px rgba(0,0,0,.15); overflow: hidden;
}
.assist-header{ padding: .6rem .75rem; font-weight: 600; background: rgba(13,110,253,.08); }
.assist-body{ padding: .5rem; }
.assist-messages{ height: 220px; overflow: auto; padding: .25rem; display: flex; flex-direction: column; gap: .5rem; }
.assist-msg.me{ align-self: flex-end; }
.assist-msg .assist-bubble{ background:#f1f3f5; border-radius: 12px; padding:.5rem .75rem; max-width: 85%; }
.assist-msg.me .assist-bubble{ background: rgba(13,110,253,.12); }
.assist-chips{ display:flex; flex-wrap:wrap; gap:.25rem; margin:.25rem 0 .5rem; }
.assist-input .btn{ min-width: 44px; }
.assist-cards{ display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: .25rem 0; }
.assist-card{ display:block; width: auto; border:1px solid #e9ecef; border-radius: 10px; overflow:hidden; text-decoration:none; color:inherit; }
.assist-card img,.assist-ph{ width:100%; height:96px; object-fit:cover; background:#f8f9fa; }
.assist-card-body{ padding:.4rem .5rem; }
.assist-card-title{ font-size:.85rem; line-height:1.2; height:2.1em; overflow:hidden; }
.assist-card-price{ font-weight:700; font-size:.9rem; color: var(--bs-primary); }
.assist-tips{ margin-top:.25rem; }
.assist-tips ul{ padding-left: 1rem; }

/* Bot estratégico - nuevos estilos */
.assist-card .badge { 
  font-size: 0.7rem; 
  margin: 2px; 
  display: inline-block; 
}

.assist-pitch { 
  font-style: italic; 
  font-size: 0.8rem; 
  line-height: 1.3; 
  padding: 4px 6px; 
  background: rgba(0, 123, 255, 0.05); 
  border-left: 2px solid #007bff; 
  border-radius: 0 4px 4px 0; 
  margin: 4px 0; 
  color: #495057;
}

.assist-bubble.bg-primary { 
  background: linear-gradient(135deg, #007bff, #0056b3) !important; 
  border: none; 
}

.assist-card:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  transition: all 0.2s ease; 
}

/* Grid mejorado para mejor visualización */
@media (min-width: 360px) {
  .assist-cards { 
    grid-template-columns: 1fr; 
    gap: .75rem; 
  }
  
  .assist-card-img { 
    height: 110px; 
  }
}
.product-image-link {
    display: block;
}
