/* ─── CATALOG TEMA OSCURO ────────────────────────────── */
.catalog { min-width: 0; }

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-meta {
  font-size: 0.88rem;
  color: var(--soft-text);
  font-weight: 500;
}

.catalog-meta strong {
  color: var(--white);
  font-weight: 700;
}

.catalog-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
}

.sort-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--white);
  background: var(--card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af54' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:hover {
  border-color: var(--gold);
  background-color: var(--bg-hover);
}

.sort-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 84, 0.15);
}

.search-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--white);
  background: var(--card-bg);
  outline: none;
  flex: 1;
  max-width: 420px;
  min-width: 200px;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--soft-text);
}

.search-input:focus {
  border-color: var(--gold);
  background-color: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(212, 175, 84, 0.15);
}

/* ─── PRODUCT GRID ───────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ─── PRODUCT CARD TEMA OSCURO ────────────────────────── */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(212, 175, 84, 0.15);
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--bg-hover);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-new {
  background: var(--gold);
  color: var(--black);
}

.badge-hot {
  background: #ff6b35;
  color: var(--white);
}

.badge-oferta {
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
  aspect-ratio: 1 / 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.quick-wa {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: rgba(37, 211, 102, 0.95);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.product-card:hover .quick-wa {
  bottom: 0;
}

.product-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-disp);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  min-height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-notes {
  font-size: 0.82rem;
  color: var(--light-text);
  line-height: 1.5;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-volume {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  border: 1px solid var(--gold);
  background: rgba(212, 175, 84, 0.15);
  border-radius: 20px;
  padding: 4px 10px;
  margin-top: 4px;
}

.product-pricing {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.price-original {
  font-size: 0.78rem;
  color: var(--soft-text);
  text-decoration: line-through;
}

.price-final {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}

.price-off-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #ff6b35;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.product-installment {
  font-size: 0.76rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-shipping {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-actions {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.btn-cart {
  width: 100%;
  padding: 10px;
  background: var(--gold);
  color: var(--black);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cart:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 84, 0.3);
}

.btn-cart.btn-disabled {
  background: var(--soft-text);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-cart.btn-disabled:hover {
  background: var(--soft-text);
  transform: none;
  box-shadow: none;
}

/* ─── PAGINATION ─────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-btn {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--white);
}

.page-btn:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212, 175, 84, 0.25);
}

/* ─── FILTROS ────────────────────────────────────────── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 32px;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-tag button {
  background: none;
  color: rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
  cursor: pointer;
}

.filter-tag button:hover {
  color: rgba(0, 0, 0, 1);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--soft-text);
}

.no-results h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--light-text);
}

/* ─── MOBILE FILTER TOGGLE ────────────────────────────── */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white);
}

.mobile-filter-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-name {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .catalog-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .search-input {
    max-width: none;
    width: 100%;
  }
  
  .sort-select {
    width: 100%;
  }
  
  .mobile-filter-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .product-card {
    flex-direction: row;
    aspect-ratio: auto;
  }
  
  .product-img-wrap {
    aspect-ratio: 1;
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
  }
  
  .product-info {
    padding: 12px;
    gap: 6px;
  }
  
  .product-actions {
    padding: 12px;
  }
}
