/* BayFitness Buscador */
:root {
  --bfs-accent: #11b4e2;
  --bfs-accent-dark: #0a8fb6;
  --bfs-ink: #0b0f14;
  --bfs-muted: #6b7480;
  --bfs-line: #e8ecf0;
  --bfs-soft: #f4f7f9;
  --bfs-head: "Sofia Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --bfs-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- barra del encabezado ---------- */
.site-search.ajax-search.bfs-on .widget_product_search { display: none !important; }
.site-search.ajax-search.bfs-on { position: relative; }
.bfs-trigger {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-width: 260px; height: 46px; padding: 0 8px 0 16px;
  background: var(--bfs-soft); border: 1.5px solid var(--bfs-line); border-radius: 999px;
  font: 500 15px/1 var(--bfs-body); color: var(--bfs-muted);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bfs-trigger:hover, .bfs-trigger:focus-visible { background: #fff; border-color: var(--bfs-accent); box-shadow: 0 0 0 4px rgba(17, 180, 226, .14); }
.bfs-trigger__icon svg { width: 19px; height: 19px; fill: none; stroke: var(--bfs-ink); stroke-width: 2.2; stroke-linecap: round; display: block; }
.bfs-trigger__text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfs-rot { color: var(--bfs-ink); font-weight: 600; display: inline-block; transition: opacity .2s, transform .2s; }
.bfs-rot.is-out { opacity: 0; transform: translateY(6px); }
.bfs-trigger kbd {
  font: 600 12px/1 var(--bfs-body); color: var(--bfs-muted); background: #fff; border: 1px solid var(--bfs-line);
  border-radius: 8px; padding: 6px 9px; box-shadow: none;
}

/* ---------- ventana ---------- */
html.bfs-lock, html.bfs-lock body { overflow: hidden !important; }
.bfs { position: fixed; inset: 0; z-index: 100000; display: none; font-family: var(--bfs-body); color: var(--bfs-ink); }
.bfs.is-open { display: block; }
.bfs__backdrop { position: absolute; inset: 0; background: rgba(5, 9, 14, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: bfsFade .2s ease; }
.bfs__panel {
  position: relative; margin: 28px auto 0; width: min(1000px, calc(100% - 48px)); max-height: calc(100vh - 56px);
  display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: bfsDrop .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes bfsFade { from { opacity: 0; } }
@keyframes bfsDrop { from { opacity: 0; transform: translateY(-14px) scale(.985); } }

.bfs__bar {
  display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 20px 18px 26px;
  background: var(--bfs-ink); background-image: radial-gradient(120% 140% at 0% 0%, rgba(17, 180, 226, .22), transparent 55%);
}
.bfs__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--bfs-accent); stroke-width: 2.4; stroke-linecap: round; display: block; }
.bfs__input {
  flex: 1; min-width: 0; height: 52px !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: 0 !important; outline: 0 !important; box-shadow: none !important;
  font: 600 24px/1.2 var(--bfs-body) !important; color: #fff !important; caret-color: var(--bfs-accent);
}
.bfs__input::placeholder { color: rgba(255, 255, 255, .45); font-weight: 500; }
.bfs__input::-webkit-search-cancel-button { display: none; }
.bfs__clear, .bfs__close {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 999px; color: rgba(255, 255, 255, .8); transition: background .2s, color .2s;
}
.bfs__clear { width: 38px; font-size: 26px; line-height: 1; }
.bfs__clear:hover, .bfs__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.bfs__close { padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); font: 600 12px/1 var(--bfs-body); letter-spacing: .04em; }
.bfs__x { display: none; font-size: 28px; font-weight: 400; }
.bfs__clear[hidden] { display: none; }

.bfs__body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 26px; transition: opacity .15s; }
.bfs__body.is-loading { opacity: .55; }

.bfs-sec + .bfs-sec { margin-top: 22px; }
.bfs-h {
  margin: 0 0 12px !important; font: 800 15px/1 var(--bfs-head) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--bfs-ink) !important;
  display: flex; align-items: center; gap: 8px;
}
.bfs-count { font: 700 12px/1 var(--bfs-body); letter-spacing: 0; background: var(--bfs-soft); color: var(--bfs-muted); padding: 4px 8px; border-radius: 999px; }

.bfs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bfs-chip {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 15px; border-radius: 999px;
  background: var(--bfs-soft); border: 1px solid var(--bfs-line); font: 600 14px/1 var(--bfs-body); color: var(--bfs-ink);
  transition: background .15s, border-color .15s, color .15s;
}
.bfs-chip:hover, .bfs-chip.is-active { background: var(--bfs-ink); border-color: var(--bfs-ink); color: #fff; }
.bfs-chip--recent::before { content: "↺"; margin-right: 6px; color: var(--bfs-muted); }
.bfs-chip--brand { background: #fff; }

.bfs-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bfs-cats--col { grid-template-columns: 1fr; gap: 6px; }
.bfs-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px;
  background: var(--bfs-soft); border: 1px solid transparent; text-decoration: none !important; color: var(--bfs-ink) !important;
  transition: border-color .15s, background .15s, transform .15s;
}
.bfs-cats--col .bfs-cat { padding: 11px 14px; border-radius: 12px; }
.bfs-cat:hover, .bfs-cat.is-active { background: #fff; border-color: var(--bfs-accent); transform: translateY(-1px); }
.bfs-cat__name { font: 700 17px/1.1 var(--bfs-head); }
.bfs-cat__n { font: 700 12px/1 var(--bfs-body); color: var(--bfs-accent-dark); background: rgba(17, 180, 226, .12); padding: 4px 8px; border-radius: 999px; }

/* resultados */
.bfs-res { display: grid; grid-template-columns: 240px 1fr; gap: 26px; }
.bfs-res--single { grid-template-columns: 1fr; }
.bfs-fixed { margin: 0 0 16px; font-size: 14px; color: var(--bfs-muted); }
.bfs-fixed strong { color: var(--bfs-ink); }
.bfs-list { display: flex; flex-direction: column; gap: 4px; }
.bfs-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; text-decoration: none !important;
  color: var(--bfs-ink) !important; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.bfs-item:hover, .bfs-item.is-active { background: var(--bfs-soft); border-color: var(--bfs-line); }
.bfs-item__img { flex: 0 0 68px; height: 68px; border-radius: 14px; background: #fff; border: 1px solid var(--bfs-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bfs-item__img img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 4px; opacity: 1 !important; visibility: visible !important; }
html.bfs-lock .qlwapp, html.bfs-lock #qlwapp, html.bfs-lock .qlwapp__container { display: none !important; }
.bfs-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bfs-item__brand { font: 700 11px/1 var(--bfs-body); letter-spacing: .08em; text-transform: uppercase; color: var(--bfs-accent-dark); }
.bfs-item__name { font: 700 18px/1.15 var(--bfs-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfs-item__name mark { background: rgba(17, 180, 226, .18); color: inherit; padding: 0 1px; border-radius: 3px; }
.bfs-item__meta { display: flex; align-items: center; gap: 10px; }
.bfs-item__price { font: 700 15px/1 var(--bfs-body); }
.bfs-badge { font: 700 11px/1 var(--bfs-body); padding: 4px 8px; border-radius: 999px; background: #e7f8ee; color: #137a3d; }
.bfs-badge--out { background: #f3f4f6; color: #8a929c; }
.bfs-item__go svg, .bfs-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.bfs-item__go { color: #b8c0c8; transition: color .15s, transform .15s; }
.bfs-item:hover .bfs-item__go, .bfs-item.is-active .bfs-item__go { color: var(--bfs-accent); transform: translateX(3px); }
.bfs-all {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px;
  background: var(--bfs-accent); color: #fff !important; text-decoration: none !important;
  font: 800 17px/1 var(--bfs-head); letter-spacing: .06em; text-transform: uppercase; transition: background .15s, box-shadow .15s;
}
.bfs-all:hover, .bfs-all.is-active { background: var(--bfs-accent-dark); box-shadow: 0 10px 24px rgba(17, 180, 226, .35); }

/* sin resultados */
.bfs-none, .bfs-empty { text-align: center; padding: 18px 10px 8px; }
.bfs-none__icon, .bfs-empty__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--bfs-soft); display: flex; align-items: center; justify-content: center; }
.bfs-none__icon svg, .bfs-empty__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--bfs-accent); stroke-width: 2.4; stroke-linecap: round; }
.bfs-none__title, .bfs-empty__title { margin: 0 0 6px !important; font: 800 26px/1.1 var(--bfs-head) !important; color: var(--bfs-ink); }
.bfs-none__text, .bfs-empty__text { margin: 0 auto 18px; max-width: 460px; color: var(--bfs-muted); font-size: 15px; }
.bfs-none .bfs-chips, .bfs-empty .bfs-chips { justify-content: center; }
.bfs-wa {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: #25d366; color: #fff !important; text-decoration: none !important; font: 700 15px/1 var(--bfs-body);
}
.bfs-wa svg { width: 20px; height: 20px; fill: #fff; }

/* página de resultados */
.bfs-didyoumean { font-size: 15px; color: var(--bfs-muted); margin: 0 0 18px; }
.bfs-didyoumean strong { color: var(--bfs-ink); }
.bfs-empty { padding: 40px 10px 60px; font-family: var(--bfs-body); }
.bfs-empty .bfs-chip { display: inline-block; text-decoration: none !important; }
.bfs-empty__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 22px auto 0; }
.bfs-empty__cats a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--bfs-soft); text-decoration: none !important; color: var(--bfs-ink) !important; text-align: left; }
.bfs-empty__cats a span { font: 700 18px/1.1 var(--bfs-head); }
.bfs-empty__cats a small { color: var(--bfs-muted); }

/* ---------- celular ---------- */
@media (max-width: 767px) {
  .bfs__panel { margin: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; animation: bfsUp .24s cubic-bezier(.2, .8, .2, 1); }
  @keyframes bfsUp { from { opacity: 0; transform: translateY(24px); } }
  .bfs__bar { padding: 12px 10px 12px 16px; gap: 10px; padding-top: max(12px, env(safe-area-inset-top)); }
  .bfs__icon svg { width: 22px; height: 22px; }
  .bfs__input { height: 46px !important; font-size: 18px !important; }
  .bfs__esc { display: none; }
  .bfs__clear { display: none !important; }
  .bfs__x { display: inline; }
  .bfs__close { border: 0; width: 40px; padding: 0; }
  .bfs__body { padding: 18px 16px 30px; }
  .bfs-cats { grid-template-columns: 1fr 1fr; }
  .bfs-res { grid-template-columns: 1fr; gap: 18px; }
  .bfs-res__side { order: 2; }
  .bfs-res__side .bfs-cats--col { grid-template-columns: 1fr 1fr; }
  .bfs-item { padding: 8px; gap: 12px; }
  .bfs-item__img { flex-basis: 60px; height: 60px; }
  .bfs-item__name { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .bfs-item__go { display: none; }
  .bfs-empty__cats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bfs__panel, .bfs__backdrop, .bfs-rot { animation: none !important; transition: none !important; } }

/* ---------- WhatsApp en celular y tablet: botón redondo encima del menú inferior ---------- */
@media (max-width: 1024px) {
  .qlwapp__container.qlwapp__container--bottom-left { bottom: 74px !important; left: 14px !important; width: auto !important; padding: 0 !important; }
  .qlwapp__container .qlwapp__button.qlwapp__button--button {
    width: 54px !important; height: 54px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
    border-radius: 50% !important; justify-content: center !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .25) !important;
  }
  .qlwapp__container .qlwapp__button--button .qlwapp__text { display: none !important; }
  .qlwapp__container .qlwapp__button--button .qlwapp__icon { margin: 0 !important; font-size: 26px !important; }
}
