.catalog {
  padding-top: var(--header-height);
  background-color: #f9f9f9;
}
.catalog__content {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding-block: 2rem;
  max-width: 1500px;
}
.catalog__header {
  background: url("../images/banner-catalog-mobile.webp") no-repeat center
    center;
  background-size: cover;
  height: 270px;
  position: relative;
}

.catalog__title {
  position: absolute;
  bottom: 20%;
  left: 5%;
  color: var(--secondary-color);
  font-size: clamp(32px, 4vw, 52px);
}

@media (min-width: 1050px) {
  .catalog__header {
    background: url("../images/banner-catalog.webp") no-repeat center center;
    height: 580px;
    background-size: cover;
  }
}

.catalog__description-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
  text-align: justify;
}

.catalog__description {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: #444;
  /* max-width: 850px; */
  margin: 0 auto;
}

/* Filters */
.catalog-filters {
  padding: 20px;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
  width: 100%;
}

.catalog-filters__header {
  margin-bottom: 20px;
  display: flex;
  /* justify-content: space-between; */
  gap: 20px;
  align-items: center;
}

.catalog-filters__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

.catalog-filters__subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 0;
  color: #333;
}

.catalog-filters__section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 6px;
}

.catalog-filters__section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.catalog-filters__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-filters__option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  transition: color 0.2s;
}

.catalog-filters__option:hover {
  color: #000;
}

.catalog-filters__option {
  display: flex;
  align-items: center;
  position: relative;
  /* gap: 12px; */ /* Removed gap as we use padding in label-text */
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  transition: color 0.2s;
  -webkit-user-select: none;
  user-select: none;
  width: max-content;
}

.catalog-filters__option:hover {
  color: #000;
}

/* Hide the default browser checkbox/radio */
.catalog-filters__option input[type="radio"],
.catalog-filters__option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Base style for the label text to make room for custom control */
.catalog-filters__label-text {
  padding-left: 30px;
  position: relative;
  line-height: 1.4;
  font-weight: 500;
}

/* Custom Box/Circle (Background) */
.catalog-filters__label-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #d9d9d9;
  transition: all 0.3s ease;
  border: 1px solid transparent; /* Optional for better definition */
}

/* Checkmark / Dot (Foreground) */
.catalog-filters__label-text::after {
  content: "";
  position: absolute;
  transition: all 0.3s ease;
  opacity: 0;
}

/* --- CHECKBOX STYLES (Models) --- */
/* Square box with rounded corners */
.catalog-filters__option
  input[type="checkbox"]
  + .catalog-filters__label-text::before {
  border-radius: 4px;
}

/* Checkmark icon (CSS drawn) */
.catalog-filters__option
  input[type="checkbox"]
  + .catalog-filters__label-text::after {
  left: 8px;
  top: 50%;
  width: 4px;
  height: 8px;
  border: solid var(--primary-color, #333);
  border-width: 0 2px 2px 0;
  transform: translateY(-60%) rotate(45deg) scale(0);
}

/* Checkbox Checked State */
.catalog-filters__option
  input[type="checkbox"]:checked
  + .catalog-filters__label-text::before {
  background-color: #fad4d8; /* Soft red background */
}

.catalog-filters__option
  input[type="checkbox"]:checked
  + .catalog-filters__label-text::after {
  opacity: 1;
  transform: translateY(-60%) rotate(45deg) scale(1);
  border-color: #d00; /* Red checkmark or dark grey */
}

/* --- RADIO STYLES (Categories) --- */
/* Round circle */
.catalog-filters__option
  input[type="radio"]
  + .catalog-filters__label-text::before {
  border-radius: 50%;
}

/* Inner dot */
.catalog-filters__option
  input[type="radio"]
  + .catalog-filters__label-text::after {
  left: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background-color: #d00;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
}

/* Radio Checked State */
.catalog-filters__option
  input[type="radio"]:checked
  + .catalog-filters__label-text::before {
  background-color: #fad4d8;
}

.catalog-filters__option
  input[type="radio"]:checked
  + .catalog-filters__label-text::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.catalog-filters__label-text {
  line-height: 1.4;
}

/* Active Tags Section */
.catalog-filters__active-tags {
  margin-bottom: 25px;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
}

.catalog-filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filters__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.catalog-filters__tag:hover {
  border-color: #999;
  background-color: #fafafa;
}

.catalog-filters__tag-remove {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.catalog-filters__tag:hover .catalog-filters__tag-remove {
  color: #d00;
}

.catalog-filters__submit {
  width: 100%;
  padding: 12px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  margin-top: 10px;
}

.catalog-filters__submit:hover {
  background-color: #333;
}

@media (min-width: 1050px) {
  .catalog-filters {
    /* position: sticky; */
    top: 100px; /* Adjust based on header height */
  }
  .catalog__content {
    flex-direction: row;
    padding-top: 4rem;
  }
  .catalog-filters {
    margin-bottom: 30px;
    min-width: 330px;
    width: 330px;
  }
  .catalog__description-container {
    padding: 5rem 1.5rem 0;
  }
}

.hidden {
  display: none !important;
}

/* PRODUCTS */
.catalog__products {
  padding: 20px;
}
.catalog__grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  /* padding: 20px; */
  flex-wrap: wrap;
}
.product-card {
  width: 305px;
}
.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background-color: var(--secondary-color);
}
.product-card__image {
  max-width: 305px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.product-card__image img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.product-card__saleType {
  padding: 4px 10px;
  background-color: #eb6012;
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  color: var(--secondary-color);
  width: max-content;
}

/* Modifier classes for saleType based on category */
.product-card__saleType--accesorios {
  background-color: #2dcad1; /* Teal for accessories */
}

.product-card__saleType--lifestyle {
  background-color: #000; /* Black for lifestyle */
}
.product-card__title {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
}
.product-card__sku {
  font-size: 10px;
  font-weight: 700;
}
.product-card__sku span {
  font-size: 10px;
  font-weight: 400;
  /* text-transform: uppercase; */
}
.product-card__colors {
  display: flex;
  gap: 5px;
  margin-block: 5px;
}
.product-card__color {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.product-card__price {
  color: #666666;
  font-size: 14px;
  font-weight: 700;
}
@media (min-width: 1050px) {
  .catalog__grid {
    justify-content: start;
  }
}
