/* =========================================================
   PF Catalog — listado dinámico (estilo Perfume Ideal)
   ========================================================= */

.pf-catalog-active .elementor-85 .elementor-element-17b5304,
.pf-catalog-active .elementor-85 .elementor-element-86886fc,
.pf-catalog-active .elementor-85 .elementor-element-8c003f6,
.pf-catalog-active .elementor-85 .elementor-element-72ceec5,
.pf-catalog-active .elementor-85 .elementor-element-a457458,
.pf-catalog-active .elementor-85 .elementor-element-22a007a {
  display: none !important;
}

#pf-catalog-app,
[data-pf-catalog] {
  display: block;
  width: min(1180px, 94vw);
  margin: 1.25rem auto 2.5rem;
}

.pf-cat {
  --pf-teal: #0e667e;
  --pf-teal-dark: #0a4f62;
  --pf-rose: #8b3a62;
  --pf-ink: #1b2a32;
  --pf-muted: #5f6f78;
  --pf-line: rgba(14, 102, 126, 0.14);
  --pf-card: #ffffff;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--pf-ink);
}

.pf-cat-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pf-cat-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: var(--pf-teal-dark);
}

.pf-cat-sub {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--pf-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.pf-cat-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 1.1rem 0 0.65rem;
}

.pf-cat-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #e7eef1;
  gap: 4px;
}

.pf-cat-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pf-teal-dark);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pf-cat-tab.is-active {
  background: var(--pf-teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 102, 126, 0.28);
}

.pf-cat-tab[data-gender="DAMA"].is-active {
  background: var(--pf-rose);
  box-shadow: 0 6px 16px rgba(139, 58, 98, 0.28);
}

.pf-cat-new-btn {
  appearance: none;
  border: 1.5px solid rgba(14, 102, 126, 0.28);
  background: #fff;
  color: var(--pf-teal-dark);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-cat-new-btn:hover {
  border-color: var(--pf-teal);
  background: #f3f9fb;
}

.pf-cat-new-btn.is-active {
  background: var(--pf-teal);
  border-color: var(--pf-teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 102, 126, 0.25);
}

.pf-cat-new-ico {
  font-size: 0.85rem;
  line-height: 1;
}

.pf-cat-search {
  flex: 1 1 auto;
  min-width: min(240px, 100%);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-left: auto;
}

.pf-cat-search-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-teal);
}

.pf-cat-search-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--pf-line);
  border-radius: 999px;
  padding: 0.15rem 0.85rem 0.15rem 0.75rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-cat-search-box:focus-within {
  border-color: var(--pf-teal);
  box-shadow: 0 0 0 3px rgba(14, 102, 126, 0.12);
}

.pf-cat-search-icon {
  display: inline-flex;
  color: var(--pf-teal);
  flex: 0 0 auto;
}

.pf-cat-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.15rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--pf-ink);
  outline: none;
}

.pf-cat-count {
  margin: 0 0 0.85rem;
  color: var(--pf-muted);
  font-size: 0.88rem;
}

.pf-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.pf-cat-card {
  background: var(--pf-card);
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 102, 126, 0.12);
}

.pf-cat-bottle-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 170px;
  padding: 1rem 0.75rem 0.35rem;
  background:
    radial-gradient(120px 80px at 50% 85%, rgba(14, 102, 126, 0.12), transparent 70%),
    linear-gradient(180deg, #f7fafb 0%, #eef4f6 100%);
}

.pf-cat-card.is-dama .pf-cat-bottle-wrap {
  background:
    radial-gradient(120px 80px at 50% 85%, rgba(139, 58, 98, 0.14), transparent 70%),
    linear-gradient(180deg, #fcf7fa 0%, #f4eef2 100%);
}

.pf-cat-bottle {
  width: auto;
  height: 148px;
  max-width: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.pf-cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pf-teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.pf-cat-body {
  padding: 0.85rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.pf-cat-code {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pf-teal);
}

.pf-cat-card.is-dama .pf-cat-code {
  color: var(--pf-rose);
}

.pf-cat-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--pf-ink);
}

.pf-cat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pf-cat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--pf-teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
}

.pf-cat-notes {
  margin: 0.15rem 0 0;
  color: var(--pf-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-cat-loading,
.pf-cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--pf-muted);
  background: #f7fafb;
  border-radius: 16px;
  border: 1px dashed var(--pf-line);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .pf-cat-controls {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.35rem;
  }

  .pf-cat-tabs {
    width: 100%;
  }

  .pf-cat-tab {
    flex: 1;
    text-align: center;
  }

  .pf-cat-new-btn {
    width: 100%;
    justify-content: center;
  }

  .pf-cat-search {
    max-width: none;
    min-width: 0;
    margin-left: 0;
    /* En columna, flex-basis 240px se iba a la ALTURA y abría un hueco enorme */
    flex: 0 0 auto;
  }

  .pf-cat-count {
    margin-bottom: 0.65rem;
  }

  .pf-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .pf-cat-bottle-wrap {
    min-height: 140px;
  }

  .pf-cat-bottle {
    height: 120px;
  }
}
