/* bwsearch - capa de búsqueda */
html.bws-lock,
html.bws-lock body {
  overflow: hidden !important;
}

/* Widgets de chat flotantes: ocultos mientras la capa está abierta */
html.bws-lock #smartsupp-widget-container,
html.bws-lock #chat-application,
html.bws-lock #tidio-chat,
html.bws-lock .tawk-min-container,
html.bws-lock iframe[id^="tawk"] {
  display: none !important;
}

.bws {
  --bws-text: #1e1a2b;
  --bws-bg: #ffffff;
  --bws-muted: #6b6776;
  --bws-sale: #b3261e;
  --bws-line: rgba(30, 26, 43, .12);
  --bws-ratio: 450 / 650;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: var(--bws-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
}

.bws[hidden] {
  display: none !important;
}

.bws *,
.bws *::before,
.bws *::after {
  box-sizing: border-box;
}

.bws-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 43, .32);
  opacity: 0;
  transition: opacity .18s ease;
}

.bws-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bws-bg);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.bws.is-open .bws-backdrop,
.bws.is-open .bws-panel {
  opacity: 1;
  transform: none;
}

.bws-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.bws-head {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--bws-line);
  background: var(--bws-bg);
}

.bws-head-in {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}

.bws-form {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.bws-ico {
  display: inline-flex;
  color: var(--bws-text);
}

.bws .bws-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bws-text);
  font: inherit;
  font-size: 16px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.bws .bws-input::placeholder {
  color: var(--bws-muted);
  opacity: 1;
}

.bws .bws-input::-webkit-search-cancel-button,
.bws .bws-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.bws-clear,
.bws-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--bws-text);
  cursor: pointer;
  flex: 0 0 auto;
}

.bws-clear[hidden] {
  display: none;
}

.bws-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 0 32px;
}

.bws-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: -1px;
}

.bws-sec {
  margin: 0 0 24px;
}

/* Títulos de sección: pequeños y en negrita (estilo escueto) */
.bws .bws-h {
  margin: 0 0 12px;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bws-text);
}

.bws-count {
  color: var(--bws-muted);
  font-weight: 400;
  margin-left: 4px;
}

.bws-msg {
  margin: 4px 0 20px;
  font-size: 15px;
  color: var(--bws-text);
}

.bws-loading {
  color: var(--bws-muted);
}

.bws-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.bws-chips::-webkit-scrollbar {
  display: none;
}

.bws-chips li {
  flex: 0 0 auto;
  margin: 0;
}

.bws .bws-chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--bws-line);
  border-radius: 999px;
  background: transparent;
  color: var(--bws-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.bws .bws-chip:hover,
.bws .bws-chip:focus-visible {
  border-color: var(--bws-text);
  color: var(--bws-text);
  text-decoration: none;
}

.bws-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-item {
  margin: 0;
  min-width: 0;
}

.bws .bws-card {
  display: block;
  color: var(--bws-text);
  text-decoration: none;
}

.bws .bws-card:hover,
.bws .bws-card:focus {
  color: var(--bws-text);
  text-decoration: none;
}

.bws .bws-card:focus-visible {
  outline: 2px solid var(--bws-text);
  outline-offset: 2px;
}

.bws-img {
  position: relative;
  display: block;
  aspect-ratio: var(--bws-ratio);
  overflow: hidden;
  background: #f4f3f5;
  margin-bottom: 8px;
}

.bws-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-oos .bws-img img {
  opacity: .55;
}

.bws-oos {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  background: var(--bws-bg);
  color: var(--bws-text);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bws-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  min-height: 2.7em;
}

.bws-price {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.bws-old {
  color: var(--bws-muted);
  margin-right: 4px;
}

.bws-now.is-sale {
  color: var(--bws-sale);
}

.bws-allw {
  margin: 4px 0 28px;
}

.bws .bws-all {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--bws-text);
  background: var(--bws-text);
  color: var(--bws-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-decoration: none;
}

.bws a.bws-all,
.bws a.bws-all:visited {
  color: var(--bws-bg) !important;
}

.bws a.bws-all:hover,
.bws a.bws-all:focus-visible {
  background: var(--bws-bg);
  color: var(--bws-text) !important;
  text-decoration: none;
}

@media (min-width: 576px) {
  .bws-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .bws-wrap {
    padding: 0 32px;
  }

  .bws .bws-input {
    font-size: 22px;
    height: 52px;
  }

  .bws-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .bws-body {
    padding: 24px 0 36px;
  }

  .bws .bws-all {
    display: inline-block;
    width: auto;
    min-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bws-backdrop,
  .bws-panel {
    transition: none;
  }
}

/* Página de resultados */
.bws-page-head {
  margin: 0 0 20px;
}

.bws-page-head h1 {
  margin-bottom: 6px;
}

.bws-page-count {
  color: #6b6776;
}

.bws-page-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.bws-page-cats a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(30, 26, 43, .2);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.bws-page-pag {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.bws-page-pag a,
.bws-page-pag span {
  display: inline-block;
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(30, 26, 43, .2);
  text-align: center;
  text-decoration: none;
}

.bws-page-pag .is-current {
  border-color: currentColor;
  font-weight: 600;
}

/* ===== 1.5: "Ver más resultados" (botón, no enlace) ===== */
.bws-more {
  display: flex;
  justify-content: center;
  margin: 8px 0 32px;
}

.bws-more[hidden] {
  display: none;
}

.bws-more-btn {
  min-width: 240px;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid #1e1a2b;
  background: #fff;
  color: #1e1a2b;
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.bws-more-btn:hover,
.bws-more-btn:focus-visible {
  background: #1e1a2b;
  color: #fff;
}

.bws-more-btn[disabled] {
  opacity: .6;
  cursor: wait;
}

/* ===== 1.1: pantalla inicial ===== */
.bws .bws-chips-wrap {
  flex-wrap: wrap;
  overflow: visible;
}

.bws .bws-link {
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bws-muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== 1.1: filtros en la capa ===== */
.bws-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.bws-bar .bws-bar-chips {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.bws .bws-chip svg {
  vertical-align: -3px;
}

.bws .bws-chip.is-on {
  border-color: var(--bws-text);
  background: var(--bws-text);
  color: var(--bws-bg);
}

.bws .bws-chip-f.is-on {
  background: transparent;
  color: var(--bws-text);
}

.bws-sort {
  flex: 0 0 auto;
  margin: 0;
}

.bws .bws-sort select {
  height: 34px;
  max-width: 38vw;
  text-overflow: ellipsis;
  padding: 0 28px 0 12px;
  border: 1px solid var(--bws-line);
  border-radius: 999px;
  background: var(--bws-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231e1a2b' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--bws-text);
  font: inherit;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.bws-cols {
  display: block;
}

.bws-main {
  min-width: 0;
}

/* Móvil: los filtros son una hoja inferior */
.bws-side {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  background: var(--bws-bg);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(30, 26, 43, .14);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}

.bws-sheet-open .bws-side {
  transform: none;
  visibility: visible;
  transition: transform .22s ease;
}

.bws-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(30, 26, 43, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.bws-sheet-open .bws-scrim {
  opacity: 1;
  pointer-events: auto;
}

.bws-sheethead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 6px 20px;
  border-bottom: 1px solid var(--bws-line);
}

.bws-sheethead .bws-h {
  margin: 0;
}

.bws .bws-sheet-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bws-text);
  cursor: pointer;
}

.bws-fscroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 20px 12px;
}

.bws-sheetfoot {
  display: flex;
  gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bws-line);
}

.bws .bws-btn1,
.bws .bws-btn2 {
  flex: 1 1 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--bws-text);
  border-radius: 0;
  background: var(--bws-text);
  color: var(--bws-bg);
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.bws .bws-btn2 {
  background: var(--bws-bg);
  color: var(--bws-text);
}

.bws-fg {
  padding: 12px 0;
  border-bottom: 1px solid var(--bws-line);
}

.bws-fg:last-child {
  border-bottom: 0;
}

.bws .bws-fh {
  margin: 0 0 8px;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bws-text);
}

.bws-fl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-fl li {
  margin: 0;
}

.bws .bws-fo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--bws-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.bws .bws-fo::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid var(--bws-muted);
  background: var(--bws-bg);
}

.bws .bws-fo.is-on::before {
  border-color: var(--bws-text);
  background: var(--bws-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center;
}

.bws .bws-fo.is-empty {
  color: var(--bws-muted);
  opacity: .5;
  cursor: default;
}

.bws-ol {
  flex: 1 1 auto;
  min-width: 0;
}

.bws-fc {
  color: var(--bws-muted);
  font-size: 12px;
}

.bws-fl-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bws .bws-fl-boxes .bws-fo {
  justify-content: center;
  width: auto;
  min-width: 44px;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--bws-line);
  text-align: center;
}

.bws .bws-fl-boxes .bws-fo::before {
  display: none;
}

.bws .bws-fl-boxes .bws-fo.is-on {
  border-color: var(--bws-text);
  background: var(--bws-text);
  color: var(--bws-bg);
}

.bws-sw {
  flex: 0 0 auto;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--bws-line);
  background: conic-gradient(#e33, #ec3, #3c6, #39e, #a3e, #e33);
}

.bws .bws-fl .bws-fo .bws-sw + .bws-ol {
  margin-left: 0;
}

.bws .bws-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bws-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.bws-sw-track {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--bws-line);
  transition: background .15s ease;
}

.bws-sw-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}

.bws-switch.is-on .bws-sw-track {
  background: var(--bws-text);
}

.bws-switch.is-on .bws-sw-track::after {
  transform: translateX(16px);
}

/* ===== 1.1: añadir a la cesta ===== */
.bws-item {
  position: relative;
}

.bws-qa-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: var(--bws-ratio);
  pointer-events: none;
  z-index: 2;
}

.bws-qa-page {
  bottom: 0;
  aspect-ratio: auto;
  --bws-text: #1e1a2b;
  --bws-bg: #ffffff;
  --bws-muted: #6b6776;
  --bws-line: rgba(30, 26, 43, .12);
  color: var(--bws-text);
  font-size: 13px;
  line-height: 1.3;
}

.bws-qa-wrap .bws-qa {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1e1a2b;
  box-shadow: 0 1px 4px rgba(30, 26, 43, .12);
  pointer-events: auto;
  cursor: pointer;
}

.bws-qa-wrap .bws-qa:focus-visible {
  outline: 2px solid #1e1a2b;
  outline-offset: 2px;
}

.bws-qa-wrap.is-busy .bws-qa {
  opacity: .5;
  cursor: progress;
}

.bws-qa-wrap .bws-qa.is-done {
  background: #1e1a2b;
  color: #fff;
}

.bws-qa-wrap.is-open .bws-qa {
  display: none;
}

.bws-sizes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, .97);
  color: #1e1a2b;
  pointer-events: auto;
}

.bws-sizes-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bws-sizes .bws-sizes-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.bws-sizes-l {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-sizes-l li {
  margin: 0;
}

.bws-sizes .bws-size {
  min-width: 38px;
  min-height: 34px;
  padding: 2px 8px;
  border: 1px solid rgba(30, 26, 43, .2);
  border-radius: 0;
  background: #fff;
  color: #1e1a2b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.bws-sizes .bws-size:hover,
.bws-sizes .bws-size:focus-visible {
  border-color: #1e1a2b;
}

.bws-sizes .bws-size[disabled] {
  color: rgba(30, 26, 43, .35);
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: rgba(30, 26, 43, .1);
}

.bws-toast {
  --bws-text: #1e1a2b;
  --bws-bg: #ffffff;
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483001;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  background: var(--bws-text);
  color: var(--bws-bg);
  font-size: 13px;
  line-height: 1.35;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.bws-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bws-toast[hidden] {
  display: none;
}

.bws-toast a {
  margin-left: 10px;
  color: inherit;
  text-decoration: underline;
}

.bws-toast.is-err {
  background: #b3261e;
}

@media (min-width: 992px) {
  .bws-has-side .bws-cols {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }

  .bws-side {
    position: static;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
    background: transparent;
  }

  .bws-sheethead,
  .bws-sheetfoot,
  .bws-scrim,
  .bws-chip-f {
    display: none !important;
  }

  .bws-fscroll {
    padding: 0;
    overflow: visible;
  }

  .bws-fg:first-child {
    padding-top: 0;
  }

  .bws-has-side .bws-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bws-sort select {
    max-width: none;
  }

  .bws-sizes .bws-size {
    min-height: 30px;
  }
}

/* ===== 1.1: filtros en la página de resultados ===== */
html.bws-lock-page,
html.bws-lock-page body {
  overflow: hidden !important;
}

.bws-pf {
  --bws-text: #1e1a2b;
  --bws-muted: #6b6776;
  --bws-line: rgba(30, 26, 43, .14);
}

.bws-pf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px;
}

.bws-pf .bws-pf-open {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--bws-line);
  border-radius: 999px;
  background: transparent;
  color: var(--bws-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.bws-pf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bws-pf-sort {
  margin: 0;
}

.bws-pf-sort select {
  height: 38px;
  padding: 0 30px 0 14px;
  border: 1px solid var(--bws-line);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231e1a2b' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--bws-text);
  font: inherit;
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.bws-pf-side {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(30, 26, 43, .16);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}

.bws-pf.is-open .bws-pf-side {
  transform: none;
  visibility: visible;
  transition: transform .22s ease;
}

.bws-pf-side form {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  margin: 0;
}

.bws-pf-sheethead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--bws-line);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bws-pf .bws-pf-x {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--bws-text);
  cursor: pointer;
}

.bws-pf-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 20px;
}

.bws-pf-g {
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--bws-line);
}

.bws-pf-g legend {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  width: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bws-text);
}

.bws-pf-g ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-pf .bws-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--bws-text);
  cursor: pointer;
}

.bws-pf .bws-opt input {
  margin: 0;
  accent-color: #1e1a2b;
}

.bws-pf .bws-opt.is-empty {
  opacity: .45;
  cursor: default;
}

.bws-pf .bws-ol {
  flex: 1 1 auto;
}

.bws-pf .bws-fc {
  color: var(--bws-muted);
  font-size: 12px;
}

.bws-pf .bws-sw {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--bws-line);
}

.bws-pf-boxes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bws-pf-boxes .bws-opt {
  position: relative;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--bws-line);
}

.bws-pf-boxes .bws-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bws-pf-boxes .bws-opt.is-on,
.bws-pf-boxes .bws-opt:has(input:checked) {
  border-color: var(--bws-text);
  background: var(--bws-text);
  color: #fff;
}

.bws-pf-boxes .bws-opt:has(input:focus-visible) {
  outline: 2px solid var(--bws-text);
  outline-offset: 2px;
}

.bws-pf-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--bws-line);
  font-weight: 400;
  cursor: pointer;
}

.bws-pf-switch input {
  margin: 0;
  accent-color: #1e1a2b;
}

.bws-pf-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bws-line);
}

.bws-pf .bws-pf-apply {
  flex: 1 1 auto;
  min-height: 46px;
  border: 1px solid #1e1a2b;
  background: #1e1a2b;
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.bws-pf-clear {
  flex: 0 0 auto;
  font-size: 13px;
  text-decoration: underline;
}

@media (min-width: 992px) {
  .bws-pf-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .bws-pf-bar {
    justify-content: flex-end;
  }

  .bws-pf .bws-pf-open,
  .bws-pf-sheethead {
    display: none;
  }

  .bws-pf-side {
    position: sticky;
    top: 16px;
    z-index: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
    background: transparent;
  }

  .bws-pf-side form {
    max-height: none;
  }

  .bws-pf-scroll {
    padding: 0;
    overflow: visible;
  }

  .bws-pf-foot {
    padding: 12px 0;
    border-top: 0;
  }

  .bws-pf .bws-pf-apply {
    display: none;
  }
}

.bws-pf-scrim {
  display: none;
}

.bws-pf.is-open .bws-pf-scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: rgba(30, 26, 43, .32);
}

@media (min-width: 992px) {
  .bws-pf.is-open .bws-pf-scrim {
    display: none;
  }
}

/* Destacados (pantalla inicial): fila con desplazamiento horizontal */
.bws-grid.bws-row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.bws-row .bws-item {
  scroll-snap-align: start;
}

@media (min-width: 576px) {
  .bws-grid.bws-row {
    grid-template-columns: none;
    grid-auto-columns: 30%;
  }
}

@media (min-width: 992px) {
  .bws-grid.bws-row {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 5 * 16px) / 6);
  }
}

/* ===== 1.4.0: capa escueta (cabecera con logo, cesta y cerrar; recientes en lista; fila de destacados) ===== */
.bws-backdrop {
  display: none;
}

.bws-head {
  border-bottom: 0;
  padding-bottom: 8px;
}

.bws-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.bws .bws-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.bws .bws-logo img {
  display: block;
  max-height: 34px;
  max-width: 160px;
  width: auto;
  height: auto;
}

.bws-top-r {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bws .bws-cart {
  position: relative;
  display: inline-flex;
  color: var(--bws-text);
  text-decoration: none;
}

.bws-cart-n {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bws-text);
  color: var(--bws-bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.bws-cart-n[hidden] {
  display: none;
}

.bws .bws-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bws-text);
  color: var(--bws-bg);
}

.bws .bws-close:hover,
.bws .bws-close:focus-visible {
  opacity: .85;
}

.bws .bws-form {
  max-width: 930px;
  margin: 4px auto 0;
  border-bottom: 1px solid var(--bws-text);
  gap: 8px;
}

.bws .bws-form .bws-ico {
  color: var(--bws-muted);
}

.bws .bws-input {
  font-weight: 500;
}

.bws .bws-input::placeholder {
  color: #a7a4ae;
  font-weight: 500;
}

.bws-home {
  max-width: 930px;
  margin: 0 auto;
}

.bws-home .bws-sec {
  margin: 0 0 28px;
}

.bws .bws-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws .bws-list li {
  display: flex;
  align-items: center;
  margin: 0;
}

.bws .bws-li {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--bws-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.bws .bws-li:hover .bws-li-t,
.bws .bws-li:focus-visible .bws-li-t {
  text-decoration: underline;
}

.bws-li-i {
  display: inline-flex;
  color: var(--bws-text);
}

.bws-li-t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bws .bws-li-x {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--bws-text);
  cursor: pointer;
}

.bws .bws-li-x svg {
  width: 12px;
  height: 12px;
}

.bws .bws-list-acts {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  color: var(--bws-muted);
}

.bws .bws-list-acts .bws-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bws-text);
  font: inherit;
  font-size: 12px;
  font-style: italic;
  text-decoration: none;
  cursor: pointer;
}

.bws .bws-list-acts .bws-link:hover {
  text-decoration: underline;
}

/* Fila de destacados escueta: imagen pequeña, nombre y precio centrados, sin botones ni bordes */
.bws-grid.bws-row.bws-mini {
  grid-auto-columns: 30%;
  gap: 16px 12px;
}

.bws-mini .bws-card {
  text-align: center;
}

.bws-mini .bws-img {
  background: transparent;
  margin: 0 auto 10px;
  width: 76%;
}

.bws-mini .bws-name {
  font-size: 12px;
  min-height: 2.7em;
}

.bws-mini .bws-price {
  margin-top: 8px;
  font-size: 12px;
}

@media (min-width: 576px) {
  .bws-grid.bws-row.bws-mini {
    grid-auto-columns: 22%;
  }
}

@media (min-width: 992px) {
  .bws-top {
    min-height: 72px;
  }

  .bws .bws-logo img {
    max-height: 40px;
  }

  .bws-grid.bws-row.bws-mini {
    grid-auto-columns: calc((100% - 7 * 18px) / 8);
    gap: 24px 18px;
  }

  .bws-mini .bws-img {
    width: 88px;
  }
}

.bws-dot {
  margin: 0 6px;
}
