/* Target-native commerce surfaces; retain all markup, data and event handling. */
.htw-site-header .htw-site-header__search,
.htw-site-header .htw-site-header__mini-cart { background:#fff; color:#4c4c4c; border-color:#e5e1e9; }
.htw-site-header .htw-site-header__search { box-shadow:0 8px 20px rgba(45,26,72,.12); }
.htw-site-header .htw-site-header__search input[type="search"],
.htw-site-header .htw-site-header__search input[type="text"] { background:#f7f7f7; color:#29252f; border:1px solid #c7c1cf; border-radius:0; min-height:44px; }
.htw-site-header .htw-site-header__search input:focus-visible,
.htw-site-header .htw-site-header__mini-cart a:focus-visible,
.htw-site-header .htw-site-header__mini-cart button:focus-visible,
.single-product .product-info :is(a,button,input,select):focus-visible,
.product-quick-view-container :is(a,button,input,select):focus-visible { outline:2px solid #5935a1; outline-offset:2px; }
.htw-site-header .htw-site-header__mini-cart { width:min(380px,calc(100vw - 32px)); max-height:calc(100vh - 100px); overflow-y:auto; overscroll-behavior:contain; }
.htw-site-header .htw-site-header__mini-cart .woocommerce-mini-cart { max-height:45vh; overflow-y:auto; overscroll-behavior:contain; }
.htw-site-header .htw-site-header__mini-cart .woocommerce-mini-cart-item { overflow-wrap:anywhere; }
.htw-site-header .htw-site-header__mini-cart .woocommerce-mini-cart-item img { background:#f5f5f5; object-fit:contain; }
.htw-site-header .htw-site-header__mini-cart :is(.button, .checkout) { background:#5935a1; border:1px solid #5935a1; color:#fff; text-align:center; }
.htw-site-header .htw-site-header__mini-cart :is(.button, .checkout):hover { background:#3f2576; border-color:#3f2576; color:#fff; }
.single-product .product-info,
.product-quick-view-container .product-info { color:#4c4c4c; }
.single-product .product-info .product-title,
.product-quick-view-container .product-info h1 { color:#4c4c4c; font-weight:800; line-height:1.08; letter-spacing:-.02em; }
.single-product .product-info .price,
.product-quick-view-container .product-info .price { color:#5935a1; font-weight:700; }
.single-product .product-gallery,
.product-quick-view-container .product-gallery { background:#f6f6f6; }
.single-product .product-info :is(select,input.qty),
.product-quick-view-container .product-info :is(select,input.qty) { border:1px solid #bdb8c5; color:#29252f; background:#fff; }
.single-product .product-info .single_add_to_cart_button.button,
.product-quick-view-container .product-info .single_add_to_cart_button.button { background:#5935a1 !important; border:1px solid #5935a1; color:#fff; }
.single-product .product-info .single_add_to_cart_button.button:hover,
.product-quick-view-container .product-info .single_add_to_cart_button.button:hover { background:#3f2576 !important; border-color:#3f2576; color:#fff; }
.single-product .product-info .single_add_to_cart_button.button:disabled,
.product-quick-view-container .product-info .single_add_to_cart_button.button:disabled { opacity:.55; }
.product-quick-view-container { background:#fff; color:#4c4c4c; }
@media(max-width:549px){
 .htw-site-header .htw-site-header__mini-cart { right:16px; max-height:calc(100dvh - 95px); }
 .htw-site-header .htw-site-header__mini-cart .woocommerce-mini-cart { max-height:40dvh; }
 .product-quick-view-container .product-lightbox-inner { padding:20px !important; }
}

/* Match the real native product-gallery sale badge to the shared card palette. */
body.single-product .product-images > .badge-container .badge-inner.on-sale { background-color:#5935a1 !important; color:#fff !important; border-radius:0 !important; padding:7px 10px !important; font:700 13px/1.2 Arial,sans-serif !important; }
body.single-product .product-images > .badge-container .badge-inner.on-sale .onsale { color:inherit !important; font:inherit !important; background:transparent !important; }
