/* Category photographs with a separate, readable caption. */
html body .product-category.wd-cat {
    --myata-category-bg:#f7f5ed;
    --myata-category-ink:#30382f;
    --myata-category-border:#dcd8c8;
    --myata-category-badge:#e9dfbf;
    --myata-category-accent:#b49b57;
}
html[data-myata-theme="dark"] body .product-category.wd-cat {
    --myata-category-bg:#30382f;
    --myata-category-ink:#f5f3e9;
    --myata-category-border:#56604c;
    --myata-category-badge:#454e3f;
    --myata-category-accent:#d2bc79;
}
html body .product-category.wd-cat .wd-cat-inner {
    position:relative!important; overflow:hidden!important;
    border:1px solid var(--myata-category-border)!important;
    border-radius:16px!important; background:var(--myata-category-bg)!important;
    box-shadow:none!important; transition:border-color .2s,box-shadow .2s;
    height:100%;
}
html body .product-category.wd-cat .wd-cat-inner::before,
html body .product-category.wd-cat .wd-cat-thumb::after,
html body .product-category.wd-cat .wd-cat-content::before,
html body .product-category.wd-cat .wd-cat-content::after {display:none!important}
html body .product-category.wd-cat .wd-cat-image {overflow:hidden;aspect-ratio:1/1}
html body .product-category.wd-cat .wd-cat-image img {
    display:block!important;width:100%!important;height:100%!important;
    aspect-ratio:1/1;object-fit:cover!important; opacity:1!important;
    filter:none!important;transform:none!important;transition:transform .3s;
}
html body .product-category.wd-cat .wd-cat-content {
    position:static!important;inset:auto!important;transform:none!important;
    display:block!important;width:auto!important;height:auto!important;
    padding:18px!important;overflow:visible!important;background:var(--myata-category-bg)!important;
    color:var(--myata-category-ink)!important;opacity:1!important;
}
html body .product-category.wd-cat .wd-cat-content>a.wd-fill {
    position:absolute!important;inset:0!important;z-index:2!important;
    width:100%!important;height:100%!important;border-radius:16px;
}
html body .product-category.wd-cat .wd-cat-header {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex-wrap:nowrap!important;gap:12px!important;margin:0!important;
    min-height:56px;text-align:left!important;
}
html body .product-category.wd-cat .category-title {
    flex:1!important;min-width:0!important;max-width:none!important;margin:0!important;
    font-family:inherit!important;font-size:18px!important;font-weight:600!important;
    line-height:1.4!important;letter-spacing:0!important;text-transform:none!important;
    text-align:left!important;word-break:normal!important;overflow-wrap:normal!important;
    color:var(--myata-category-ink)!important;
}
html body .product-category.wd-cat .category-title a {
    color:var(--myata-category-ink)!important;font:inherit!important;
    text-transform:none!important;letter-spacing:inherit!important;
}
html body .product-category.wd-cat .wd-cat-count {
    position:static!important;display:inline-flex!important;align-items:center!important;
    justify-content:center!important;flex:0 0 auto!important;align-self:center!important;
    margin:0!important;padding:5px 9px!important;min-width:32px!important;min-height:32px!important;
    border:1px solid var(--myata-category-border)!important;border-radius:10px!important;
    background:var(--myata-category-badge)!important;color:var(--myata-category-ink)!important;
    font-size:13px!important;line-height:1!important;font-weight:600!important;
    opacity:1!important;visibility:visible!important;transform:none!important;
}
html body .product-category.wd-cat .wd-cat-count::before,
html body .product-category.wd-cat .wd-cat-count::after {display:none!important}
html body .product-category.wd-cat:focus-within .wd-cat-inner {
    outline:2px solid var(--myata-category-accent);outline-offset:3px;
}
@media(hover:hover){
    html body .product-category.wd-cat:hover .wd-cat-inner {
        border-color:var(--myata-category-accent)!important;box-shadow:0 6px 18px #00000015!important;
    }
    html body .product-category.wd-cat:hover .wd-cat-image img {transform:scale(1.025)!important}
}
@media(min-width:1200px){
    html body .products>.product-category.wd-cat {flex:0 0 25%!important;max-width:25%!important}
}
@media(max-width:767px){
    html body .product-category.wd-cat .wd-cat-inner {border-radius:12px!important}
    html body .product-category.wd-cat .wd-cat-content {padding:12px!important}
    html body .product-category.wd-cat .wd-cat-header {
        align-items:flex-start!important;flex-direction:column!important;gap:9px!important;min-height:100px;
    }
    html body .product-category.wd-cat .category-title {font-size:16px!important;line-height:1.35!important;flex:0 0 auto!important}
    html body .product-category.wd-cat .wd-cat-count {align-self:flex-start!important;margin-top:auto!important;min-height:28px!important;font-size:12px!important;padding:5px 8px!important}
}
@media(prefers-reduced-motion:reduce){
    html body .product-category.wd-cat * {transition:none!important}
}
/* Keep the theme's photo zoom inside the image, away from the caption. */
html body .product-category.wd-cat .wd-cat-thumb,
html body .product-category.wd-cat .wd-cat-image {
    transform:none!important;opacity:1!important;filter:none!important;
}

/* Centre the filter panel independently of sorting and result controls. */
html body .wd-shop-tools:has(>.myata-filters) {
    width:100%!important;max-width:100%!important;flex-basis:100%!important;
}
html body form.myata-filters {
    box-sizing:border-box!important;flex:0 0 auto!important;
    width:100%!important;max-width:1000px!important;
    margin:15px auto 16px!important;
}
@media(max-width:767px){
    html body form.myata-filters {max-width:100%!important;margin:15px auto 16px!important}
}
