/**
 * Resultados de búsqueda de productos — Tibor 2026
 * Alcance estricto: body.tibor-product-catalog
 */

body.tibor-product-catalog #page-content {
  background: #f4f7fb;
}

body.tibor-product-catalog #page-content > .container {
  max-width: 1440px;
  padding: 32px 24px 64px !important;
}

body.tibor-product-catalog .woocommerce-breadcrumb {
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  color: #718096;
  font-size: 13px;
}

body.tibor-product-catalog .woocommerce-breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
}

body.tibor-product-catalog .page-title {
  margin: 0 0 8px;
  color: #10233f;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}

body.tibor-product-catalog .woocommerce-result-count {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 32px;
  color: #61728a;
  font-size: 14px;
  line-height: 1.4;
}

body.tibor-product-catalog .woocommerce-ordering {
  float: right;
  margin: 0 0 32px;
}

body.tibor-product-catalog .woocommerce-ordering::before {
  content: "Ordenar por";
  margin-right: 8px;
  color: #61728a;
  font-size: 13px;
  font-weight: 600;
}

body.tibor-product-catalog .woocommerce-ordering select {
  min-width: 220px;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background-color: #fff;
  color: #17283f;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 35, 63, .04);
}

body.tibor-product-catalog .woocommerce-ordering select:focus-visible {
  border-color: var(--color-primary);
  outline: 3px solid rgba(11, 57, 137, .14);
  outline-offset: 1px;
}

body.tibor-product-catalog ul.products {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tibor-product-catalog ul.products::before,
body.tibor-product-catalog ul.products::after {
  display: none;
  content: none;
}

body.tibor-product-catalog ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 35, 63, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.tibor-product-catalog ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: #bfd0e4;
  box-shadow: 0 14px 32px rgba(16, 35, 63, .10);
}

body.tibor-product-catalog ul.products li.product > .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

body.tibor-product-catalog ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 24px;
  border-bottom: 1px solid #edf2f7;
  background: #f8fafc;
  object-fit: contain;
  transition: transform .25s ease;
}

body.tibor-product-catalog ul.products li.product:hover img {
  transform: scale(1.025);
}

body.tibor-product-catalog .tibor-search-category {
  display: block;
  margin: 16px 20px 4px;
  color: #0b62b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.tibor-product-catalog ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;
  color: #10233f;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.tibor-product-catalog ul.products li.product .tibor-product-card-description {
  display: -webkit-box;
  min-height: 42px;
  margin: 8px 0 0;
  padding: 0 20px;
  overflow: hidden;
  color: #5d6b7c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.tibor-product-catalog ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: auto 0 0;
  padding: 10px 20px 18px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

body.tibor-product-catalog ul.products li.product .tibor-catalog-from-price small {
  color: #5d6b7c;
  font-size: 12px;
  font-weight: 650;
  text-transform: lowercase;
}

body.tibor-product-catalog ul.products li.product .price del {
  color: #8a98aa;
  font-size: 13px;
  font-weight: 500;
}

body.tibor-product-catalog ul.products li.product .price ins {
  color: var(--color-primary);
  text-decoration: none;
}

body.tibor-product-catalog ul.products li.product .onsale {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.tibor-product-catalog ul.products li.product .tibor-card-promo {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgba(16, 35, 63, .1);
}

body.tibor-product-catalog ul.products li.product .tibor-card-promo--navy { background: #e7eef5; color: #0b3989; }
body.tibor-product-catalog ul.products li.product .tibor-card-promo--teal { background: #eef3fb; color: #0b62b4; }
body.tibor-product-catalog ul.products li.product .tibor-card-promo--amber { background: #fdf1dc; color: #b9770f; }
body.tibor-product-catalog ul.products li.product .tibor-card-promo--purple { background: #efe9fd; color: #7c3aed; }

body.tibor-product-catalog ul.products li.product > .button,
body.tibor-product-catalog ul.products li.product > .added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 20px 20px;
  padding: 10px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.tibor-product-catalog ul.products li.product > .button::after {
  content: "→";
  margin-left: 8px;
  font-size: 16px;
  line-height: 1;
}

body.tibor-product-catalog ul.products li.product > .button:hover,
body.tibor-product-catalog ul.products li.product > .added_to_cart:hover {
  border-color: #072866;
  background: #072866;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 57, 137, .18);
}

body.tibor-product-catalog ul.products li.product a:focus-visible {
  outline: 3px solid rgba(11, 57, 137, .22);
  outline-offset: -3px;
}

body.tibor-product-catalog .woocommerce-pagination {
  clear: both;
  margin: 40px 0 0;
}

body.tibor-product-catalog .woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.tibor-product-catalog .woocommerce-pagination ul li {
  border: 0;
}

body.tibor-product-catalog .woocommerce-pagination ul li a,
body.tibor-product-catalog .woocommerce-pagination ul li span {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d8e2ee;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}

body.tibor-product-catalog .woocommerce-pagination ul li span.current,
body.tibor-product-catalog .woocommerce-pagination ul li a:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 1180px) {
  body.tibor-product-catalog ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.tibor-product-catalog #page-content > .container {
    padding: 24px 16px 48px !important;
  }

  body.tibor-product-catalog ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  body.tibor-product-catalog .woocommerce-breadcrumb {
    margin-bottom: 16px;
  }

  body.tibor-product-catalog .page-title {
    font-size: 28px;
  }

  body.tibor-product-catalog .woocommerce-result-count {
    display: flex;
    min-height: 0;
    margin-bottom: 16px;
  }

  body.tibor-product-catalog .woocommerce-ordering {
    float: none;
    width: 100%;
    margin-bottom: 24px;
  }

  body.tibor-product-catalog .woocommerce-ordering::before {
    display: block;
    margin: 0 0 8px;
  }

  body.tibor-product-catalog .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }

  body.tibor-product-catalog ul.products {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tibor-product-catalog ul.products li.product img {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tibor-product-catalog ul.products li.product,
  body.tibor-product-catalog ul.products li.product img {
    transition: none;
  }

  body.tibor-product-catalog ul.products li.product:hover,
  body.tibor-product-catalog ul.products li.product:hover img {
    transform: none;
  }
}

/* Catalog shell: search, native ordering and category navigation. */
body.tibor-product-catalog .tibor-catalog-toolbar {
  clear: both;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 35, 63, .05);
}

body.tibor-product-catalog .tibor-catalog-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}

body.tibor-product-catalog .tibor-catalog-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #61728a;
  pointer-events: none;
}

body.tibor-product-catalog .tibor-catalog-search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.tibor-product-catalog .tibor-catalog-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px 0 46px;
  border: 1px solid #cdd9e7;
  border-right: 0;
  border-radius: 11px 0 0 11px;
  background: #fff;
  color: #10233f;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
}

body.tibor-product-catalog .tibor-catalog-search input[type="search"]::placeholder {
  color: #718096;
}

body.tibor-product-catalog .tibor-catalog-search input[type="search"]:focus {
  z-index: 1;
  border-color: var(--color-primary);
  outline: 3px solid rgba(11, 57, 137, .12);
}

body.tibor-product-catalog .tibor-catalog-search button {
  min-width: 104px;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--color-primary);
  border-radius: 0 11px 11px 0;
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

body.tibor-product-catalog .tibor-catalog-search button:hover {
  border-color: #072866;
  background: #072866;
}

body.tibor-product-catalog .tibor-catalog-search button:focus-visible {
  outline: 3px solid rgba(11, 57, 137, .22);
  outline-offset: 2px;
}

body.tibor-product-catalog .tibor-catalog-meta {
  display: flex;
  gap: 16px;
  align-items: end;
}

body.tibor-product-catalog .tibor-catalog-meta .woocommerce-result-count {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  white-space: nowrap;
}

body.tibor-product-catalog .tibor-catalog-sort {
  display: grid;
  gap: 6px;
}

body.tibor-product-catalog .tibor-catalog-sort-label {
  color: #61728a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

body.tibor-product-catalog .tibor-catalog-sort .woocommerce-ordering {
  float: none;
  margin: 0;
}

body.tibor-product-catalog .tibor-catalog-sort .woocommerce-ordering::before {
  display: none;
  content: none;
}

body.tibor-product-catalog .tibor-catalog-sort .woocommerce-ordering select {
  min-width: 190px;
  min-height: 46px;
}

body.tibor-product-catalog .tibor-catalog-layout {
  clear: both;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.tibor-product-catalog .tibor-catalog-results {
  min-width: 0;
}

body.tibor-product-catalog .tibor-catalog-filters {
  position: sticky;
  top: 132px;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 35, 63, .05);
}

body.tibor-product-catalog .tibor-catalog-filters summary {
  display: flex;
  min-height: 54px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  color: #10233f;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

body.tibor-product-catalog .tibor-catalog-filters summary::-webkit-details-marker {
  display: none;
}

body.tibor-product-catalog .tibor-catalog-filters summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform .18s ease;
}

body.tibor-product-catalog .tibor-catalog-filters[open] summary svg {
  transform: rotate(180deg);
}

body.tibor-product-catalog .tibor-catalog-filters summary:focus-visible {
  outline: 3px solid rgba(11, 57, 137, .18);
  outline-offset: -3px;
}

body.tibor-product-catalog .tibor-catalog-filter-nav {
  padding: 4px 12px 14px;
  border-top: 1px solid #edf2f7;
}

body.tibor-product-catalog .tibor-catalog-filter-heading {
  margin: 12px 8px 7px;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.tibor-product-catalog .tibor-catalog-filter-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.tibor-product-catalog .tibor-catalog-filter-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 42px;
  padding: 9px 8px;
  align-items: center;
  border-radius: 9px;
  color: #36465c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

body.tibor-product-catalog .tibor-catalog-filter-link:hover {
  background: #f3f7fc;
  color: var(--color-primary);
}

body.tibor-product-catalog .tibor-catalog-filter-link.is-active {
  background: #eaf2ff;
  color: var(--color-primary);
  font-weight: 750;
}

body.tibor-product-catalog .tibor-catalog-filter-mark {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b8c6d8;
  border-radius: 5px;
  background: #fff;
}

body.tibor-product-catalog .tibor-catalog-filter-link.is-active .tibor-catalog-filter-mark {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

body.tibor-product-catalog .tibor-catalog-filter-link.is-active .tibor-catalog-filter-mark::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 5px;
  height: 3px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

body.tibor-product-catalog .tibor-catalog-filter-count {
  color: #8290a3;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

body.tibor-product-catalog .tibor-catalog-results ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.tibor-product-catalog .tibor-catalog-results ul.products li.product img {
  padding: 18px;
}

body.tibor-product-catalog .tibor-catalog-results ul.products li.product .woocommerce-loop-product__title {
  min-height: 42px;
  padding-right: 16px;
  padding-left: 16px;
  font-size: 15px;
}

body.tibor-product-catalog .tibor-catalog-results .tibor-search-category {
  margin-right: 16px;
  margin-left: 16px;
}

body.tibor-product-catalog .tibor-catalog-results ul.products li.product .price {
  padding-right: 16px;
  padding-left: 16px;
  font-size: 16px;
}

body.tibor-product-catalog .tibor-catalog-results ul.products li.product > .button,
body.tibor-product-catalog .tibor-catalog-results ul.products li.product > .added_to_cart {
  min-height: 42px;
  margin-right: 16px;
  margin-left: 16px;
  border-radius: 9px;
  font-size: 13px;
}

@media (max-width: 1320px) {
  body.tibor-product-catalog .tibor-catalog-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  body.tibor-product-catalog .tibor-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.tibor-product-catalog .tibor-catalog-meta {
    justify-content: space-between;
  }

  body.tibor-product-catalog .tibor-catalog-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body.tibor-product-catalog .tibor-catalog-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.tibor-product-catalog .tibor-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.tibor-product-catalog .tibor-catalog-filters {
    position: static;
  }
}

@media (max-width: 620px) {
  body.tibor-product-catalog .tibor-catalog-toolbar {
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
  }

  body.tibor-product-catalog .tibor-catalog-search button {
    min-width: 88px;
    padding: 0 14px;
  }

  body.tibor-product-catalog .tibor-catalog-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.tibor-product-catalog .tibor-catalog-meta .woocommerce-result-count {
    min-height: 0;
    margin: 0;
  }

  body.tibor-product-catalog .tibor-catalog-sort,
  body.tibor-product-catalog .tibor-catalog-sort .woocommerce-ordering,
  body.tibor-product-catalog .tibor-catalog-sort .woocommerce-ordering select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body.tibor-product-catalog .tibor-catalog-results ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}
