/* Target-native surfaces only; colors/typography derive from the collected
   homepage header and product card. Existing DOM and functionality remain. */
body.htw-header-slot-legendairy .htw-site-header .htw-site-header__panel.htw-site-header__search,
body.htw-header-slot-legendairy .htw-site-header .htw-site-header__panel.htw-site-header__mini-cart {
  --sf-ink: #5d5e5d;
  --sf-muted: #666965;
  --sf-line: #e2e2dd;
  --sf-surface: #fafaf9;
  --sf-font: Poppins, Arial, sans-serif;
  background: #fafaf9;
  color: #5d5e5d;
}
body.htw-header-slot-legendairy .htw-site-header .storefront-drawer-overlay { background: rgba(49, 50, 49, .42); }
body.htw-header-slot-legendairy .htw-site-header__panel .storefront-drawer-heading { border-color: #dedfda; }
body.htw-header-slot-legendairy .htw-site-header__panel .storefront-drawer-heading h2 {
  color: #5d5e5d;
  font: 300 30px/1.2 Larken, Georgia, serif;
  letter-spacing: .01em;
}
body.htw-header-slot-legendairy .htw-site-header__panel .storefront-drawer-close { color: #5d5e5d; }
body.htw-header-slot-legendairy .htw-site-header__panel :focus-visible { outline: 2px solid #5d5e5d; outline-offset: 3px; }
body.htw-header-slot-legendairy .htw-site-header__search .searchform .flex-row { border-color: #888d88; border-radius: 4px; background: #fff; }
body.htw-header-slot-legendairy .htw-site-header__search .searchform input.search-field { color: #5d5e5d; font-family: Poppins, Arial, sans-serif; }
body.htw-header-slot-legendairy .htw-site-header__search .searchform button.ux-search-submit { color: #5d5e5d; }
body.htw-header-slot-legendairy .htw-site-header__search .autocomplete-suggestion { color: #5d5e5d; border-color: #e2e2dd; overflow-wrap: anywhere; }
body.htw-header-slot-legendairy .htw-site-header__search .autocomplete-suggestion img { border: 1px solid #ebeae6; border-radius: 8px; }

/* Only the native list scrolls in a populated drawer; its footer remains
   visible. Hidden panels retain the provider's own [hidden] behavior. */
body.htw-header-slot-legendairy .htw-site-header .htw-site-header__panel.htw-site-header__mini-cart:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart > .storefront-drawer-heading { flex: 0 0 auto; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart > .widget_shopping_cart_content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart ul.product_list_widget {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart ul.product_list_widget li { overflow-wrap: anywhere; border-color: #e2e2dd; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart ul.product_list_widget li img { border: 1px solid #ebeae6; border-radius: 8px; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart ul.product_list_widget li a:not(.remove) { color: #5d5e5d; font: 300 20px/1.3 Larken, Georgia, serif; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart .ux-mini-cart-footer { flex: 0 0 auto; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart .woocommerce-mini-cart__total { color: #5d5e5d; }
body.htw-header-slot-legendairy .htw-site-header__mini-cart .woocommerce-mini-cart__buttons a.button,
body.htw-header-slot-legendairy .htw-site-header__mini-cart .return-to-shop .button {
  border: 1px solid #5d5e5d;
  border-radius: 4px;
  background: #fafaf9 !important;
  color: #4c4e4c !important;
  font: 300 19px/1.2 Larken, Georgia, serif;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart .woocommerce-mini-cart__buttons a.checkout {
  background: #5d5e5d !important;
  color: #fff !important;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart .woocommerce-mini-cart__buttons a.button:hover,
body.htw-header-slot-legendairy .htw-site-header__mini-cart .woocommerce-mini-cart__buttons a.button:focus-visible,
body.htw-header-slot-legendairy .htw-site-header__mini-cart .return-to-shop .button:hover,
body.htw-header-slot-legendairy .htw-site-header__mini-cart .return-to-shop .button:focus-visible {
  background: #464846 !important;
  border-color: #464846;
  color: #fff !important;
  opacity: 1;
}

/* The existing Flatsome sale marker only. New and stock notices stay distinct. */
body .badge-container .badge-inner.on-sale,
body .product-small .badge-container .badge-inner.on-sale {
  border-radius: 40px !important;
  background: #737679 !important;
  color: #fff !important;
  font: 500 12px/1.3 Poppins, Arial, sans-serif !important;
  letter-spacing: .04em;
  padding: 9px 15px !important;
}
body .badge-container .badge-inner.on-sale .onsale { color: inherit !important; font: inherit !important; }
body [data-np-native-sale="1"] { white-space: nowrap; }
body .badge[data-np-variation-hidden="true"],
body [data-np-native-sale="1"][data-np-variation-hidden="true"] { display: none !important; }

/* Existing product-detail and Flatsome lightbox nodes: visual tokens only. */
body.single-product .sf-pdp { --pdp-ink: #5d5e5d; --pdp-muted: #6b6c69; --pdp-line: #e2e2dd; --pdp-surface: #fafaf9; color: #5d5e5d; }
body.single-product .sf-pdp__summary > .product_title,
body .product-quick-view-container h1 {
  color: #5d5e5d;
  font: 300 34px/1.18 Larken, Georgia, serif;
  letter-spacing: .01em;
}
body.single-product .sf-pdp__summary > .price-wrapper .price,
body .product-quick-view-container .price { color: #5d5e5d; font: 300 20px/1.25 Larken, Georgia, serif; }
body.single-product .sf-pdp .price ins,
body.single-product .sf-pdp .price ins .amount,
body .product-quick-view-container .price ins,
body .product-quick-view-container .price ins .amount { color: #5d5e5d; }
body.single-product .sf-pdp__summary form.cart .single_add_to_cart_button,
body .product-quick-view-container form.cart .single_add_to_cart_button {
  border: 1px solid #5d5e5d;
  border-radius: 4px;
  background: #fafaf9 !important;
  color: #4c4e4c !important;
  font: 300 20px/1.2 Larken, Georgia, serif;
}
body.single-product .sf-pdp__summary form.cart .single_add_to_cart_button:not(:disabled):hover,
body .product-quick-view-container form.cart .single_add_to_cart_button:not(:disabled):hover {
  background: #5d5e5d !important;
  color: #fff !important;
}
body.single-product .sf-pdp__summary form.cart select,
body .product-quick-view-container form.cart select { border-color: #9a9d99; border-radius: 4px; color: #5d5e5d; }
body .product-quick-view-container { background: #fafaf9; color: #5d5e5d; }
body .product-quick-view-container .product-gallery { background: #fafaf9; }
body.single-product .sf-pdp :focus-visible,
body .product-quick-view-container :focus-visible { outline: 2px solid #5d5e5d; outline-offset: 3px; }
@media (max-width: 767px) {
  body.htw-header-slot-legendairy .htw-site-header__panel .storefront-drawer-heading h2 { font-size: 26px; }
  body.single-product .sf-pdp__summary > .product_title,
  body .product-quick-view-container h1 { font-size: 27px; }
}

/* Ensure the native cart close control remains visible after the drawer becomes a flex container. */
body.htw-header-slot-legendairy .htw-site-header__mini-cart .storefront-drawer-close {
  position: relative;
  display: grid !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #5d5e5d !important;
  font-size: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart .storefront-drawer-close::before,
body.htw-header-slot-legendairy .htw-site-header__mini-cart .storefront-drawer-close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
body.htw-header-slot-legendairy .htw-site-header__mini-cart .storefront-drawer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
