/* BonGon REV24 — filtros públicos: componentes responsive y estado de llegada desde carrusel.
   Evita el antiguo cuadro de 800px, el espacio vacío y el desbordamiento móvil. */
#collections-grid .catalog-carousel-entry[hidden],
#collections-grid .catalog-filter-panel.hidden,
#collections-grid .catalog-filter-chips[hidden] { display:none !important; }
#collections-grid .catalog-carousel-entry {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  margin-bottom:19px; padding:20px 24px; border:1px solid #d7c7b8; border-radius:19px;
  background:linear-gradient(105deg,#fffdf9,#f3e8dc); box-shadow:0 7px 22px rgba(71,44,30,.07);
  color:#543c35;
}
.catalog-carousel-entry__description { display:flex; flex-direction:column; gap:5px; min-width:0; }
.catalog-carousel-entry__eyebrow { font:700 10px/1.3 Inter,Arial,sans-serif; letter-spacing:.17em; color:#9c7964; }
.catalog-carousel-entry__name { font:600 clamp(23px,3vw,34px)/1.1 Georgia,'Times New Roman',serif; color:#4f392f; overflow-wrap:anywhere; }
.catalog-carousel-entry__result { font:400 13px/1.5 Inter,Arial,sans-serif; color:#74655e; }
.catalog-carousel-entry__all {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; flex:0 0 auto;
  padding:12px 18px; border:1px solid #785c50; border-radius:999px; color:#60463d;
  text-decoration:none; font:700 11px/1.3 Inter,Arial,sans-serif; letter-spacing:.045em;
  transition:background .2s,color .2s;
}
.catalog-carousel-entry__all:hover,.catalog-carousel-entry__all:focus-visible { background:#634740; color:#fff; }

#collections-grid .catalog-filter-anchor { position:relative; display:inline-block; }
#collections-grid #filter-toggle-btn.catalog-filter-trigger {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; width:auto; height:auto;
  min-height:44px !important; padding:11px 19px !important; border:1px solid #674e43;
  border-radius:999px; background:#634740; color:#fff; font:700 12px/1.2 Inter,Arial,sans-serif;
  letter-spacing:.07em; text-transform:uppercase; box-shadow:0 5px 12px rgba(59,35,25,.13) !important;
  transform:none !important; cursor:pointer;
}
#collections-grid #filter-toggle-btn.catalog-filter-trigger:hover { background:#533c33; }
#collections-grid .catalog-filter-trigger__icon { width:18px; height:18px; flex:0 0 auto; }
#collections-grid .catalog-filter-trigger__chevron { width:15px; height:15px; transition:transform .2s ease; }
#collections-grid #filter-dropdown.catalog-filter-panel {
  position:absolute !important; top:calc(100% + 10px) !important; bottom:auto !important;
  right:0 !important; left:auto !important; margin:0 !important;
  display:flex; flex-direction:column;
  width:min(650px,calc(100vw - 36px)) !important; max-width:calc(100vw - 36px) !important;
  max-height:min(75vh,690px) !important; overflow:hidden !important;
  z-index:90; border:1px solid #e2d6cc; border-radius:20px; background:#fffdfb;
  box-shadow:0 20px 65px rgba(42,30,23,.22); text-align:left; color:#543c35;
}
.catalog-filter-panel__header {
  display:flex; justify-content:space-between; align-items:center; gap:15px;
  padding:20px 24px 17px; border-bottom:1px solid #e7ddd4; flex:0 0 auto;
}
.catalog-filter-panel__eyebrow { color:#9b7b6a; font:700 10px/1.2 Inter,Arial,sans-serif; letter-spacing:.13em; }
#filter-dropdown .catalog-filter-panel__header h3 { color:#4d342b; font:600 25px/1.18 Georgia,'Times New Roman',serif !important; margin:5px 0 0; }
.catalog-filter-panel__close { display:grid; place-items:center; flex:0 0 auto; width:35px; height:35px; border:1px solid #e0d5ce; border-radius:50%; background:#fff; color:#684e43; font-size:24px; line-height:1; cursor:pointer; }
.catalog-filter-panel__close:hover { background:#f2e8df; }
.catalog-filter-panel__body { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; padding:3px 24px 10px; }
#filter-dropdown .catalog-filter-panel__section { padding:18px 0; margin:0 !important; border:0; border-bottom:1px solid #eee5dd; min-width:0; }
#filter-dropdown .catalog-filter-panel__section:last-child { border-bottom:0; }
#filter-dropdown .catalog-filter-panel__section legend {
  display:block; float:none; width:100%; margin:0 0 11px; padding:0;
  color:#563e35; font:700 12px/1.5 Inter,Arial,sans-serif; text-transform:uppercase; letter-spacing:.055em;
}
.catalog-filter-panel__sort { display:grid; gap:6px; }
.catalog-filter-panel__collections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.catalog-filter-panel__colors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#filter-dropdown .catalog-filter-panel__option {
  display:flex; align-items:center; gap:9px; min-width:0; min-height:42px; margin:0;
  padding:10px 11px !important; border:1px solid #e9e0d9; border-radius:11px;
  background:#fdfbf9; cursor:pointer; transition:background .2s,border-color .2s; text-align:left;
}
#filter-dropdown .catalog-filter-panel__option:hover { background:#f6ede6; border-color:#c4b0a0; }
#filter-dropdown .catalog-filter-panel__option:has(input:checked) { background:#f3e8df; border-color:#a98c78; }
#filter-dropdown .catalog-filter-panel__option input {
  flex:0 0 auto; width:17px; height:17px; margin:0; accent-color:#705247;
}
#filter-dropdown .catalog-filter-panel__option span { display:block; font:500 12px/1.35 Inter,Arial,sans-serif !important; color:#59473f !important; overflow-wrap:anywhere; }
#filter-dropdown .catalog-filter-panel__color .filter-color-dot { display:inline-block; flex:0 0 auto; width:17px; height:17px; border-radius:50%; border:1px solid #bcb6b0; box-shadow:0 1px 3px #0002; }
.catalog-filter-panel__empty { color:#7e7168; font-size:13px; grid-column:1/-1; }
.catalog-filter-panel__actions { display:flex; align-items:center; gap:12px; padding:17px 24px; background:#fffdfb; border-top:1px solid #e7ddd4; flex:0 0 auto; }
#filter-dropdown .catalog-filter-panel__actions button { min-height:44px !important; padding:11px 19px !important; border-radius:999px; cursor:pointer; font:700 12px/1.2 Inter,Arial,sans-serif !important; letter-spacing:.05em; text-transform:uppercase; }
.catalog-filter-panel__reset { background:transparent; border:1px solid #aa8f7f; color:#634740; flex:0 0 33%; }
.catalog-filter-panel__reset:hover { background:#f5eae1; }
.catalog-filter-panel__apply { background:#634740; border:1px solid #634740; color:white; flex:1; }
.catalog-filter-panel__apply:hover { background:#4c362e; }
#filter-dropdown :focus-visible,#filter-toggle-btn:focus-visible { outline:3px solid #d6a47c; outline-offset:2px; }
@media(max-width:767px) {
  #collections-grid .catalog-carousel-entry { flex-direction:column; align-items:stretch; gap:12px; padding:18px; }
  #collections-grid .catalog-carousel-entry__all { width:100%; padding:13px; }
  #collections-grid .catalog-filter-anchor { position:static; }
  #collections-grid #filter-dropdown.catalog-filter-panel {
    position:fixed !important;
    top:calc(var(--site-header-h, 76px) + 8px) !important;
    bottom:12px !important;
    left:12px !important; right:12px !important;
    width:auto !important; max-width:none !important; max-height:none !important;
    border-radius:17px; z-index:110;
  }
  #filter-dropdown .catalog-filter-panel__header { padding:16px 18px 14px; }
  #filter-dropdown .catalog-filter-panel__header h3 { font-size:22px !important; }
  #filter-dropdown .catalog-filter-panel__body { padding:0 16px 9px; }
  #filter-dropdown .catalog-filter-panel__section { padding:15px 0; }
  #filter-dropdown .catalog-filter-panel__collections { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #filter-dropdown .catalog-filter-panel__colors { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #filter-dropdown .catalog-filter-panel__option { min-height:43px; padding:9px !important; }
  #filter-dropdown .catalog-filter-panel__option span { font-size:12px !important; }
  #filter-dropdown .catalog-filter-panel__actions { padding:12px 16px; }
  #filter-dropdown .catalog-filter-panel__actions button { font-size:11px !important; }
  body.catalog-filter-open { overflow:hidden; }
}
@media (max-width:360px) {
  #filter-dropdown .catalog-filter-panel__collections { grid-template-columns:1fr; }
  #filter-dropdown .catalog-filter-panel__header h3 { font-size:20px !important; }
}
