/* Glowtto | Filtros boutique: categorías ilustradas y marcas compactas.
   Se carga DESPUÉS del tema y no sustituye la lógica de filtrado.
   Usa variables dinámicas para las 8 paletas de Glowtto.
*/
:root{
 --gl-chip-card-radius:13px;
 --gl-chip-icon-tile:34px;
 --gl-chip-gap:8px;
 --gl-chip-shadow:0 4px 13px color-mix(in srgb,var(--theme-accent-strong) 7%,transparent);
 --gl-chip-shadow-selected:0 7px 18px color-mix(in srgb,var(--theme-accent-strong) 13%,transparent);
}
#shopView #categoryPills.category-pills{
 display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important;
 gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;
 padding:4px 2px 8px!important;margin:10px 0 13px!important;
 width:100%;max-width:100%;min-width:0;
 scrollbar-width:none;-webkit-overflow-scrolling:touch;
 scroll-snap-type:x proximity;overscroll-behavior-inline:contain;
}
#categoryPills::-webkit-scrollbar,
#glowBrandChips::-webkit-scrollbar{display:none}
#shopView #categoryPills .glow-category-filter{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 flex:0 0 auto!important;gap:8px!important;
 min-height:52px!important;max-width:min(235px,68vw)!important;
 padding:7px 15px 7px 8px!important;
 border:1px solid var(--theme-border)!important;
 border-left:3px solid color-mix(in srgb,var(--theme-accent) 27%,var(--theme-border))!important;
 border-radius:var(--gl-chip-card-radius)!important;
 background:linear-gradient(160deg,#fff 12%,var(--theme-surface) 100%)!important;
 color:var(--theme-accent-strong)!important;
 box-shadow:var(--gl-chip-shadow)!important;
 font-size:clamp(11px,1.6vw,13px)!important;
 font-weight:700!important;line-height:1.25!important;
 text-align:left;white-space:nowrap!important;scroll-snap-align:start;
 transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background-color .2s ease;
}
#shopView #categoryPills .glow-category-filter:hover{
 transform:translateY(-1px);
 border-color:var(--theme-accent)!important;
 box-shadow:0 7px 18px color-mix(in srgb,var(--theme-accent-strong) 13%,transparent)!important;
}
#shopView #categoryPills .glow-category-filter.active,
#shopView #categoryPills .glow-category-filter[aria-pressed="true"]{
 background:linear-gradient(135deg,var(--theme-surface-soft),#fff 92%)!important;
 border-color:var(--theme-accent)!important;
 border-left:4px solid var(--theme-accent)!important;
 color:var(--theme-accent-strong)!important;
 box-shadow:var(--gl-chip-shadow-selected)!important;
}
#shopView #categoryPills .glow-chip-icon-wrap,
#shopView #glowBrandChips .glow-chip-icon-wrap{
 display:grid!important;place-items:center!important;flex:0 0 auto!important;
 width:var(--gl-chip-icon-tile)!important;height:var(--gl-chip-icon-tile)!important;
 min-width:0!important;
 border-radius:10px!important;
 background:linear-gradient(145deg,var(--theme-surface-soft),#fff)!important;
 border:1px solid color-mix(in srgb,var(--theme-border) 88%,#fff)!important;
}
#shopView #categoryPills .glow-category-filter.active .glow-chip-icon-wrap{
 background:#fff!important;border-color:var(--theme-border)!important;
}
#shopView #categoryPills .glow-chip-icon-wrap .g-icon,
#shopView #glowBrandChips .glow-chip-icon-wrap .g-icon{
 display:block!important;flex:0 0 auto!important;
 width:24px!important;height:24px!important;
 max-width:24px!important;object-fit:contain!important;
 filter:none!important;
}
#shopView #categoryPills .glow-chip-label,
#shopView #glowBrandChips .glow-chip-label{
 display:block!important;min-width:0;overflow:hidden;text-overflow:ellipsis;
 max-width:100%;white-space:nowrap!important;
}
#shopView #categoryPills .glow-category-filter:focus-visible,
#shopView #glowBrandChips .glow-brand-filter:focus-visible{
 outline:3px solid var(--theme-accent)!important;outline-offset:2px!important;
}
/* Marcas: etiquetas rectangulares más discretas que las categorías.
   Las marcas extensas tienen elipsis, sin crear una segunda línea. */
#shopView #glowBrandTags.glow-brand-tags{
 min-width:0;margin:8px 0 19px!important;
 padding:clamp(11px,2.1vw,16px)!important;
 border-radius:14px!important;
 border:1px solid var(--theme-border)!important;
 background:var(--theme-editorial-gradient)!important;
 box-shadow:0 4px 14px color-mix(in srgb,var(--theme-accent-strong) 5%,transparent)!important;
}
#shopView #glowBrandTags .glow-brand-heading{
 gap:7px 12px!important;align-items:center!important;
}
#shopView #glowBrandTags .glow-brand-heading h3{
 color:var(--theme-accent-strong)!important;
 font-size:clamp(15px,2vw,19px)!important;margin:1px 0!important;
 letter-spacing:-.02em;
}
#shopView #glowBrandTags .glow-brand-heading .eyebrow{
 color:var(--theme-accent)!important;letter-spacing:.1em;font-size:9px!important;
}
#shopView #glowBrandTags .glow-brand-heading p{
 color:var(--pnl-muted)!important;font-size:11px!important;margin:0!important;
}
#shopView #glowBrandTags #glowBrandMore{
 padding:7px 10px!important;border-radius:9px!important;
 min-height:36px!important;
 color:var(--theme-accent-strong)!important;
 border-color:var(--theme-border)!important;
 background:#fff!important;
}
#shopView #glowBrandChips.glow-brand-chips{
 display:flex!important;align-items:stretch!important;
 flex-wrap:wrap!important;gap:7px!important;
 min-width:0;max-width:100%;margin:10px 0 0!important;
}
#shopView #glowBrandChips .glow-brand-filter{
 display:inline-flex!important;justify-content:flex-start!important;
 align-items:center!important;gap:7px!important;
 max-width:min(270px,100%)!important;min-width:0!important;
 min-height:42px!important;padding:5px 9px 5px 6px!important;
 border-radius:10px!important;
 border:1px solid var(--theme-border)!important;
 background:#fff!important;color:var(--theme-accent-strong)!important;
 box-shadow:0 2px 8px color-mix(in srgb,var(--theme-accent-strong) 5%,transparent)!important;
 font-size:12px!important;line-height:1.2!important;
 white-space:nowrap!important;
 transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
#shopView #glowBrandChips .glow-brand-filter:hover{
 border-color:var(--theme-accent)!important;transform:translateY(-1px);
}
#shopView #glowBrandChips .glow-brand-filter.selected{
 border-color:var(--theme-accent)!important;
 background:var(--theme-surface-soft)!important;
 color:var(--theme-accent-strong)!important;
 box-shadow:var(--gl-chip-shadow-selected)!important;
}
#shopView #glowBrandChips .glow-chip-icon-wrap{
 width:28px!important;height:28px!important;border-radius:8px!important;
}
#shopView #glowBrandChips .glow-chip-icon-wrap .g-icon{
 width:19px!important;height:19px!important;max-width:19px!important;
}
#shopView #glowBrandChips .glow-chip-label{
 max-width:clamp(85px,15vw,160px)!important;
 font-size:clamp(11px,1.3vw,12px)!important;font-weight:700!important;
}
#shopView #glowBrandChips .glow-chip-count{
 display:grid!important;place-items:center;
 min-width:23px;height:23px;padding:0 5px!important;margin:0!important;
 border-radius:7px!important;
 background:var(--theme-surface-soft)!important;
 color:var(--theme-accent-strong)!important;
 font-size:10px!important;font-weight:800!important;
 line-height:1!important;white-space:nowrap;
}
#shopView #glowBrandChips .glow-brand-filter.selected .glow-chip-count{
 background:#fff!important;
}
#shopView #glowBrandTags #glowBrandFootnote{
 margin:6px 0 0!important;font-size:10px!important;
 color:var(--pnl-muted)!important;
}
/* Barra de catálogo: buscador de una sola línea, filtro compacto y contador. */
#shopView #catalogStart.catalog-top{
 display:flex;gap:9px 15px;align-items:end!important;
 margin-top:17px!important;min-width:0;
}
#shopView #catalogStart.catalog-top>div:first-child{
 flex:1 1 220px;min-width:0;
}
#shopView #catalogStart .search{
 min-width:0;flex:0 1 350px;
 border:1px solid var(--theme-border)!important;
 background:#fff!important;
 border-radius:12px!important;box-shadow:none!important;
 padding:0 11px!important;
}
#shopView #catalogStart .search:focus-within{
 border-color:var(--theme-accent)!important;
 box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 12%,transparent)!important;
}
#shopView #catalogStart .search input{
 min-width:0;width:100%;height:43px!important;
 font-size:13px!important;text-overflow:ellipsis;
 color:var(--pnl-ink)!important;
}
#shopView #catalogStart .search img.g-icon{
 display:block;width:20px;height:20px;max-width:20px;flex:0 0 auto;
}
#shopView .filters{
 display:flex!important;align-items:center!important;justify-content:space-between;
 gap:8px 12px!important;min-width:0;margin:0 0 8px!important;
}
#shopView #resultCount{
 color:var(--pnl-muted)!important;font-size:12px!important;
 white-space:nowrap!important;
}
#shopView #sortSelect{
 min-width:132px!important;max-width:188px!important;
 min-height:39px!important;border-radius:10px!important;
 border:1px solid var(--theme-border)!important;
 background-color:#fff!important;color:var(--theme-accent-strong)!important;
 padding:7px 30px 7px 10px!important;
 font-size:12px!important;font-weight:650!important;
 box-shadow:none!important;
}
@media(max-width:900px){
 #shopView #catalogStart.catalog-top{
  flex-direction:column!important;align-items:stretch!important;
  gap:8px!important;
 }
 #shopView #catalogStart.catalog-top>div:first-child{flex:auto}
 #shopView #catalogStart .search{
  flex:auto!important;max-width:none!important;width:100%!important;
 }
 #shopView #glowBrandChips.glow-brand-chips{
  flex-wrap:nowrap!important;overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 1px 7px!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;scrollbar-width:none;
 }
 #shopView #glowBrandChips .glow-brand-filter{flex:0 0 auto!important}
}
@media(max-width:640px){
 :root{--gl-chip-icon-tile:29px}
 #shopView #categoryPills.category-pills{
  gap:7px!important;margin:9px 0 10px!important;
 }
 #shopView #categoryPills .glow-category-filter{
  padding:6px 10px 6px 6px!important;
  min-height:45px!important;max-width:65vw!important;
  gap:6px!important;font-size:11px!important;border-radius:10px!important;
 }
 #shopView #categoryPills .glow-chip-icon-wrap{border-radius:8px!important}
 #shopView #categoryPills .glow-chip-icon-wrap .g-icon{
  width:21px!important;height:21px!important;max-width:21px!important;
 }
 #shopView #glowBrandTags.glow-brand-tags{
  margin:5px 0 13px!important;padding:10px!important;
 }
 #shopView #glowBrandTags .glow-brand-heading p{display:none}
 #shopView #glowBrandChips.glow-brand-chips{margin-top:8px!important;gap:6px!important}
 #shopView #glowBrandChips .glow-brand-filter{
  min-height:39px!important;border-radius:9px!important;
 }
 #shopView #glowBrandChips .glow-chip-label{max-width:135px!important}
 #shopView #glowBrandTags #glowBrandFootnote{display:none}
 #shopView #catalogStart .search input{height:41px!important;font-size:12px!important}
 #shopView .filters{margin-bottom:6px!important}
 #shopView #sortSelect{min-width:125px!important;min-height:37px!important}
}
@media(prefers-reduced-motion:reduce){
 #shopView #categoryPills .glow-category-filter,
 #shopView #glowBrandChips .glow-brand-filter{
  transition:none!important;transform:none!important;
 }
}
