/* Figma Category Slider 307:11688. Images and labels come from WordPress categories. */
body.theme-savoy .dudette-popular-categories { box-sizing: border-box; width: 100%; max-width: 1440px; margin: 64px auto; padding: 0 8px; color: var(--dudette-pearly-white); }
body.theme-savoy .dudette-popular-categories h2 { margin: 0 0 24px; padding: 0; color: inherit; text-align: center; font: 400 24px/32px 'Futura Condensed PT',sans-serif; }
body.theme-savoy .dudette-popular-categories ul { display: flex; justify-content: safe center; align-items: flex-start; gap: 32px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; list-style: none; margin: 0; padding: 4px 0 16px; }
body.theme-savoy .dudette-popular-categories ul::-webkit-scrollbar { display: none; }
body.theme-savoy .dudette-popular-categories li { flex: 0 0 80px; width: 80px; margin: 0; padding: 0; scroll-snap-align: start; }
body.theme-savoy .dudette-popular-categories a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; color: inherit; text-decoration: none; }
body.theme-savoy .dudette-popular-image { position: relative; display: block; box-sizing: border-box; width: 100%; aspect-ratio: 1; padding: 2px; border: 1px solid currentColor; background: var(--dudette-jazzy-black); box-shadow: var(--dudette-shadow-down-strong); }
body.theme-savoy .dudette-popular-image-inner { position: absolute; inset: 2px; display: flex; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid currentColor; overflow: hidden; }
body.theme-savoy .dudette-popular-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
body.theme-savoy .dudette-popular-image img.dudette-popular-motif { box-sizing: border-box; object-fit: cover; padding: 0; }
body.theme-savoy .dudette-popular-name { display: block; width: 100%; min-height: 2lh; color: inherit; text-align: center; text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; font: 400 18px/24px 'Futura Condensed PT',sans-serif; }
/* Use part of the gap for labels without enlarging the collage images. */
body.theme-savoy .dudette-popular-categories:not(.dudette-popular-categories--product) ul { padding-inline: 12px; }
body.theme-savoy .dudette-popular-categories:not(.dudette-popular-categories--product) .dudette-popular-name { width: calc(100% + 24px); margin-inline: -12px; }
body.theme-savoy .dudette-popular-categories a:hover { color: var(--dudette-light-green); }
body.theme-savoy .dudette-popular-categories a:focus-visible { outline: 2px solid var(--dudette-pearly-white); outline-offset: 3px; border-radius: 2px; }
@media(min-width:768px) { body.theme-savoy .dudette-popular-categories { padding-inline: 24px; } body.theme-savoy .dudette-popular-categories li { flex-basis: 88px; width: 88px; } }
@media(min-width:1024px) { body.theme-savoy .dudette-popular-categories { padding-inline: 32px; } body.theme-savoy .dudette-popular-categories li { flex-basis: 96px; width: 96px; } }
@media(min-width:1440px) { body.theme-savoy .dudette-popular-categories { padding-inline: 40px; } body.theme-savoy .dudette-popular-categories ul { gap: 40px; } }

/* The product-page variant uses four large tiles, two per row on XS. */
body.theme-savoy .dudette-popular-categories--product ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; overflow: visible; }
body.theme-savoy .dudette-popular-categories--product li { width: auto; min-width: 0; }
body.theme-savoy .dudette-popular-categories--product .dudette-popular-name { font-size: 20px; line-height: 28px; }
body.theme-savoy .dudette-popular-categories--product { padding: 0; }
body.theme-savoy .dudette-popular-categories--product .dudette-popular-content { padding: 40px 8px; background: var(--dudette-moody-grey); box-shadow: var(--dudette-shadow-down-strong); }
body.theme-savoy .dudette-popular-categories--product h2 { margin-bottom: 40px; font-size: 28px; line-height: 38px; }
body.theme-savoy .dudette-popular-categories--product .dudette-popular-name { font-size: 24px; line-height: 32px; }
body.theme-savoy .dudette-popular-categories--product .dudette-popular-image { padding: 4px; border-width: 2px; background: var(--dudette-moody-grey); }
body.theme-savoy .dudette-popular-categories--product .dudette-popular-image-inner { inset: 4px; border-width: 2px; }
body.theme-savoy .dudette-popular-banner { position: relative; width: 100%; height: 120px; overflow: hidden; pointer-events: none; }
body.theme-savoy .dudette-popular-banner > picture { display: block; width: 100%; height: 100%; }
body.theme-savoy .dudette-popular-banner > img,
body.theme-savoy .dudette-popular-banner > picture > img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
/* Keep the top of the mobile artwork visible when wider XS screens crop its height. */
@media(max-width:767px) {
    body.theme-savoy .dudette-popular-banner--top > img,
    body.theme-savoy .dudette-popular-banner--top > picture > img { object-position: center top; }
}
@media(min-width:768px) {
    body.theme-savoy .dudette-popular-categories--product ul { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
    body.theme-savoy .dudette-popular-categories--product .dudette-popular-content { padding-inline: 24px; }
}
@media(min-width:1024px) {
    body.theme-savoy .dudette-popular-categories--product .dudette-popular-content { padding-inline: 32px; }
    body.theme-savoy .dudette-popular-categories--product ul { gap: 32px; }
    body.theme-savoy .dudette-popular-categories--product h2 { font-size: 32px; line-height: 40px; }
}
@media(min-width:1440px) { body.theme-savoy .dudette-popular-categories--product ul { gap: 40px; } }
@media(min-width:1440px) { body.theme-savoy .dudette-popular-categories--product .dudette-popular-content { padding-inline: 40px; } }
/* DUDETTE – Homepage category spacing */
@media (max-width: 767px) {
    body.home.theme-savoy
    .dudette-popular-categories--catalog {
        margin-block: 0px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.home.theme-savoy
    .dudette-popular-categories--catalog {
        margin-block: 32px;
    }
}

/* DUDETTE – Subtle edge fade on popular categories, XS and S only */
@media (max-width: 1279px) {
    body.home.theme-savoy
    .dudette-popular-categories--catalog .dudette-popular-content {
        position: relative;
    }

    body.home.theme-savoy
    .dudette-popular-categories--catalog ul {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 18px,
            black calc(100% - 18px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 18px,
            black calc(100% - 18px),
            transparent 100%
        );
    }
}

/* DUDETTE – Larger popular category tiles on catalog sliders */

body.theme-savoy
.dudette-popular-categories:not(.dudette-popular-categories--product) li {
    flex: 0 0 108px;
    width: 108px;
}

@media (min-width: 768px) {
    body.theme-savoy
    .dudette-popular-categories:not(.dudette-popular-categories--product) li {
        flex-basis: 116px;
        width: 116px;
    }
}

@media (min-width: 1024px) {
    body.theme-savoy
    .dudette-popular-categories:not(.dudette-popular-categories--product) li {
        flex-basis: 128px;
        width: 128px;
    }
}

@media (min-width: 1440px) {
    body.theme-savoy
    .dudette-popular-categories:not(.dudette-popular-categories--product) li {
        flex-basis: 136px;
        width: 136px;
    }
}
/* DUDETTE – Larger category tiles on wide screens */
@media (min-width: 1280px) {
    body.theme-savoy
    .dudette-popular-categories:not(.dudette-popular-categories--product) li {
        flex-basis: 148px;
        width: 148px;
    }
}

@media (min-width: 1440px) {
    body.theme-savoy
    .dudette-popular-categories:not(.dudette-popular-categories--product) li {
        flex-basis: 156px;
        width: 156px;
    }
}
body.theme-savoy .dudette-popular-categories:not(.dudette-popular-categories--product) ul:not(.can-scroll-left):not(.can-scroll-right){mask-image:none}
body.theme-savoy .dudette-popular-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin:-8px 0 16px}
body.theme-savoy .dudette-popular-controls[hidden]{display:none}
body.theme-savoy .dudette-popular-controls button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;border:0;border-radius:0;background:transparent;color:var(--dudette-pearly-white);cursor:pointer}
body.theme-savoy .dudette-popular-controls button:disabled{opacity:.35;cursor:default}
body.theme-savoy .dudette-popular-controls button span{display:block;flex-shrink:0;width:24px;height:24px;font-size:0;background:url('../product-page/styles-prev.svg') center/24px 24px no-repeat;transform:rotate(90deg)}
body.theme-savoy .dudette-popular-controls button:last-child span{transform:rotate(-90deg)}
body.theme-savoy .dudette-popular-controls button:focus-visible{outline:2px solid var(--dudette-pearly-white);outline-offset:3px}
body.theme-savoy .dudette-popular-categories ul.can-scroll-right{mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}
body.theme-savoy .dudette-popular-categories ul.can-scroll-left{mask-image:linear-gradient(to right,transparent,#000 24px)}
body.theme-savoy .dudette-popular-categories ul.can-scroll-left.can-scroll-right{mask-image:linear-gradient(to right,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
