/* Archive controls only. Keep Woo/Woodmart markup, queries and AJAX unchanged. */
.th-catalog-ui :is(.elementor-element-6e1bd467,.elementor-element-36a3457){margin-bottom:18px!important}
.th-catalog-ui .elementor-element-f111c56:not(:has(.elementor-widget)){display:none}
.th-catalog-ui .elementor-element-d05d1cb{margin-top:0!important}
.th-catalog-ui .wd-el-breadcrumbs{margin-bottom:14px!important}
.th-catalog-ui .woocommerce-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:0 5px;font-size:13px;line-height:1.6;color:#005b45}
.th-catalog-ui .woocommerce-breadcrumb a{color:#6d7e76;font-weight:400}
.th-catalog-ui .woocommerce-breadcrumb a:hover{color:#005b45}
.th-catalog-ui .woocommerce-breadcrumb .breadcrumb-last{color:#005b45;font-weight:600}
.th-catalog-ui :is(.elementor-element-216ee16,.elementor-element-a23ba8a){padding:12px 16px!important;margin:0 0 14px!important;gap:16px;min-height:68px;align-items:center;justify-content:space-between;border:1px solid #dfe9e3;border-radius:10px;background:#f5f9f6}
.th-catalog-ui :is(.elementor-element-216ee16,.elementor-element-a23ba8a)>.e-con{padding:0!important;margin:0!important;min-width:0}
.th-catalog-ui :is(.elementor-element-950af8c,.elementor-element-1712825){flex:1 1 auto!important;width:auto!important}
.th-catalog-ui :is(.elementor-element-1fc553d,.elementor-element-b6d0445){flex:0 1 330px!important;width:330px!important;max-width:100%;display:block}
.th-catalog-ui .wd-shop-result-count{margin:0!important}
.th-catalog-ui .woocommerce-result-count{margin:0!important;font-size:13px;font-weight:500;line-height:1.6;color:#496455}
.th-catalog-ui .wd-shop-ordering{width:100%!important;max-width:100%!important}
.th-catalog-ui .woocommerce-ordering{width:100%!important;min-width:0;max-width:100%;float:none;margin:0!important}
.th-catalog-ui .wd-shop-ordering .woocommerce-ordering select{width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;padding:0 36px 0 12px!important;border:1px solid #cbded2!important;border-radius:8px!important;background-color:#fff!important;color:#005b45!important;font-family:inherit;font-size:13px!important;font-weight:600;line-height:normal;text-transform:none;white-space:nowrap;text-overflow:ellipsis;box-shadow:none}
.th-catalog-ui .woocommerce-ordering::after{right:14px;color:#005b45}
.th-catalog-ui .woocommerce-ordering select:focus-visible,.th-catalog-ui .wd-active-filters a:focus-visible{outline:2px solid #005b45;outline-offset:3px}
.th-catalog-ui .wd-shop-active-filters:has(.wd-active-filters){margin-bottom:14px!important}
.th-catalog-ui .wd-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:0;margin:0;padding:0}
.th-catalog-ui .wd-active-filters :is(.widget,ul,li){margin:0;padding:0;border:0;background:transparent}
.th-catalog-ui .wd-active-filters ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.th-catalog-ui .wd-active-filters .wd-clear-filters{margin:0;padding:0;border:0}
.th-catalog-ui .wd-active-filters a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;gap:6px;padding:6px 12px;border:1px solid #cfe2d7;border-radius:20px;background:#edf5f0;color:#005b45;font-size:12px;font-weight:600;line-height:1.5;text-decoration:none;white-space:normal;overflow-wrap:anywhere;transition:background-color .15s,border-color .15s}
.th-catalog-ui .wd-active-filters .wd-clear-filters a{background:#fff;border-color:#decf9a;color:#52614f}
.th-catalog-ui .wd-active-filters a:hover{background:#dfeee5;border-color:#9cbfac;color:#005b45}
.th-catalog-ui .wd-active-filters a::before{flex:none;margin:0;font-size:10px}
.th-catalog-ui .woocommerce-ordering select.th-sort__native{display:none!important}
.th-catalog-ui .th-sort{position:relative;width:100%;text-align:left}
.th-catalog-ui .th-sort__toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid #cbded2;border-radius:8px;background:#fff;color:#005b45;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:normal;text-align:left;text-transform:none;box-shadow:none;cursor:pointer}
.th-catalog-ui .th-sort__toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.th-catalog-ui .th-sort__toggle::after{content:'';flex:none;width:7px;height:7px;margin:0 2px 4px 0;border:solid #578171;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.th-catalog-ui .th-sort__toggle:hover,.th-catalog-ui .th-sort.is-open .th-sort__toggle{border-color:#7aa391;background:#fff;color:#005b45}
.th-catalog-ui .th-sort__toggle:focus{outline:none;box-shadow:none}
.th-catalog-ui .th-sort__toggle:focus-visible{outline:2px solid #759e8c;outline-offset:2px}
.th-catalog-ui .th-sort__list{position:absolute;top:calc(100% + 6px);left:0;z-index:1001;width:100%;max-height:min(340px,60vh);overflow-y:auto;padding:5px;border:1px solid #d5e4da;border-radius:10px;background:#fff;box-shadow:0 8px 22px #004a3521;scrollbar-color:#b7cec0 #f5f9f6}
.th-catalog-ui .th-sort__list[hidden]{display:none!important}
.th-catalog-ui .th-sort.is-up .th-sort__list{top:auto;bottom:calc(100% + 6px)}
.th-catalog-ui .th-sort__option{position:relative;display:block;width:100%;min-height:40px;padding:9px 28px 9px 10px;margin:0;border:0;border-radius:6px;background:transparent;color:#355b49;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:normal;text-align:left;text-transform:none;white-space:normal;box-shadow:none;cursor:pointer}
.th-catalog-ui .th-sort__option:hover,.th-catalog-ui .th-sort__option.is-active{background:#f0f6f2;color:#005b45}
.th-catalog-ui .th-sort__option[aria-selected=true]{background:#e8f2ec;color:#005b45;font-weight:600}
.th-catalog-ui .th-sort__option[aria-selected=true]::after{content:'✓';position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#005b45;font-size:13px}
.th-catalog-ui .th-sort__option:disabled{opacity:.5;cursor:default}
/* Space after populated category tiles only; empty/hidden widgets add no gap. */
@media(min-width:768px){
 .th-catalog-ui .elementor-element-71f5645d:has(.product-category)+.elementor-element-216ee16{margin-top:24px!important}
 .th-catalog-ui .elementor-widget-wc-categories:has(.product-category)+.elementor-element-a23ba8a{margin-top:14px!important}
}
@media(max-width:767px){
 .th-catalog-ui :is(.elementor-element-6e1bd467,.elementor-element-36a3457){margin-bottom:10px!important}
 .th-catalog-ui .woocommerce-breadcrumb{font-size:12px;line-height:1.7}
 .th-catalog-ui :is(.elementor-element-216ee16,.elementor-element-a23ba8a){flex-direction:column;align-items:stretch;gap:10px;padding:12px!important;margin-bottom:12px!important;min-height:0}
 .th-catalog-ui :is(.elementor-element-950af8c,.elementor-element-1712825,.elementor-element-1fc553d,.elementor-element-b6d0445){flex:0 0 auto!important;width:100%!important}
 .th-catalog-ui .woocommerce-result-count{display:block!important;font-size:12px}
 .th-catalog-ui .wd-shop-ordering .woocommerce-ordering select{font-size:12px!important}
 .th-catalog-ui .th-sort__toggle,.th-catalog-ui .th-sort__option{font-size:12px}
 .th-catalog-ui .th-sort__option{min-height:44px}
 .th-catalog-ui .wd-active-filters a{min-height:40px;font-size:12px}
 .th-catalog-ui .elementor-widget-wc-categories:has(.product-category)+.elementor-element-a23ba8a{margin-top:6px!important}
}
