/* Catálogo /productos/ */
.catalog-page {
  background: var(--beige);
}

.catalog-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 241, 232, 0.85) 100%);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.catalog-breadcrumb a {
  color: var(--green-primary);
  transition: color var(--transition);
}

.catalog-breadcrumb a:hover {
  color: var(--green-lime);
}

.catalog-breadcrumb span[aria-current="page"] {
  color: var(--text-primary);
}

.catalog-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.catalog-hero__title {
  color: var(--green-primary);
  margin-bottom: 0.75rem;
}

.catalog-hero__desc {
  color: var(--text-secondary);
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.7;
}

.catalog-hero__content-extra {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.catalog-hero__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 260px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.catalog-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.category-single-catalog .catalog-layout {
  padding-block: 0;
}

.catalog-layout__toggle {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
  justify-content: center;
}

/* Sidebar */
.catalog-sidebar {
  position: sticky;
  top: 88px;
}

.catalog-sidebar__block {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.catalog-sidebar__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.catalog-sidebar__subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.catalog-sidebar__categories {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.catalog-sidebar__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}

.catalog-sidebar__cat:hover {
  background: var(--hover-soft);
  color: var(--green-primary);
}

.catalog-sidebar__cat.is-active {
  background: var(--hover-soft);
  color: var(--green-primary);
  font-weight: 600;
}

.catalog-sidebar__count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.catalog-sidebar__cat.is-active .catalog-sidebar__count {
  color: var(--green-primary);
}

.catalog-sidebar__group + .catalog-sidebar__group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.catalog-sidebar__checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.35;
}

.catalog-check input {
  margin-top: 0.15rem;
  accent-color: var(--green-primary);
}

.catalog-price-range__slider {
  width: 100%;
  accent-color: var(--green-primary);
  margin: 0.5rem 0;
}

.catalog-price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.catalog-sidebar__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.catalog-sidebar__clear {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--green-primary);
}

.catalog-sidebar__clear:hover {
  color: var(--green-lime);
}

/* Main content */
.catalog-main__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.catalog-results-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.catalog-results-label strong {
  color: var(--green-primary);
}

.catalog-sort__select {
  min-width: 190px;
  padding: 0.625rem 2.25rem 0.625rem 1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-primary);
  appearance: none;
  background-image: 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='%234E6B3A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
}

.catalog-sort__select:focus {
  border-color: var(--green-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 107, 58, 0.12);
}

.products-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.product-card--catalog {
  height: 100%;
}

.product-card--catalog .product-card__body--featured {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card--catalog .product-card__pricing {
  margin-top: auto;
}

.product-card--catalog .product-card__footer--featured {
  margin-top: 0.35rem;
}

.product-card--catalog .product-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card--catalog .product-card__subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.catalog-pagination__btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.catalog-pagination__btn:hover:not(.is-active):not(.is-disabled) {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.catalog-pagination__btn.is-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.catalog-pagination__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.catalog-pagination__dots {
  padding: 0 0.25rem;
  color: var(--text-secondary);
}

.catalog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-soft);
}

.catalog-empty__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.catalog-empty__text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Catalog premium cards */
.product-card--catalog .product-card__footer--catalog-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-card--catalog .product-card__footer--catalog-premium .product-card__btn {
  width: 100%;
}

@media (max-width: 1280px) {
  .products-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-layout__toggle {
    display: inline-flex;
  }

  .catalog-sidebar {
    display: none;
    position: static;
  }

  .catalog-sidebar.is-open {
    display: block;
  }

  .catalog-hero__grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero__visual {
    order: -1;
    min-height: 220px;
  }

  .catalog-hero__visual img {
    min-height: 220px;
  }

  .products-grid.products-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .catalog-main__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-sort__select {
    width: 100%;
  }

  .products-grid.products-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-card--catalog .product-card__body--featured {
    padding: 0.65rem 0.65rem 0.45rem;
  }

  .product-card--catalog .product-card__name {
    font-size: 0.8125rem;
    margin-bottom: 0.2rem;
  }

  .product-card--catalog .product-card__subtitle,
  .product-card--catalog .product-card__meta {
    font-size: 0.625rem;
  }

  .product-card--catalog .product-card__price {
    font-size: 0.875rem;
  }

  .product-card--catalog .product-card__footer--featured {
    padding: 0 0.65rem 0.65rem;
    gap: 0.4rem;
  }

  .product-card--catalog .product-card__btn {
    height: 38px;
  }

  .product-card--catalog .product-card__footer--catalog-premium {
    grid-template-columns: 1fr 1fr;
  }
}
