/* Only the new catalogue chrome and callback dialog. Product cards inherit WoodMart. */
.sladson-category-banner{margin-top:0;margin-bottom:26px}
.sladson-category-banner .sladson-banner-copy{max-width:var(--wd-container-w,1390px);width:100%;margin:auto;padding:30px 32px;position:relative;z-index:2}
.sladson-category-banner .sladson-banner-copy>.wp-block-wd-title,
.sladson-category-banner .sladson-banner-copy>.wp-block-wd-paragraph{max-width:570px}
.sladson-category-banner .sladson-banner-copy .woocommerce-breadcrumb{font-size:12px;margin-bottom:24px}
.sladson-category-banner .sladson-banner-copy h1{font-size:clamp(27px,3vw,46px);line-height:1.12;margin:0 0 12px;text-wrap:balance}
.sladson-category-banner .sladson-banner-subtitle{font-size:19px;line-height:1.4;margin-bottom:8px;color:var(--wd-title-color)}
.sladson-category-banner .sladson-banner-description{font-size:14px;line-height:1.55;margin:0;color:var(--wd-text-color)}
.sladson-catalog-category-nav{max-width:var(--wd-container-w,1390px);margin:0 auto;padding:16px 30px}
.sladson-catalog-category-nav .wd-nav-product-cat{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:10px;padding-bottom:5px;scrollbar-width:thin}
.sladson-catalog-category-nav .wd-nav-product-cat>li{flex:0 0 auto;margin:0}
.sladson-catalog-category-nav .wd-nav-product-cat>li>a{border:1px solid var(--brdcolor-gray-300);border-radius:var(--wd-brd-radius,8px);padding:10px 16px;background:var(--bgcolor-gray-100);color:var(--wd-title-color);min-height:42px;font-size:13px}
.sladson-catalog-category-nav .wd-nav-product-cat>li.current-cat>a,
.sladson-catalog-category-nav .wd-nav-product-cat>li.wd-active>a{background:var(--wd-primary-color);border-color:var(--wd-primary-color);color:#fff}
.sladson-catalog-category-nav .wd-nav-product-cat .nav-link-text{text-transform:none}
.sladson-catalog-category-nav .nav-link-summary{display:inline-flex;align-items:center;gap:6px}
.sladson-catalog-category-nav .nav-link-count{font-size:12px;line-height:inherit}
.sladson-catalog-category-nav .wd-nav-product-cat>li>a:after{display:none}
.sladson-catalog-filters-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.sladson-catalog-filters-heading h4{margin:0;font-size:18px}
.sladson-catalog-filters-heading a{font-size:12px;text-decoration:underline}
body.tax-product_cat .wd-sidebar .widget{padding:16px 0;border-bottom:1px solid var(--brdcolor-gray-300);margin-bottom:0}
body.tax-product_cat .wd-sidebar .widget-title{font-size:15px;text-transform:none}
.sladson-benefits{background:var(--bgcolor-gray-100);padding:30px max(24px,calc((100vw - var(--wd-container-w,1390px))/2));margin:0;gap:22px}
.sladson-benefits>div{min-width:0}
.sladson-benefits .wp-block-wd-infobox{margin:0}

#sladson-request-dialog{border:0;border-radius:var(--wd-brd-radius,12px);background:var(--wd-main-bgcolor,#fff);color:var(--wd-text-color);width:min(460px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:32px;box-shadow:0 14px 70px #0003}
#sladson-request-dialog::backdrop{background:#0007}
#sladson-request-dialog .sladson-request-close{position:absolute;top:6px;right:8px;width:38px;height:38px;font-size:28px;background:transparent;border:0;color:inherit;padding:0;cursor:pointer}
#sladson-request-dialog h3{padding-right:20px;font-size:24px;margin-bottom:12px}
#sladson-request-dialog form{margin:0}
#sladson-request-dialog input[type=tel]{width:100%;margin:8px 0 0}
#sladson-request-dialog [type=submit]{width:100%}
#sladson-request-dialog .sladson-request-product{font-size:14px;font-weight:600;color:var(--wd-title-color)}
#sladson-request-dialog .sladson-request-status{margin:12px 0;font-size:14px}
#sladson-request-dialog .sladson-request-privacy{margin:14px 0 0;font-size:11px;line-height:1.5}
#sladson-request-dialog .sladson-request-privacy a{text-decoration:underline}
.sladson-variation-notice{font-size:13px;margin:10px 0}
@media(max-width:1024px){
 .sladson-benefits{flex-wrap:wrap!important}
 .sladson-benefits>div{flex:1 1 30%!important}
 .sladson-category-banner .sladson-banner-copy>.wp-block-wd-title,.sladson-category-banner .sladson-banner-copy>.wp-block-wd-paragraph{max-width:50%}
}
@media(max-width:767px){
 .sladson-category-banner{margin-top:0}
 .sladson-category-banner .wp-block-wd-cover{height:auto!important;min-height:430px}
 .sladson-category-banner .wd-block-cover-img{height:205px;top:auto;bottom:0}
 .sladson-category-banner .wd-block-cover-img img{object-position:85% center}
 .sladson-category-banner .wd-bg-overlay{background:linear-gradient(180deg,#faf8f4 0%,#faf8f4 50%,#faf8f400 72%)!important}
 .sladson-category-banner .sladson-banner-copy{padding:22px 20px 205px}
 .sladson-category-banner .sladson-banner-copy>.wp-block-wd-title,.sladson-category-banner .sladson-banner-copy>.wp-block-wd-paragraph{max-width:100%}
 .sladson-category-banner .sladson-banner-subtitle{font-size:16px}
 .sladson-category-banner .sladson-banner-description{font-size:13px}
 .sladson-category-banner .sladson-banner-copy .woocommerce-breadcrumb{margin-bottom:16px}
 .sladson-catalog-category-nav{padding:12px 20px}
 .sladson-benefits{padding:24px 20px}
 .sladson-benefits>div{flex:1 1 44%!important}
}


.sladson-catalog-category-nav .wd-nav-product-cat>li.wd-active>a .nav-link-count{color:inherit;opacity:.85}

/* 2.2: shared catalogue chrome; editable native WoodMart layouts retain their controls. */
.sladson-catalog-category-nav .wd-nav-product-cat{flex-wrap:wrap;overflow:visible;white-space:normal}
.sladson-catalog-category-nav .wd-nav-product-cat>li{max-width:100%;flex:0 1 auto}
.sladson-catalog-category-nav .nav-link-summary{flex-wrap:wrap}
.sladson-catalog-category-nav .nav-link-text{white-space:normal}
.sladson-filter-panel{background:var(--bgcolor-gray-100,#f7f7f7);border-radius:var(--wd-brd-radius,10px);padding:20px 16px}
.sladson-filter-panel .widget{padding:18px 0;border-bottom:1px solid var(--brdcolor-gray-300);margin-bottom:0}
.sladson-filter-panel .widget-title{font-size:14px;text-transform:none}
.sladson-filter-panel .widget:last-child{border-bottom:0}
.sladson-filter-panel .sladson-catalog-filters-heading{margin-bottom:0}
.sladson-filter-panel .sladson-catalog-filters-heading h4{font-size:16px}
.wd-prefooter:has(.sladson-benefits)>.container{max-width:none;width:100%;padding:0}
.sladson-product-card{height:100%;min-width:0}
.sladson-product-card .sladson-card-details{flex-grow:1}
.sladson-product-card .sladson-card-purchase{margin-top:auto}
.sladson-product-card .wd-entities-title{margin:0}
.sladson-card-wishlist{position:absolute;right:12px;top:12px;border-radius:50%;background:var(--wd-main-bgcolor,#fff)}
.sladson-card-facts .shop_attributes{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;border:0}
.sladson-card-facts .shop_attributes tbody{display:contents}
.sladson-card-facts .shop_attributes tr{display:flex;gap:5px;align-items:baseline;max-width:100%;border:0}
.sladson-card-facts .shop_attributes th,.sladson-card-facts .shop_attributes td{display:block;width:auto;border:0;padding:0!important;overflow-wrap:anywhere}
.sladson-card-facts .shop_attributes th{font-weight:400;color:var(--wd-text-color)}
.sladson-card-facts .shop_attributes p{margin:0}
.sladson-product-colours{margin:0 0 16px}
.sladson-colour-label{display:block;font-weight:600;margin-bottom:8px}
.sladson-colour-options{display:flex;flex-wrap:wrap;gap:10px}
.sladson-colour-choice{position:relative;padding:3px!important;width:34px;height:34px;min-height:34px;border:1px solid transparent;border-radius:50%;background:transparent!important}
.sladson-colour-choice .wd-swatch-bg{display:block;width:26px;height:26px;border:1px solid #0002;border-radius:50%;background-size:cover;background-position:center}
.sladson-colour-choice.wd-active{border-color:var(--wd-primary-color)}
.sladson-colour-choice:focus-visible{outline:2px solid var(--wd-primary-color);outline-offset:3px}
.sladson-info-page{max-width:var(--wd-container-w,1390px);margin:0 auto;padding:20px 0 48px}
.sladson-info-page p,.sladson-info-page li{line-height:1.7;overflow-wrap:anywhere}
.sladson-info-page p{max-width:86ch}
.sladson-info-page h1{font-size:clamp(30px,3.5vw,46px);line-height:1.15}
.sladson-info-page h2{margin-top:24px;font-size:clamp(24px,2.7vw,32px)}
.sladson-info-page a[href^="tel:"]:not(.btn),.sladson-info-page a[href^="mailto:"]:not(.btn){color:var(--wd-primary-color);text-decoration:underline;text-underline-offset:3px}
.sladson-info-page details{border:1px solid var(--brdcolor-gray-300);border-radius:10px;margin-bottom:12px;padding:18px 20px}
.sladson-info-page summary{font-size:20px;font-weight:600;cursor:pointer}
.sladson-info-page details[open]>summary{margin-bottom:22px}
.sladson-store-card{height:100%;border:1px solid var(--brdcolor-gray-300);background:var(--bgcolor-gray-100);border-radius:12px;padding:24px}
.sladson-store-card p{margin-bottom:8px}
.sladson-info-page table{display:block;overflow-x:auto;max-width:100%;white-space:normal}
@media(max-width:767px){
 .sladson-catalog-category-nav .wd-nav-product-cat>li>a{padding:9px 12px;font-size:12px}
 .sladson-catalog-category-nav .nav-link-count{font-size:11px}
 .sladson-card-facts .shop_attributes{gap:6px}
 .sladson-card-purchase .price{font-size:18px}
 .sladson-info-page{padding-top:8px}
 .sladson-store-card{padding:20px}
}


.sladson-filter-panel .wd-swatches-filter .wc-layered-nav-term:not(.wd-swatch-wrap) .wd-filter-lable{display:inline!important}

/* 2.3: rules are limited to the provided layouts and their optional image controls. */
.wd-product:has(.sladson-product-card),.wd-product:has(.sladson-product-card)>.wd-product-wrapper{display:flex;flex-direction:column;height:100%;min-width:0}
.wd-product .sladson-product-card{flex:1 1 auto;display:flex;flex-direction:column}
.sladson-product-card>.sladson-card-details{flex:1 1 auto;display:flex;flex-direction:column}
.sladson-card-photo-wide,.sladson-card-photo-vertical{flex-shrink:0}
.sladson-fit-photo{--sl-ratio:1.85;flex-shrink:0}
.sladson-ratio-table{--sl-ratio:4/3}.sladson-ratio-portrait{--sl-ratio:3/4}.sladson-ratio-square{--sl-ratio:1}
.sladson-fit-photo .wd-product-img-link{display:block;aspect-ratio:var(--sl-ratio);overflow:hidden}
.sladson-fit-photo .wd-product-img-link>img,.sladson-fit-photo .hover-img>img{width:100%;height:100%;object-fit:contain}
.sladson-fit-photo .hover-img{inset:0;width:100%;height:100%}
.sladson-fit-photo .wd-product-grid-slide{aspect-ratio:var(--sl-ratio)}
.sladson-fit-photo .wd-product-grid-slide img{width:100%;height:100%;object-fit:contain}
.sladson-colour-choice{flex:0 0 38px;box-sizing:border-box;width:38px!important;min-width:38px;max-width:38px;height:38px!important;min-height:38px;max-height:38px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.sladson-colour-choice .wd-swatch-bg{flex:0 0 30px;width:30px;height:30px}
.sladson-filter-panel .wd-swatches-filter .wd-filter-lable{display:inline!important}
/* Brand filters use text labels; shared logos remain available to brand pages. */
.wd-swatches-filter.wd-swatches-brands .wd-swatch{display:none!important}
.wd-swatches-filter.wd-swatches-brands .wd-filter-lable{display:inline!important}
.sladson-partner-regions .wd-nav-tabs{flex-wrap:wrap;white-space:normal}
@media(min-width:1025px){
 .sladson-theme-product-columns{--wd-col:12!important}
 .sladson-theme-product-columns>.wp-block-wd-column:first-child{--wd-col:var(--sl-image-col)!important;flex:0 1 calc(100% * var(--sl-image-col) / 12 - var(--wd-col-gap,0px) * (1 - var(--sl-image-col) / 12))!important}
 .sladson-theme-product-columns>.wp-block-wd-column:nth-child(2){--wd-col:var(--sl-summary-col)!important;flex:0 1 calc(100% * var(--sl-summary-col) / 12 - var(--wd-col-gap,0px) * (1 - var(--sl-summary-col) / 12))!important}
}
/* Same row and typography as the native purchase button; two equal columns. */
.sladson-purchase-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px}
.sladson-purchase-actions>.quantity{flex:0 0 auto;margin:0!important}
.sladson-purchase-actions>.single_add_to_cart_button,.sladson-purchase-actions>.sladson-quick-request{flex:1 1 180px!important;width:auto!important;margin:0!important;min-width:0;white-space:normal;box-sizing:border-box}
.sladson-purchase-actions>.sladson-quick-request{--btn-color:var(--btn-accented-color);--btn-bgcolor:var(--btn-accented-bgcolor);--btn-color-hover:var(--btn-accented-color-hover);--btn-bgcolor-hover:var(--btn-accented-bgcolor-hover);--btn-brd-radius:var(--btn-accented-brd-radius);--btn-font-size:var(--btn-accented-font-size);--btn-font-weight:var(--btn-accented-font-weight);--btn-transform:var(--btn-accented-transform);--btn-font-family:var(--btn-accented-font-family)}
.sladson-purchase-actions>.sladson-variation-notice{flex-basis:100%}
@media(max-width:520px){.sladson-purchase-actions>.quantity{flex-basis:100%}.sladson-purchase-actions>.single_add_to_cart_button,.sladson-purchase-actions>.sladson-quick-request{flex-basis:calc(50% - 5px)!important;padding-inline:8px}}

/* 2.4: only the supplied native layouts and managed homepage blocks. */
.sladson-product-card{border:1px solid var(--brdcolor-gray-300,#e5e5e5);border-radius:var(--wd-brd-radius,12px);overflow:hidden;background:var(--wd-main-bgcolor,#fff)}
.sladson-card-facts .wd-attr-img{width:16px;max-width:16px;height:16px;object-fit:contain}
.sladson-header-phone a[href^="tel:"]{font-size:17px;font-weight:700;line-height:1.55}
.sladson-header-phone strong{font-size:inherit;font-weight:inherit}
.sladson-home-categories .wd-cat-inner{height:100%;border:1px solid var(--brdcolor-gray-300,#e5e5e5);border-radius:12px;overflow:hidden;background:var(--bgcolor-gray-100,#f7f7f7);box-shadow:none}
.sladson-home-categories .wd-cat-thumb{aspect-ratio:1;overflow:hidden}
.sladson-home-categories .wd-cat-image,.sladson-home-categories .wd-cat-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sladson-home-categories .wd-cat-content{position:static;transform:none;padding:14px 12px;min-height:66px;text-align:left;background:transparent}
.sladson-home-categories .wd-cat-content .wd-entities-title{font-size:15px;line-height:1.3;text-transform:none;margin:0;font-weight:600}
.sladson-home-categories .wd-cat:hover .wd-cat-content{transform:none}
.sladson-benefit-icon{flex-shrink:0}
.sladson-benefit-icon img{width:38px;height:38px;object-fit:contain}
.sladson-delivery-payment h3{font-size:22px;margin-bottom:16px}
.sladson-delivery-payment p{line-height:1.7;max-width:58ch}
/* Keep the same filter treatment when a category uses the native fallback sidebar. */
.sidebar-container:has(.sladson-catalog-filters-heading) .widget-area{background:var(--bgcolor-gray-100,#f7f7f7);border-radius:var(--wd-brd-radius,10px);padding:20px 16px}

/* 2.5: dimensions belong to the gallery area, not to the source photo. Zoom stays native. */
.sladson-gallery-fit .wd-gallery-images .woocommerce-product-gallery__image>a{display:block;width:100%;aspect-ratio:1;max-height:620px}
.sladson-gallery-fit .wd-gallery-images .woocommerce-product-gallery__image>a>img:not(.zoomImg){display:block;width:100%;height:100%;max-height:620px;object-fit:contain;object-position:center}
.sladson-gallery-fit .wd-gallery-thumb img{aspect-ratio:1;object-fit:contain}
.sladson-category-banner>.wp-block-wd-cover{height:auto;min-height:320px}
.sladson-category-banner .sladson-banner-copy{padding-top:36px;padding-bottom:36px;flex-shrink:0}
.sladson-related-heading{clear:both}
@media(max-width:767px){.sladson-category-banner .sladson-banner-copy{padding-top:26px;padding-bottom:225px}}
@media(prefers-reduced-motion:reduce){body.home [class*="wd-animation"]{animation:none!important;transition:none!important;transform:none!important;opacity:1!important;visibility:visible!important}}
