/* Checked Appliances v11 — legacy SEO product-category pages.
   Scoped by PHP to the explicitly listed older category pages.
   Does not alter WooCommerce product data, prices, checkout or the global footer. */

body.cagh-legacy-catalog ul.products,
body.cagh-legacy-catalog .woocommerce ul.products {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch!important;
    padding:0!important;
    margin:16px 0 28px!important;
    list-style:none!important;
    clear:both!important;
}
body.cagh-legacy-catalog ul.products::before,
body.cagh-legacy-catalog ul.products::after { display:none!important; }
body.cagh-legacy-catalog ul.products > li.product {
    box-sizing:border-box!important;
    position:relative!important;
    float:none!important;
    clear:none!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0 0 14px!important;
    display:flex!important;
    flex-direction:column!important;
    border:1px solid #e8e8e8!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 2px 9px rgba(0,0,0,.035)!important;
}
body.cagh-legacy-catalog ul.products > li.product > a.woocommerce-LoopProduct-link,
body.cagh-legacy-catalog ul.products > li.product > a.woocommerce-loop-product__link {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-width:0!important;
    text-decoration:none!important;
}
body.cagh-legacy-catalog ul.products > li.product img.attachment-woocommerce_thumbnail,
body.cagh-legacy-catalog ul.products > li.product a img {
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:200px!important;
    max-width:100%!important;
    object-fit:contain!important;
    background:#fafafa!important;
    margin:0 0 12px!important;
    padding:5px!important;
}
body.cagh-legacy-catalog ul.products > li.product .woocommerce-loop-product__title {
    font-family:Roboto,Arial,sans-serif!important;
    font-size:16px!important;
    font-weight:500!important;
    line-height:1.2!important;
    color:#242424!important;
    text-align:center!important;
    padding:0!important;
    margin:0 12px 10px!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:2.4em!important;
    max-height:2.4em!important;
    text-overflow:ellipsis!important;
    overflow-wrap:anywhere!important;
}
body.cagh-legacy-catalog ul.products > li.product .price {
    font-size:16px!important;
    font-weight:700!important;
    line-height:1.3!important;
    text-align:center!important;
    color:#202020!important;
    margin:0 10px 12px!important;
    padding:0!important;
    min-height:24px!important;
}
body.cagh-legacy-catalog ul.products > li.product .price del {opacity:.65!important;color:#606060!important;font-weight:400!important;}
body.cagh-legacy-catalog ul.products > li.product .price ins {text-decoration:none!important;color:#202020!important;font-weight:700!important;}
body.cagh-legacy-catalog ul.products > li.product .button {
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;
    margin:auto 12px 0!important;
    min-height:43px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:6px!important;
    background:#d42e34!important;
    color:#fff!important;
    text-align:center!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.25!important;
    padding:10px 8px!important;
    white-space:normal!important;
    box-shadow:none!important;
}
body.cagh-legacy-catalog ul.products > li.product .button:hover,
body.cagh-legacy-catalog ul.products > li.product .button:focus-visible {background:#b71f25!important;color:#fff!important;}
body.cagh-legacy-catalog ul.products > li.product .onsale {
    z-index:2!important;
    position:absolute!important;
    top:8px!important;
    right:8px!important;
    left:auto!important;
    bottom:auto!important;
    margin:0!important;
    padding:3px 8px!important;
    min-width:0!important;
    min-height:0!important;
    border-radius:4px!important;
    background:#fff!important;
    color:#171717!important;
    border:1px solid #aaa!important;
    font-size:11px!important;
    line-height:1.5!important;
    font-weight:700!important;
}
body.cagh-legacy-catalog .entry-title,
body.cagh-legacy-catalog h1.elementor-heading-title {
    font-size:clamp(28px,4vw,40px)!important;
    line-height:1.16!important;
    letter-spacing:-.025em!important;
    margin-bottom:18px!important;
}
/* Category navigation remains present and accessible. JS makes the long
   WooCommerce category tree an optional disclosure on mobile only. */
body.cagh-legacy-catalog .cagh-legacy-cat-disclosure {box-sizing:border-box;}
body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary {cursor:pointer;}
@media (min-width:1001px) {
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary {display:none;}
}
@media (min-width:768px) {
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary {display:none;}
}
@media (max-width:1000px) and (min-width:768px) {
    body.cagh-legacy-catalog ul.products {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
}
@media (max-width:767px) {
    body.cagh-legacy-catalog ul.products {
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:10px!important;
        margin:14px 0 24px!important;
    }
    body.cagh-legacy-catalog ul.products > li.product {padding-bottom:12px!important;border-radius:9px!important;}
    body.cagh-legacy-catalog ul.products > li.product img.attachment-woocommerce_thumbnail,
    body.cagh-legacy-catalog ul.products > li.product a img {height:155px!important;padding:4px!important;margin-bottom:10px!important;}
    body.cagh-legacy-catalog ul.products > li.product .woocommerce-loop-product__title {
        font-size:13px!important;
        line-height:1.25!important;
        min-height:2.5em!important;
        max-height:2.5em!important;
        margin:0 8px 8px!important;
    }
    body.cagh-legacy-catalog ul.products > li.product .price {
        font-size:13px!important;
        margin:0 6px 10px!important;
        min-height:34px!important;
        overflow-wrap:anywhere!important;
    }
    body.cagh-legacy-catalog ul.products > li.product .button {
        width:calc(100% - 16px)!important;
        margin:auto 8px 0!important;
        min-height:40px!important;
        padding:8px 6px!important;
        font-size:12px!important;
    }
    body.cagh-legacy-catalog .entry-title,
    body.cagh-legacy-catalog h1.elementor-heading-title {font-size:29px!important;line-height:1.16!important;margin-bottom:14px!important;}
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure {
        border:1px solid #e4e4e4;
        border-radius:9px;
        background:#fff;
        margin:8px 0 18px;
        overflow:hidden;
        width:100%;
    }
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary {
        display:list-item;
        list-style:none;
        padding:13px 14px;
        font:700 14px/1.4 Roboto,Arial,sans-serif;
        color:#242424;
        background:#fafafa;
    }
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary::-webkit-details-marker {display:none;}
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > summary::after {
        content:'+';
        float:right;
        color:#d42e34;
        font-size:20px;
        line-height:1;
    }
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure[open] > summary::after {content:'−';}
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > ul {
        max-height:320px;
        overflow:auto;
        padding:10px 14px 14px 27px!important;
        margin:0!important;
        background:#fff;
        font-size:13px;
        line-height:1.7;
    }
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure > ul ul {
        padding-left:18px!important;
        margin:3px 0!important;
    }
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure a {color:#c82930!important;text-decoration:none!important;}
    body.cagh-legacy-catalog .cagh-legacy-cat-disclosure a:hover {text-decoration:underline!important;}
}
@media (max-width:360px) {
    body.cagh-legacy-catalog ul.products {gap:7px!important;}
    body.cagh-legacy-catalog ul.products > li.product img.attachment-woocommerce_thumbnail,
    body.cagh-legacy-catalog ul.products > li.product a img {height:132px!important;}
    body.cagh-legacy-catalog ul.products > li.product .woocommerce-loop-product__title {font-size:12px!important;}
    body.cagh-legacy-catalog ul.products > li.product .price {font-size:12px!important;}
    body.cagh-legacy-catalog ul.products > li.product .button {font-size:11px!important;}
}

/* v12: improve disclosure reliability on legacy category pages. */
@media (max-width:767px) {
  body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure:not([open]) > ul {display:none!important;}
  body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure > summary {display:list-item!important;}
}

/* v13 — use the same accessible category disclosure on desktop and mobile. */
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure{
  box-sizing:border-box!important;display:block!important;width:100%!important;
  max-width:600px!important;margin:14px 0 22px!important;
  border:1px solid #e4e4e4!important;border-radius:9px!important;
  background:#fff!important;overflow:hidden!important;
}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure > summary{
  display:list-item!important;list-style:none!important;cursor:pointer!important;
  padding:13px 16px!important;background:#fafafa!important;color:#222!important;
  font:700 14px/1.4 Roboto,Arial,sans-serif!important;
}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure > summary::-webkit-details-marker{display:none!important}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure > summary::after{
  content:'+'!important;float:right!important;color:#d42e34!important;
  font-size:20px!important;line-height:1!important;
}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure[open] > summary::after{content:'−'!important}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure:not([open]) > ul{display:none!important}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure[open] > ul{
  display:block!important;max-height:330px!important;overflow:auto!important;
  margin:0!important;padding:12px 16px 14px 28px!important;
  background:#fff!important;font-size:14px!important;line-height:1.6!important;
}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure ul ul{padding-left:18px!important;margin:3px 0!important}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure a{color:#c82930!important;text-decoration:none!important}
body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure a:hover{text-decoration:underline!important}
@media(max-width:767px){
  body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure{max-width:none!important;margin:8px 0 18px!important}
  body.cagh-legacy-catalog details.cagh-legacy-cat-disclosure[open] > ul{font-size:13px!important}
}
/* Sale badges are now green, keeping original sale status and product data. */
body.cagh-legacy-catalog ul.products > li.product .onsale,
body.cagh-legacy-catalog .woocommerce ul.products > li.product .onsale{
  background:#18864b!important;color:#fff!important;border:0!important;
  border-radius:999px!important;min-width:48px!important;min-height:48px!important;
  width:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:6px!important;font-size:12px!important;line-height:1.1!important;
}
/* Search block removed only from legacy page PRODUCT FILTERS sidebar, not global search. */
body.cagh-legacy-catalog .cagh-filter-hidden{display:none!important}

/* v14: precise Elementor filter sidebar cleanup and sale badge color. */
body.cagh-legacy-catalog .cagh-filter-hidden { display:none!important; }
body.cagh-legacy-catalog .cagh-sort-relocated {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:10px 0 18px!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body.cagh-legacy-catalog .cagh-sort-relocated select {
  box-sizing:border-box!important;
  width:100%!important;
  min-height:44px!important;
  font-size:14px!important;
  color:#333!important;
  border:1px solid #d5d5d5!important;
  border-radius:6px!important;
  background-color:#fff!important;
}
body.cagh-legacy-catalog .woocommerce ul.products li.product span.onsale,
body.cagh-legacy-catalog ul.products li.product span.onsale,
body.cagh-legacy-catalog .elementor-widget-woocommerce-products ul.products li.product span.onsale,
body.cagh-legacy-catalog .woocommerce span.onsale,
body.cagh-legacy-catalog .wc-block-grid__product-onsale {
  background:#168a4a!important;
  background-color:#168a4a!important;
  background-image:none!important;
  color:#fff!important;
  border-color:#168a4a!important;
}

/* v15 — override the higher-specificity four-column WooCommerce desktop grid
   on mobile. Earlier mobile rules lost to `.woocommerce ul.products`. */
@media (max-width:767px) {
  body.cagh-legacy-catalog ul.products,
  body.cagh-legacy-catalog .woocommerce ul.products,
  body.cagh-legacy-catalog .elementor-widget-woocommerce-products ul.products,
  body.cagh-legacy-catalog .woocommerce ul.products.columns-4,
  body.cagh-legacy-catalog .woocommerce ul.products[class*="columns-"] {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    margin:14px 0 25px!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product,
  body.cagh-legacy-catalog ul.products > li.product {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    float:none!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    padding:0 0 12px!important;
    overflow:hidden!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product a img,
  body.cagh-legacy-catalog ul.products > li.product a img {
    height:160px!important;
    max-width:100%!important;
    object-fit:contain!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .woocommerce-loop-product__title,
  body.cagh-legacy-catalog ul.products > li.product .woocommerce-loop-product__title {
    font-size:13px!important;
    line-height:1.3!important;
    min-height:3.9em!important;
    max-height:3.9em!important;
    -webkit-line-clamp:3!important;
    margin:0 8px 10px!important;
    overflow:hidden!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .price,
  body.cagh-legacy-catalog ul.products > li.product .price {
    font-size:13px!important;
    line-height:1.3!important;
    min-height:38px!important;
    margin:0 5px 12px!important;
    text-align:center!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .price del,
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .price ins,
  body.cagh-legacy-catalog ul.products > li.product .price del,
  body.cagh-legacy-catalog ul.products > li.product .price ins {
    display:block!important;
    width:max-content!important;
    max-width:100%!important;
    margin:0 auto!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .button,
  body.cagh-legacy-catalog ul.products > li.product .button {
    box-sizing:border-box!important;
    width:calc(100% - 16px)!important;
    min-height:44px!important;
    margin:auto 8px 0!important;
    padding:9px 7px!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  body.cagh-legacy-catalog .woocommerce ul.products > li.product .onsale,
  body.cagh-legacy-catalog ul.products > li.product .onsale {
    top:7px!important;
    right:7px!important;
    min-width:42px!important;
    min-height:42px!important;
    width:42px!important;
    height:42px!important;
    font-size:11px!important;
    padding:3px!important;
  }
}
/* Avoid invisible padding from relocated Elementor widgets. */
body.cagh-legacy-catalog .cagh-filter-hidden {display:none!important;}
body.cagh-legacy-catalog .cagh-sort-relocated {margin:12px 0 16px!important;}

/* v16 — the sidebar search form must remain visible; hide its label only. */
body.cagh-legacy-catalog .cagh-search-relocated {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:12px 0 12px!important;
  padding:0!important;
}
body.cagh-legacy-catalog .cagh-search-relocated form {
  display:flex!important;
  width:100%!important;
  align-items:stretch!important;
  margin:0!important;
}
body.cagh-legacy-catalog .cagh-search-relocated input[type="search"],
body.cagh-legacy-catalog .cagh-search-relocated input[name="s"],
body.cagh-legacy-catalog .cagh-search-relocated input.search-field {
  min-width:0!important;
  flex:1 1 auto!important;
  max-width:100%!important;
  min-height:44px!important;
  box-sizing:border-box!important;
}
body.cagh-legacy-catalog .cagh-sort-relocated {margin:0 0 16px!important;}

/* v17 — stable, accessible product search directly below PRODUCT FILTERS. */
body.cagh-legacy-catalog form.cagh-catalog-search {
  display:flex!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:14px 0 12px!important;
  padding:0!important;
  border:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.cagh-legacy-catalog form.cagh-catalog-search input[type="search"] {
  display:block!important;
  box-sizing:border-box!important;
  flex:1 1 0!important;
  min-width:0!important;
  width:1%!important;
  height:46px!important;
  min-height:46px!important;
  padding:10px 12px!important;
  border:1px solid #d6dce2!important;
  border-right:0!important;
  border-radius:5px 0 0 5px!important;
  background:#fff!important;
  color:#222!important;
  font:400 14px/1.4 Arial,sans-serif!important;
  box-shadow:none!important;
}
body.cagh-legacy-catalog form.cagh-catalog-search button[type="submit"] {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:46px!important;
  min-height:46px!important;
  padding:10px!important;
  margin:0!important;
  border:1px solid #d12d35!important;
  border-radius:0 5px 5px 0!important;
  background:#d12d35!important;
  color:#fff!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
body.cagh-legacy-catalog form.cagh-catalog-search button svg {
  width:19px!important;height:19px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:2.3!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
body.cagh-legacy-catalog form.cagh-catalog-search button:hover,
body.cagh-legacy-catalog form.cagh-catalog-search button:focus-visible {background:#b71f25!important;}
body.cagh-legacy-catalog .cagh-sort-relocated {margin:0 0 14px!important;}
body.cagh-legacy-catalog .cagh-filter-hidden {display:none!important;}

/* v18 — include refurbished refrigerator catalog and ensure all genuine
   WooCommerce / Elementor sale badge variants use the same green. */
body.cagh-legacy-catalog .woocommerce span.onsale,
body.cagh-legacy-catalog .woocommerce-page span.onsale,
body.cagh-legacy-catalog .elementor-widget-woocommerce-products span.onsale,
body.cagh-legacy-catalog .wc-block-grid__product-onsale,
body.cagh-legacy-catalog .wc-block-components-product-sale-badge {
  background:#168a4a!important;
  background-color:#168a4a!important;
  background-image:none!important;
  border-color:#168a4a!important;
  color:#fff!important;
}
