/* ==========================================================================
   ACENTRO - Melaminas Catalog & Filters (Reverse Engineered & Enhanced)
   ========================================================================== */

/* Breadcrumb */
.melaminas-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.melaminas-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.15s;
}
.melaminas-breadcrumb a:hover {
  color: #0d6efd;
}
.melaminas-breadcrumb .breadcrumb-item.active {
  color: #212529;
  font-weight: 500;
}

/* Page Title */
.melaminas-page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
}

/* Top Toolbar */
.melaminas-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.melaminas-search-wrap {
  position: relative;
  min-width: 220px;
  max-width: 280px;
  flex-grow: 1;
}
.melaminas-search-wrap .form-control {
  padding-left: 2.25rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  height: 40px;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.melaminas-search-wrap .form-control:focus {
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}
.melaminas-search-wrap .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8c98a4;
  pointer-events: none;
}
.melaminas-sort-select {
  width: auto;
  min-width: 170px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.92rem;
  border: 1px solid #ced4da;
  cursor: pointer;
}
.melaminas-sort-select:focus {
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}
.melaminas-count-text {
  font-size: 0.95rem;
  color: #495057;
  font-weight: 500;
  white-space: nowrap;
}
.btn-limpiar-filtros {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-limpiar-filtros:hover {
  background-color: #e5e7eb;
  color: #111827;
}

/* Divider */
.melaminas-divider {
  border: 0;
  border-top: 1px solid #e9ecef;
  margin: 1.25rem 0 2rem 0;
  opacity: 1;
}

/* Sidebar Filters */
.filters-sidebar {
  background: #ffffff;
  padding-right: 1.5rem;
}
.filter-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f3f5;
}
.filter-group:last-child {
  border-bottom: none;
}
.filter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom Checkbox (matching user's screenshot) */
.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.93rem;
  color: #4b5563;
  transition: color 0.15s;
}
.filter-item:hover {
  color: #111827;
}
.filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #d1d5db;
  border-radius: 5px;
  margin-right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
}
.filter-item input[type="checkbox"]:hover {
  border-color: #f39c12;
}
.filter-item input[type="checkbox"]:checked {
  background-color: #f39c12; /* Signature orange matching user screenshot */
  border-color: #f39c12;
}
/* Orange square with crisp white 'X' icon like in TriplayMarket / user screenshot */
.filter-item input[type="checkbox"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  clip-path: polygon(
    20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 
    50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 
    80% 0%, 50% 30%
  );
  display: block;
}
.filter-item .filter-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 400;
}

/* Active Filter Badges */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background-color: #fff3e0;
  color: #d35400;
  border: 1px solid #ffe0b2;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}
.active-filter-badge .badge-remove {
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  color: #d35400;
}
.active-filter-badge .badge-remove:hover {
  color: #a04000;
}

/* Product Cards Grid */
.product-card-melamina {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card-melamina:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-color: #dee2e6;
}
.product-card-melamina .card-img-content {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.product-card-melamina .card-img-primary {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  border-radius: 14px 14px 0 0;
}
.product-card-melamina .card-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  border-radius: 14px 14px 0 0;
}
.product-card-melamina .card-img-content.has-hover:hover .card-img-hover {
  opacity: 1;
  transform: scale(1.04);
}
.product-card-melamina .card-img-content:hover .card-img-primary {
  transform: scale(1.04);
}
.product-card-melamina .cta-eye {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(255, 255, 255, 0.95);
  color: #212529;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 2;
  pointer-events: none;
}
.product-card-melamina:hover .cta-eye {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.product-card-melamina .card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card-melamina .product-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f39c12;
  margin-bottom: 0.35rem;
}
.product-card-melamina .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.15s;
}
.product-card-melamina .card-title:hover {
  color: #f39c12;
}
.product-card-melamina .product-spec-pill {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 0.65rem;
}
.product-card-melamina .stars-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.product-card-melamina .btn-cotizar-melamina {
  margin-top: auto;
  background-color: #dc3545;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.product-card-melamina .btn-cotizar-melamina:hover {
  background-color: #bb2d3b;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Empty State */
.melaminas-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px dashed #ced4da;
}
.melaminas-empty-state i {
  font-size: 3rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Navbar Link highlight */
.dropdown-header-link {
  display: block;
  font-weight: 700;
  color: #212529 !important;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.dropdown-header-link:hover {
  color: #dc3545 !important;
}
.dropdown-header-link h6 {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
