/* Catálogo único: header (title, search, count) and the filter column: a side column on
   wide screens, a panel that slides in from the left on phones and tablets. */
.lp-catalog-head {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  color: #111316;
}

/* Black header with the home hero halo, the same as the collections: above <main>, edge to edge. Fixed image size: it looks the same at any width. */
.lp-catalog-cabeza {
  background: #0b0c10 url(../lp-store-inicio/img/hero-negro-fondo-celular.webp) no-repeat right -210px top -120px / 560px auto;
  color: #ecedef;
}

@media (min-width: 620px) {
  .lp-catalog-cabeza {
    background: #0b0c10 url(../lp-store-inicio/img/hero-negro-fondo-ancha.webp) no-repeat right -260px top -95px / 1500px auto;
  }
}

@media (min-width: 1200px) {
  .lp-catalog-cabeza {
    background-position: right -80px top -95px;
  }
}

/* The same sizes as the collections header (inicio.css): change them together. */
.lp-catalog-cabeza__interior {
  width: min(calc(100% - 32px), var(--gds-container-max, 1376px));
  margin-inline: auto;
  padding: 16px 0 12px;
}

.lp-catalog__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}

.lp-catalog__breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -13px;
  color: inherit;
  text-decoration: none;
}

.lp-catalog__breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.lp-catalog__title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(28px, 22px + 1.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: none;
  text-wrap: balance;
  color: #fff;
}

.lp-catalog__total--cabeza {
  font-weight: 500;
  color: #fff;
}

.lp-catalog-cabeza__punto {
  margin-inline: .1em;
}

.lp-catalog-cabeza__bajada {
  max-width: 62ch;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
  color: rgba(255, 255, 255, .78);
}

/* The same three facts as the home page */
.lp-catalog-franja {
  padding: 14px 16px 0;
}

.lp-catalog-franja ul {
  display: flex;
  max-width: var(--gds-container-max, 1376px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.lp-catalog-franja li {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0 6px;
}

.lp-catalog-franja li + li {
  border-left: 1px solid #e4e5e8;
}

.lp-catalog-franja .lpi-icono {
  flex: none;
  width: 18px;
  height: 18px;
  color: #111316;
}

.lp-catalog-franja strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #111316;
}

.lp-catalog-franja strong a {
  color: inherit;
  text-decoration: none;
}

.lp-catalog-franja strong a:hover {
  text-decoration: underline;
}

.lp-catalog-franja span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: nowrap;
  color: #5d6169;
}

/* On phones, a row of its own after the first products. Until the script places it, it takes no room. */
@media (max-width: 767px) {
  .lp-catalog-franja {
    display: none;
    padding: 2px 0;
  }

  .loq-cards-grid > .lp-catalog-franja {
    display: block;
    grid-column: 1 / -1;
  }

  .lp-catalog-franja li {
    gap: 4px;
    padding: 0 4px;
  }

  .lp-catalog-franja .lpi-icono {
    width: 16px;
    height: 16px;
  }

  .lp-catalog-franja strong {
    font-size: 11px;
  }

  .lp-catalog-franja span {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .lp-catalog-cabeza__interior {
    width: min(calc(100% - 48px), var(--gds-container-max, 1376px));
    padding: 24px 0 20px;
  }

  .lp-catalog-cabeza__bajada {
    margin-top: 8px;
    font-size: 16px;
  }

  .lp-catalog-franja {
    padding-inline: 24px;
  }
}

/* Search */
.lp-catalog-search {
  position: relative;
  min-width: 0;
  margin: 0;
}

.lp-catalog-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #5d6169;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.lp-catalog-search input[type="search"] {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 16px 0 44px;
  border: 1px solid #e2e2e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  color: #111316;
  appearance: none;
}

.lp-catalog-search input[type="search"]:focus {
  border-color: #0b0c10;
  outline: 2px solid #0b0c10;
  outline-offset: 0;
}

/* Count + filters button */
.lp-catalog-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.lp-catalog__total--barra {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #5d6169;
}

.lp-catalog__total-count {
  font-weight: 600;
  color: #111316;
}

.lp-catalog__hint::before {
  content: " · ";
}

/* Lines of the brand, or the store's categories, one tap away. 44 px to tap, 36 to see: the border is transparent. */
.lp-catalog__quick {
  display: flex;
  gap: 8px;
  margin: 12px -16px 0;
  padding-inline: 16px 36px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.lp-catalog__quick::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .lp-catalog__quick {
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding-inline: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (min-width: 1200px) {
  .lp-catalog-cabeza__interior {
    padding: 28px 0 24px;
  }

  .lp-catalog-cabeza__punto {
    display: none;
  }
}

.lp-catalog__quick-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: solid transparent;
  border-width: 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1) padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s ease;
}

.lp-catalog__quick-link:hover {
  background-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.lp-catalog__quick-link.is-active,
.lp-catalog__quick-link.is-active:hover {
  background-color: #fff;
  box-shadow: none;
  color: #0b0c10;
}

.lp-catalog__quick-link:focus-visible,
.lp-catalog__breadcrumb a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lp-catalog__quick-link--clear,
.lp-catalog__quick-link--clear:hover {
  padding: 0 6px;
  background: none;
  box-shadow: none;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-catalog__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d6d6da;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #111316;
  cursor: pointer;
}

.lp-catalog__open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lp-catalog__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0b0c10;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Help card, a full row inside the grid */
.lp-catalog-ayuda {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
}

.lp-catalog-ayuda[hidden] {
  display: none;
}

.lp-catalog-ayuda p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111316;
}

/* No results */
.lp-catalog__empty {
  margin: 12px 0 0;
  padding: 24px 16px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.lp-catalog__empty p {
  margin: 0;
}

.lp-catalog__empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #111316;
}

.lp-catalog__empty-text {
  margin-top: 4px !important;
  font-size: 14px;
  color: #5d6169;
}

.lp-catalog__empty-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.lp-catalog__boton,
.lp-catalog__boton:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #0b0c10;
  border-radius: 12px;
  background: #0b0c10;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.lp-catalog__boton:hover {
  border-color: #000000;
  background: #000000;
}

.lp-catalog__boton .lpi-icono {
  width: 18px;
  height: 18px;
}

.lp-catalog__boton--linea,
.lp-catalog__boton--linea:hover {
  background: #fff;
  color: #000000;
}

.lp-catalog__empty-sugeridos {
  margin-top: 20px;
  text-align: left;
}

.lp-catalog__empty-subtitulo {
  margin-bottom: 10px !important;
  font-size: 16px;
  font-weight: 600;
  color: #111316;
}

.lp-catalog__empty-sugeridos .loq-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .lp-catalog__empty-sugeridos .loq-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sort and filters bar */
:root {
  --lp-encabezado: 53px;
}

.lp-catalog-barra__fila,
.lp-catalog-barra__controles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-catalog-barra__fila {
  flex-direction: column;
  align-items: stretch;
}

.lp-catalog-barra__controles {
  min-width: 0;
}

.lp-catalog__buscar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e2e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #111316;
  cursor: pointer;
}

.lp-catalog__buscar:hover,
.lp-catalog-barra.is-buscando .lp-catalog__buscar {
  border-color: #0b0c10;
  color: #0b0c10;
}

.lp-catalog__buscar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lp-catalog__buscar:focus-visible {
  outline: 2px solid #0b0c10;
  outline-offset: 2px;
}

/* Phones: the box opens from its button, below the controls */
@media (max-width: 767px) {
  .lp-catalog-barra__controles {
    order: -1;
  }

  /* In 360 px "Recomendados" has to fit, also with filters on: the count goes on the corner of the button. */
  .lp-catalog-orden > svg {
    left: 9px;
    width: 14px;
    height: 14px;
  }

  .lp-catalog-orden select {
    padding: 0 20px 0 28px;
    background-position: right 4px center;
    background-size: 14px;
  }

  .lp-catalog-barra .lp-catalog__open {
    gap: 5px;
    padding: 0 10px;
  }

  .lp-catalog-barra .lp-catalog__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    box-shadow: 0 0 0 2px #f5f5f5;
  }

  .lp-catalog-barra:not(.is-buscando) .lp-catalog-search {
    display: none;
  }
}

/* Tablets: everything on one line */
@media (min-width: 768px) and (max-width: 1199px) {
  .lp-catalog-barra__fila {
    flex-direction: row;
    align-items: center;
  }

  .lp-catalog-search {
    flex: 1 1 auto;
  }

  .lp-catalog-barra__controles {
    flex: none;
  }

  .lp-catalog-orden {
    flex: 0 0 200px;
  }
}

@media (min-width: 768px) {
  .lp-catalog__buscar {
    display: none;
  }
}

.lp-catalog-orden {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.lp-catalog-orden > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: #111316;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.lp-catalog-orden select {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 30px 0 36px;
  border: 1px solid #e2e2e5;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'%23111316\' stroke-width=\'2\' stroke-linecap=\'round\'%3E%3Cpath d=\'m6 9 6 6 6-6\'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #111316;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}

.lp-catalog-orden select:hover {
  border-color: #111316;
}

.lp-catalog-orden select:focus-visible {
  outline: 2px solid #0b0c10;
  outline-offset: 2px;
}

/* "Ver más" with how many are left */
.loq-cards__footer:has(.loq-cards__progreso) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loq-cards__progreso {
  margin: 0;
  font-size: 13px;
  color: #5d6169;
}

.loq-block--main-grid .loq-cards__toggle {
  min-height: 44px;
}

.loq-block--main-grid .loq-cards__toggle:focus-visible {
  outline: 2px solid #0b0c10;
  outline-offset: 2px;
}

/* Filter column: section titles */
.lp-catalog {
  color: #111316;
}

.lp-catalog__icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-catalog__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5d6169;
}

.lp-catalog__group + .lp-catalog__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececee;
}

/* Options as checklists */
.lp-catalog__options {
  display: flex;
  flex-direction: column;
}

.lp-catalog__option,
.lp-catalog__option:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111316;
  text-decoration: none;
}

.lp-catalog__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c6ca;
  border-radius: 5px;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.lp-catalog__check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.lp-catalog__option:hover .lp-catalog__check {
  border-color: #0b0c10;
}

.lp-catalog__option.is-active .lp-catalog__check {
  border-color: #0b0c10;
  background: #0b0c10;
}

.lp-catalog__option.is-active .lp-catalog__check svg {
  opacity: 1;
}

.lp-catalog__option.is-active .lp-catalog__option-label {
  font-weight: 600;
}

.lp-catalog__count {
  margin-left: auto;
  font-size: 12px;
  color: #5d6169;
}

.lp-catalog__option:focus-visible,
.lp-catalog__rango:focus-visible,
.lp-catalog__precio input:focus-visible,
.lp-catalog__clear a:focus-visible,
.lp-catalog__boton:focus-visible,
.lp-catalog__open:focus-visible,
.lp-catalog__close:focus-visible,
.lp-catalog__apply:focus-visible {
  outline: 2px solid #0b0c10;
  outline-offset: 2px;
}

.lp-catalog__clear {
  margin: 14px 0 0;
  font-size: 13px;
}

.lp-catalog__clear a {
  color: #111316;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Price: budget cuts one tap away, and two fields */
.lp-catalog__rangos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.lp-catalog__rango {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2e2e5;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111316;
  text-decoration: none;
}

.lp-catalog__rango:hover {
  border-color: #0b0c10;
  color: #111316;
}

.lp-catalog__rango.is-active,
.lp-catalog__rango.is-active:hover {
  border-color: #0b0c10;
  background: #0b0c10;
  color: #fff;
}

.lp-catalog__precio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.lp-catalog__precio label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #5d6169;
}

.lp-catalog__precio input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e2e2e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  font-size: 16px;
  color: #111316;
  appearance: textfield;
}

.lp-catalog__precio input::-webkit-outer-spin-button,
.lp-catalog__precio input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.lp-catalog__precio-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: #b42318;
}

/* Panel chrome (title, close, "Ver N productos"): phones and tablets only. */
.lp-catalog__drawer-head,
.lp-catalog__drawer-foot,
.lp-catalog-backdrop {
  display: none;
}

/* Loading: the filters stay solid (the tapped box fills at once, a bar runs along the top
   of the column and the panel button says "Cargando…"); the products dim softly. */
.loq-block--main-grid {
  transition: opacity .2s ease, filter .2s ease;
}

.lp-catalog-is-loading .loq-block--main-grid {
  opacity: .45;
  filter: saturate(.6);
  pointer-events: none;
}

.lp-catalog__spinner {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lp-catalog-spin .7s linear infinite;
}

.lp-catalog-is-loading .lp-catalog__total::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  vertical-align: -1px;
  border: 2px solid #b9bbbf;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lp-catalog-spin .7s linear infinite;
}

.lp-catalog__apply-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lp-catalog-is-loading .lp-catalog__apply-label {
  display: none;
}

.lp-catalog-is-loading .lp-catalog__apply-loading {
  display: inline-flex;
}

.lp-catalog-is-loading .lp-catalog__apply {
  background: #000000;
}

.lp-catalog__drawer-head::after,
.lp-catalog::before {
  content: "";
  position: absolute;
  left: 0;
  height: 2px;
  width: 38%;
  background: #0b0c10;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.lp-catalog-is-loading .lp-catalog__drawer-head::after,
.lp-catalog-is-loading .lp-catalog::before {
  opacity: 1;
  animation: lp-catalog-progress 1s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes lp-catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lp-catalog-progress {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(270%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-catalog__spinner,
  .lp-catalog-is-loading .lp-catalog__total::after,
  .lp-catalog-is-loading .lp-catalog__drawer-head::after,
  .lp-catalog-is-loading .lp-catalog::before {
    animation-duration: 2.4s;
  }
}

/* Wide screens on category pages: filter column on the left, header and products on the right. */
@media (min-width: 1200px) {
  main#main.loq-archive-modular:has(.lp-catalog) {
    display: grid;
    width: min(calc(100% - 48px), var(--gds-container-max, 1376px));
    grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
    /* The filter column spans the three rows: with few results its height stretched the first two, and the products dropped. */
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: 32px;
    margin-inline: auto;
  }

  main#main.loq-archive-modular:has(.lp-catalog) > .loq-category-results {
    display: contents;
  }

  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog-head {
    grid-area: 2 / 2;
  }

  /* The column fills its three rows and its content is what stays in view, with a scroll of its own. A sticky column
     would be limited by all of <main>, and it covered the category text below the products. */
  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog {
    position: relative;
    grid-area: 1 / 1 / span 3 / 2;
    align-self: stretch;
    min-width: 0;
    margin-top: 20px;
  }

  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog > .site-container {
    position: sticky;
    top: calc(var(--lp-encabezado) + 12px);
    overflow: hidden auto;
    max-height: calc(100vh - var(--lp-encabezado) - 24px);
    scrollbar-width: thin;
    padding: 20px 20px 22px;
    border: 1px solid #e6e6e8;
    border-radius: 14px;
    background: #fff;
  }

  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  main#main.loq-archive-modular:has(.lp-catalog) .loq-block--main-grid > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog-barra {
    grid-area: 1 / 2;
    min-width: 0;
    margin-top: 20px;
  }

  .lp-catalog-barra__fila {
    gap: 12px;
  }

  .lp-catalog-barra__controles {
    justify-content: space-between;
  }

  .lp-catalog__total--cabeza {
    display: none;
  }

  .lp-catalog-orden {
    flex: 0 0 200px;
  }

  .lp-catalog-orden select {
    font-size: 14px;
  }

  main#main.loq-archive-modular:has(.lp-catalog) .loq-block--main-grid {
    grid-area: 3 / 2 !important;
    min-width: 0;
    width: 100%;
    margin: 18px 0 0 !important;
  }

  main#main.loq-archive-modular:has(.lp-catalog) .loq-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-catalog-franja {
    padding-top: 16px;
  }

  /* The progress bar goes with the part that stays in view. */
  .lp-catalog::before {
    content: none;
  }

  .lp-catalog > .site-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 2px;
    border-radius: 2px;
    background: #0b0c10;
    opacity: 0;
    pointer-events: none;
  }

  .lp-catalog-is-loading .lp-catalog > .site-container::before {
    opacity: 1;
    animation: lp-catalog-progress 1s cubic-bezier(.4, 0, .2, 1) infinite;
  }

  .lp-catalog__open {
    display: none;
  }

  .lp-catalog .lp-category-facets__disclosure > summary {
    display: none;
  }
}

@media (min-width: 1440px) {
  main#main.loq-archive-modular:has(.lp-catalog) .loq-cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Phones and tablets: plain top-to-bottom flow (header, products, category text) with the
   filters in a panel. The store's older category layout placed a white band, a filter
   icon and the products with grid areas built for its subcategory bar. */
@media (max-width: 1199px) {
  /* No stacking context of its own, so the panel can sit above the site header. */
  body.archive main#main.loq-archive-modular:has(.lp-catalog) {
    display: block !important;
    isolation: auto !important;
    padding-top: 0 !important;
  }

  body.archive main#main.loq-archive-modular:has(.lp-catalog)::before {
    content: none !important;
    display: none !important;
  }

  body.archive main#main.loq-archive-modular:has(.lp-catalog) > .loq-category-results {
    display: block !important;
  }

  body.archive main#main.loq-archive-modular:has(.lp-catalog) .loq-block--main-grid {
    margin: 16px 0 0 !important;
  }

  .lp-catalog {
    position: fixed;
    z-index: 100001;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 380px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 12px 0 40px rgb(17 19 22 / 18%);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }

  .lp-catalog > .site-container {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 20px !important;
  }

  /* <main> sits at z-index 1 under the sticky header (1000); while the panel is open it
     stops being a layer of its own so the panel and its backdrop cover the header too. */
  .lp-catalog-drawer-open body.archive main#main.loq-archive-modular:has(.lp-catalog) {
    z-index: auto !important;
  }

  .lp-catalog-drawer-open .lp-catalog {
    transform: none;
    visibility: visible;
    transition: transform .25s ease;
  }

  .lp-catalog-drawer-open,
  .lp-catalog-drawer-open body {
    overflow: hidden;
  }

  .lp-catalog-backdrop {
    display: block;
    position: fixed;
    z-index: 100000;
    inset: 0;
    background: rgb(17 19 22 / 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .lp-catalog-drawer-open .lp-catalog-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .lp-catalog__drawer-head {
    position: sticky;
    z-index: 2;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -20px 16px;
    padding: 14px 12px 14px 20px;
    border-bottom: 1px solid #ececee;
    background: #fff;
  }

  .lp-catalog::before {
    content: none;
  }

  .lp-catalog__drawer-head::after {
    bottom: -1px;
  }

  .lp-catalog__drawer-head p {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
  }

  .lp-catalog__close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    box-shadow: none;
    color: #111316;
    cursor: pointer;
  }

  .lp-catalog__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .lp-catalog__drawer-foot {
    position: sticky;
    z-index: 2;
    bottom: 0;
    display: block;
    margin: 20px -20px 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #ececee;
    background: #fff;
  }

  .lp-catalog__apply {
    width: 100%;
    height: 48px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: #0b0c10;
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
  }

  /* Brand and price inside the panel: always open, no box of their own. */
  .lp-catalog .lp-category-facets {
    padding: 18px 0 0 !important;
  }

  .lp-catalog .lp-category-facets__disclosure {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  .lp-catalog .lp-category-facets__disclosure > summary {
    display: none !important;
  }

  .lp-catalog .lp-category-facets__form {
    position: static !important;
    width: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .lp-catalog .lp-category-facets__brand-list {
    max-height: none !important;
  }
}

@media (max-width: 1199px) {
  /* Stays under the site header; <main> goes under the header's layer, so nothing covers it. */
  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog-barra {
    position: sticky;
    z-index: 5;
    top: var(--lp-encabezado);
    margin-top: 4px;
    padding: 8px 16px;
    background: #f5f5f5;
    box-shadow: 0 1px 0 #e4e5e8;
  }

  .lp-catalog__total--barra {
    display: none;
  }

  .lp-catalog__open {
    position: relative;
    flex: none;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    border-color: #e2e2e5;
    border-radius: 12px;
  }

  .lp-catalog__open:hover {
    border-color: #111316;
  }

  .lp-catalog__open svg {
    width: 18px;
    height: 18px;
  }

  .lp-catalog__empty {
    margin-inline: 16px;
  }
}

/* Tablets: same margin as the product grid. */
@media (min-width: 768px) and (max-width: 1199px) {
  main#main.loq-archive-modular:has(.lp-catalog) > .lp-catalog-barra {
    padding-inline: 24px;
  }

  .lp-catalog__empty {
    margin-inline: 24px;
  }

  :root {
    --lp-encabezado: 69px;
  }
}

/* With no results the header already says so ("No encontramos productos con …"); the theme's
   empty grid card below repeated it with other words. */
main:has(.lp-catalog__empty) .loq-block--grid-empty {
  display: none !important;
}
