/* ========================================================
   CATÁLOGO, FILTROS & TARJETAS DE PRENDAS
   ======================================================== */

.catalog-anchor-section {
  padding-top: 0.5rem;
}

/* 1. SECCIÓN DE FILTROS & ACORDEONES */
.filters-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-accordion-block {
  width: 100%;
}

.btn-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 244, 239, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px -2px rgba(17, 18, 21, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accordion-toggle:hover {
  border-color: rgba(225, 40, 26, 0.3);
  box-shadow: var(--shadow-glow);
}

.btn-accordion-toggle.open {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #ffffff;
  border-bottom-color: transparent;
}

.btn-accordion-toggle i.toggle-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent-red);
}

.btn-accordion-toggle.open i.toggle-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(226, 222, 214, 0.7);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.85rem 1.1rem 1rem;
  box-shadow: 0 12px 24px -6px rgba(17, 18, 21, 0.04);
}

.accordion-content.show {
  display: block;
}

.categories-bar, .sizes-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.categories-bar button, .sizes-bar button {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(215, 212, 204, 0.7);
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f0 100%);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.categories-bar button:hover, .sizes-bar button:hover {
  color: var(--text-main);
  border-color: #111215;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 18, 21, 0.08);
}

.categories-bar button.active, .sizes-bar button.active {
  background: #111215;
  color: #ffffff;
  border-color: #111215;
  box-shadow: 0 6px 16px rgba(17, 18, 21, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* 2. GRILLA & TARJETAS DE PRODUCTOS */
.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
}

#no-results {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-futuristic);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -8px rgba(17, 18, 21, 0.1);
}

.product-card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f1ede6;
  overflow: hidden;
}

.product-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .img-wrapper img {
  transform: scale(1.04);
}

.product-card .tag-brand {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card .info {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .info .title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.product-card .info .meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.product-card .info .price-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .info .price-action .price {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-card .info .price-action .btn-add {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: #f1ede6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card .info .price-action .btn-add:hover {
  background: #111215;
  color: #ffffff;
}

/* 3. RESPONSIVE GRILLA */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}