/* Soft Heart 6.8.167 — repaired For Him selector structure.
 * Scopes the cool-blue palette to Men category archives, Men single products,
 * and individual Men product cards on otherwise mixed-gender product grids.
 * NEVER recolors For Her pages or globally shared Cart / Checkout contexts.
 * WooCommerce often sets class="woocommerce" ON THE BODY, not on a nested
 * container: all palette selectors must work WITHOUT a descendant `.woocommerce`.
 * Only visual properties: no changes to prices, variation logic, cart or JS.
 */

html body.kdt-for-him-context {
  --sh166-navy: #375772;
  --sh166-blue: #5d9dce;
  --sh166-blue-dark: #4c85b4;
  --sh166-muted: #668aa9;
  --sh166-line: #bddbf2;
  --sh166-soft: #f0f8ff;
  --sh126-product-name: var(--sh166-navy);
  --sh126-product-price: var(--sh166-blue);
}

/* 1. Category / subcategory archives and catalog cards, including active price
 * spans, WooCommerce <bdi> elements and custom non-Woo card implementations.
 * These were missed when previous fixes addressed single-product .summary only.
 */
html body.kdt-for-him-context ul.products li.product,
html body.kdt-for-him-context .products li.product,
html body.kdt-for-him-context .softheart-card,
html body ul.products li.product.sh126-for-him-product,
html body .products li.product.sh126-for-him-product,
html body .softheart-card.sh126-for-him-product {
  border-color: #c3def4 !important;
  box-shadow: 0 9px 25px rgba(81, 143, 196, .11) !important;
}
html body.kdt-for-him-context ul.products li.product:hover,
html body ul.products li.product.sh126-for-him-product:hover {
  box-shadow: 0 16px 32px rgba(81, 143, 196, .18) !important;
}
html body.kdt-for-him-context ul.products li.product .woocommerce-loop-product__title,
html body.kdt-for-him-context ul.products li.product h2,
html body.kdt-for-him-context .softheart-card .softheart-card-title,
html body ul.products li.product.sh126-for-him-product .woocommerce-loop-product__title,
html body ul.products li.product.sh126-for-him-product h2,
html body .softheart-card.sh126-for-him-product .softheart-card-title {
  color: #375772 !important;
}
html body.kdt-for-him-context ul.products li.product .price,
html body.kdt-for-him-context ul.products li.product .price .amount,
html body.kdt-for-him-context ul.products li.product .price bdi,
html body.kdt-for-him-context ul.products li.product .price ins,
html body.kdt-for-him-context ul.products li.product .price ins .amount,
html body.kdt-for-him-context .softheart-card .price,
html body.kdt-for-him-context .softheart-card-price,
html body.kdt-for-him-context .kdt-v59-product-price,
html body ul.products li.product.sh126-for-him-product .price,
html body ul.products li.product.sh126-for-him-product .price .amount,
html body ul.products li.product.sh126-for-him-product .price bdi,
html body ul.products li.product.sh126-for-him-product .price ins,
html body .softheart-card.sh126-for-him-product .price,
html body .softheart-card.sh126-for-him-product .softheart-card-price {
  color: #5d9dce !important;
}
html body.kdt-for-him-context ul.products li.product .price del,
html body.kdt-for-him-context ul.products li.product .price del *,
html body ul.products li.product.sh126-for-him-product .price del,
html body ul.products li.product.sh126-for-him-product .price del * {
  color: #93a6b7 !important;
}
html body.kdt-for-him-context ul.products li.product a img,
html body ul.products li.product.sh126-for-him-product a img {
  background: #f5faff !important;
}
html body.kdt-for-him-context span.onsale,
html body.kdt-for-him-context ul.products li.product .onsale,
html body ul.products li.product.sh126-for-him-product .onsale {
  background: linear-gradient(130deg, #629fd1, #91c5ec) !important;
  box-shadow: 0 8px 19px rgba(78, 144, 204, .22) !important;
}
html body.kdt-for-him-context .woocommerce-result-count,
html body.kdt-for-him-context .woocommerce-ordering,
html body.kdt-for-him-context .woocommerce-ordering select {
  color: #4f84b0 !important;
}
html body.kdt-for-him-context .woocommerce-ordering select {
  border-color: #c4dff5 !important;
  background-color: #fbfdff !important;
}
html body.kdt-for-him-context nav.woocommerce-pagination ul li span.current,
html body.kdt-for-him-context nav.woocommerce-pagination ul li a:hover {
  background: linear-gradient(130deg, #619fd5, #91c6ee) !important;
  color: #fff !important;
  border-color: #8fbfe4 !important;
}

/* 2. Men's Size & Color Finder: the original shared CSS was deliberately pink.
 * Keep controls, accessibility, selectors, behavior, and category filtering.
 */
html body.kdt-for-him-context .sh157-search-card.sh159-finder {
  border-color: #bad9f2 !important;
  background: linear-gradient(138deg, #fff, #f6fbff 66%, #eaf6ff) !important;
  box-shadow: 0 10px 26px rgba(74, 145, 207, .12) !important;
}
html body.kdt-for-him-context .sh159-finder-icon,
html body.kdt-for-him-context .sh159-finder-arrow {
  color: #548ebf !important;
  background: #eaf5ff !important;
  border-color: #c1def3 !important;
}
html body.kdt-for-him-context .sh159-finder-arrow::after {
  border-color: #538ab9 !important;
}
html body.kdt-for-him-context .sh159-finder-title,
html body.kdt-for-him-context .sh157-filter-field label {
  color: #466f99 !important;
}
html body.kdt-for-him-context .sh159-finder-subtitle,
html body.kdt-for-him-context .sh157-filter-caption {
  color: #6c8aa6 !important;
}
html body.kdt-for-him-context .sh159-finder-panel,
html body.kdt-for-him-context .sh157-filter-field select,
html body.kdt-for-him-context .sh157-reset-button,
html body.kdt-for-him-context .sh157-filter-caption span {
  border-color: #c4dff3 !important;
}
html body.kdt-for-him-context .sh157-filter-field select,
html body.kdt-for-him-context .sh157-reset-button {
  color: #3d698e !important;
}
html body.kdt-for-him-context .sh157-find-button {
  background: linear-gradient(125deg, #5f9ed2, #88bee9) !important;
  box-shadow: 0 7px 17px rgba(83, 149, 205, .20) !important;
}
html body.kdt-for-him-context .sh157-filter-caption span {
  background: #edf7ff !important;
}
html body.kdt-for-him-context .sh159-finder-summary:focus-visible {
  outline-color: #609ed2 !important;
}

/* 3. Product details: gallery, name, normal/sale/variation/combination price,
 * option panels, size guide, quantity and purchase-area accents.  Relatives
 * and related product prices are blue on a Men's detail page, too.
 */
html body.kdt-for-him-context.single-product div.product .product_title,
html body.kdt-for-him-context.single-product div.product h1.product_title,
html body.kdt-for-him-context.single-product .product_title.entry-title {
  color: #375772 !important;
}
html body.kdt-for-him-context.single-product div.product p.price,
html body.kdt-for-him-context.single-product div.product span.price,
html body.kdt-for-him-context.single-product div.product .summary .price,
html body.kdt-for-him-context.single-product div.product .summary .price .amount,
html body.kdt-for-him-context.single-product div.product .summary .price bdi,
html body.kdt-for-him-context.single-product div.product .price ins,
html body.kdt-for-him-context.single-product div.product .price ins .amount,
html body.kdt-for-him-context.single-product .woocommerce-variation-price,
html body.kdt-for-him-context.single-product .woocommerce-variation-price .price,
html body.kdt-for-him-context.single-product .woocommerce-variation-price .price .amount,
html body.kdt-for-him-context.single-product .woocommerce-variation-price .price bdi,
html body.kdt-for-him-context.single-product .single_variation .price,
html body.kdt-for-him-context.single-product .softheart-price-single,
html body.kdt-for-him-context.single-product .softheart-price-current,
html body.kdt-for-him-context.single-product .kdt-combo-card-price,
html body.kdt-for-him-context.single-product .kdt-combo-card-price .amount {
  color: #5d9dce !important;
}
html body.kdt-for-him-context.single-product div.product .price del,
html body.kdt-for-him-context.single-product div.product .price del *,
html body.kdt-for-him-context.single-product .woocommerce-variation-price .price del,
html body.kdt-for-him-context.single-product .woocommerce-variation-price .price del * {
  color: #93a6b7 !important;
}
html body.kdt-for-him-context.single-product .kdt-v6819-single-gallery .kdt-v6819-thumb,
html body.kdt-for-him-context.single-product .kdt-v6819-single-gallery .kdt-v6819-main-image,
html body.kdt-for-him-context.single-product .woocommerce-product-gallery img,
html body.kdt-for-him-context.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  border-color: #bfdcf3 !important;
}
html body.kdt-for-him-context.single-product .kdt-v6819-single-gallery .kdt-v6819-thumb.is-active,
html body.kdt-for-him-context.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
  border-color: #6faadb !important;
  box-shadow: 0 5px 18px rgba(93, 155, 206, .22) !important;
}
html body.kdt-for-him-context.single-product .shav-wrapper,
html body.kdt-for-him-context.single-product .kdt-variation-live-card,
html body.kdt-for-him-context.single-product #kdtChooseCombination,
html body.kdt-for-him-context.single-product div.product form.cart.variations_form {
  border-color: #bad9f0 !important;
  background: linear-gradient(145deg, #fff, #f6fbff, #eef7ff) !important;
}
html body.kdt-for-him-context.single-product .shav-title,
html body.kdt-for-him-context.single-product .shav-label,
html body.kdt-for-him-context.single-product .kdt-variation-title,
html body.kdt-for-him-context.single-product .kdt-combo-label,
html body.kdt-for-him-context.single-product .kdt-combo-attr-label {
  color: #538ebd !important;
}
html body.kdt-for-him-context.single-product .shav-card.is-selected,
html body.kdt-for-him-context.single-product .kdt-combo-card.is-selected,
html body.kdt-for-him-context.single-product .kdt-combo-attr-card.is-selected {
  border-color: #75a9d8 !important;
  background: linear-gradient(145deg, #e0f1ff, #f6fbff, #dfedfc) !important;
}
html body.kdt-for-him-context.single-product .woocommerce-tabs ul.tabs li a,
html body.kdt-for-him-context.single-product .woocommerce-tabs .panel h2,
html body.kdt-for-him-context.single-product .kdt-v6858-option-note {
  color: #5087b3 !important;
}
html body.kdt-for-him-context.single-product .woocommerce-tabs .panel,
html body.kdt-for-him-context.single-product .woocommerce-tabs ul.tabs li,
html body.kdt-for-him-context.single-product .kdt-v6858-option-note {
  border-color: #c5dff3 !important;
}
html body.kdt-for-him-context.single-product .woocommerce-tabs ul.tabs li.active {
  background: linear-gradient(135deg, #e9f5ff, #fff) !important;
  border-color: #7fb1df !important;
}
html body.kdt-for-him-context.single-product .kdt-v6858-option-note {
  background: #eff8ff !important;
}

/* On the men's pages show product-card prices in blue even when related
 * products use the special related-products CSS instead of the loop's markup.
 */
html body.kdt-for-him-context.single-product .kdt-v6859-related-card .price,
html body.kdt-for-him-context.single-product .kdt-v6859-related-card .price .amount,
html body.kdt-for-him-context.single-product .related.products ul.products li.product .price,
html body.kdt-for-him-context.single-product .related.products ul.products li.product .price .amount {
  color: #5d9dce !important;
}

/* 4. Minor interactive details: check marks and sale-price hierarchy. */
html body.kdt-for-him-context .shav-card.is-selected::after,
html body.kdt-for-him-context .kdt-variation-choice.is-selected::after,
html body.kdt-for-him-context .kdt-combo-card.is-selected::after,
html body.kdt-for-him-context .kdt-combo-attr-card.is-selected::after {
  background: linear-gradient(145deg, #7ab1df, #508bbb) !important;
  border-color: #6fa7d6 !important;
  box-shadow: 0 4px 12px rgba(77, 144, 199, .24) !important;
  color: #fff !important;
}
html body.kdt-for-him-context ul.products li.product .price del .amount,
html body.kdt-for-him-context ul.products li.product .price del .woocommerce-Price-amount,
html body.kdt-for-him-context ul.products li.product .price del bdi,
html body ul.products li.product.sh126-for-him-product .price del .amount,
html body ul.products li.product.sh126-for-him-product .price del bdi,
html body.kdt-for-him-context.single-product div.product .price del .amount,
html body.kdt-for-him-context.single-product div.product .price del bdi {
  color: #93a6b7 !important;
}


/* v6.8.167 archive-root compatibility, including product cards produced by
 * taxonomy-product_cat.php and woocommerce.php without a nested Woo wrapper.
 * Women's cards remain untouched (except intentionally tagged Men's products).
 */
html body.kdt-for-him-context .kdt-category-products ul.products li.product,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product,
html body ul.products li.product.sh126-for-him-product {
  border-color: #c3def4 !important;
  box-shadow: 0 9px 25px rgba(81,143,196,.11) !important;
}
html body.kdt-for-him-context .kdt-category-products ul.products li.product h2.woocommerce-loop-product__title,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product h2.woocommerce-loop-product__title,
html body ul.products li.product.sh126-for-him-product h2.woocommerce-loop-product__title {
  color: #375772 !important;
}
html body.kdt-for-him-context .kdt-category-products ul.products li.product .price,
html body.kdt-for-him-context .kdt-category-products ul.products li.product .price .woocommerce-Price-amount,
html body.kdt-for-him-context .kdt-category-products ul.products li.product .price bdi,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product .price,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product .price .woocommerce-Price-amount,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product .price bdi,
html body ul.products li.product.sh126-for-him-product .price,
html body ul.products li.product.sh126-for-him-product .price .woocommerce-Price-amount,
html body ul.products li.product.sh126-for-him-product .price bdi {
  color: #5d9dce !important;
}
/* WooCommerce may output sale-price strikethrough and current price nested. */
html body.kdt-for-him-context .kdt-category-products ul.products li.product .price del,
html body.kdt-for-him-context .kdt-category-products ul.products li.product .price del *,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product .price del,
html body.kdt-for-him-context .kdt-products-anchor ul.products li.product .price del *,
html body ul.products li.product.sh126-for-him-product .price del,
html body ul.products li.product.sh126-for-him-product .price del * {
  color: #93a6b7 !important;
}
