.pgx-product-filters {
  width: 100%;
}

.pgx-filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.pgx-filter-group h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.pgx-filter-search {
  width: 100%;
}

.pgx-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pgx-price-fields input {
  width: 100%;
}

.pgx-filter-options {
  display: grid;
  gap: 8px;

  max-height: 280px;
  overflow-y: auto;
}

.pgx-filter-options label {
  display: flex;
  gap: 8px;
  align-items: center;

  cursor: pointer;
}

.pgx-clear-filters {
  width: 100%;
}

/* =========================
   AJAX LOADING
========================= */

.x-main {
  position: relative;
}

.x-main.pgx-loading ul.products {
  opacity: 0.4;

  pointer-events: none;

  transition: opacity 0.2s ease;
}

/* =========================
   HEADER SEARCH
========================= */

.pgx-header-search {
  display: flex;

  gap: 5px;

  align-items: center;
}

.pgx-header-search input {
  min-width: 180px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
  .pgx-price-fields {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   LIVE HEADER SEARCH
============================== */

.pgx-live-search-wrapper {
  position: relative;
  top: 22px;
}
.pgx-live-search-wrapper input {
  min-height: 42px;
}
.pgx-header-search {
  position: relative;
}
.pgx-live-search-wrapper .buscar-button {
  position: relative;
  top: -5px;
  height: 41px;
}

.pgx-live-results {
  position: absolute;

  top: calc(100% + 6px);
  left: 0;

  width: 360px;

  max-width: 90vw;

  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.12);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

  z-index: 99999;
}

.pgx-live-product {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 10px 12px;

  color: inherit;

  text-decoration: none;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pgx-live-product:hover {
  background: rgba(0, 0, 0, 0.035);
}

.pgx-live-product img {
  width: 50px;
  height: 50px;

  object-fit: cover;

  flex-shrink: 0;
}

.pgx-live-product-info {
  display: flex;

  flex-direction: column;

  min-width: 0;
}

.pgx-live-product-name {
  font-weight: 600;

  line-height: 1.3;
}

.pgx-live-product-price {
  margin-top: 3px;

  font-size: 13px;

  opacity: 0.75;
}

.pgx-live-view-all {
  display: block;

  padding: 12px;

  text-align: center;

  font-weight: 600;

  text-decoration: none;
}

.pgx-live-loading,
.pgx-live-empty {
  padding: 14px;

  text-align: center;

  font-size: 14px;
}
/* =========================================
   PGX - Live Search responsive
   En móvil los resultados ocupan espacio
   real y empujan el contenido hacia abajo.
   ========================================= */

@media (max-width: 979px) {
  .pgx-live-results {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    left: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-top: 6px;

    z-index: 1;
  }
}
