/* One moving surface, including when the category row wraps. */
.catalog-toolbar .filters{position:relative;isolation:isolate}
.category-indicator{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;border-radius:11px;background:linear-gradient(115deg,#fff0bc,#edc775);box-shadow:0 2px 9px #0002;transition:transform .3s cubic-bezier(.22,.7,.2,1),width .3s ease,height .3s ease}
.catalog-toolbar .filters button{position:relative;z-index:1;transition:color .2s ease;background:transparent;box-shadow:none;border-color:transparent}
.catalog-toolbar .filters button.active{background:transparent;box-shadow:none;border-color:transparent;color:#302034}
#products>.card{animation:none}
/* A fixed landscape viewport prevents portrait photos from stretching the form. */
#products .product-photos .slides{aspect-ratio:16/10;display:block;overflow:hidden;scroll-snap-type:none}
.product-photos .photo-open{touch-action:pan-y;user-select:none;-webkit-user-select:none}
.product-photos .photo-open img{width:100%;height:100%;display:block}
#detail-content{background:var(--glass-sheen),var(--glass-fill)}
#detail .gallery{align-self:center;min-width:0;width:100%;height:auto;aspect-ratio:16/10;flex:none;overflow:hidden}
#detail .gallery .slides{width:100%;height:100%;min-height:0;aspect-ratio:16/10;overflow:hidden;display:block;scroll-snap-type:none}
#detail .gallery .photo-open,#detail .gallery .photo-open img{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}
#detail .product-photos .photo-open img{object-fit:cover}
#photo-viewer #full-photo{width:min(1100px,calc(100vw - 24px));height:auto;aspect-ratio:16/10;max-width:calc(100vw - 24px);max-height:calc(100dvh - 150px);object-fit:contain;background:#141016;border-radius:16px}
.viewer-navigation{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:20px;background:#29212ee8;border:1px solid #f3d28370;border-radius:30px;padding:6px;color:#f3d283;z-index:3}
.viewer-navigation button{width:44px;height:44px;border-radius:50%;border:0;background:#f3d283;color:#302034;font-size:28px;line-height:1}
.viewer-navigation span{min-width:44px;text-align:center;font-size:13px;font-weight:700}
@media(max-width:760px){
 #detail .gallery{aspect-ratio:16/9;height:min(calc((100vw - 40px) * .5625),26dvh);max-height:26dvh}
 #detail .gallery .slides{aspect-ratio:16/9;height:100%}
 #detail .gallery .photo-open,#detail .gallery .photo-open img{height:100%}
}
@media(prefers-reduced-motion:reduce){.category-indicator{transition:none}}

/* Category navigation echoes the compact surfaces of Barra de noche. */
.catalog-toolbar{scroll-margin-top:90px}
html:not([data-theme="light"]) .catalog-toolbar .filters{background:linear-gradient(120deg,#211933,#181423);border-color:#645176}
.catalog-toolbar .filters button:not(.active) svg{color:#b99bd7}
html[data-theme="light"] .catalog-toolbar .filters button:not(.active) svg{color:#664783}
.catalog-toolbar .filters button svg{width:23px;height:23px}
.next-category,.birritas-preview{border:1px solid #786386;border-radius:18px;background:linear-gradient(120deg,#272034,#1b1627);color:#f8f2ff}
.next-category{display:grid;width:min(100%,560px);margin:24px auto 36px;text-align:left;padding:16px 22px;gap:4px;cursor:pointer}
.next-category small{color:#cebada}.next-category strong{font-size:1.2rem;color:#f4d38f}
.next-category[hidden]{display:none}
.birritas-preview{grid-column:1/-1;overflow:hidden;max-width:780px;width:100%;margin:auto}
.birritas-preview img{display:block;width:100%;height:clamp(160px,32vw,300px);object-fit:cover}
.birritas-preview>div{padding:22px}.birritas-preview h2{margin:0}.birritas-preview p{margin:8px 0 20px}.birritas-preview a{display:inline-block;text-decoration:none;padding:11px 18px;border-radius:12px}
html[data-theme="light"] :is(.next-category,.birritas-preview){background:#f3ecfa;color:#30213d}html[data-theme="light"] .next-category :is(small,strong){color:#614565}
