/* sb-claude-fixes */
/* Best-seller slider: on touch devices a mandatory x-snap container swallows
   vertical drags, so the page won't scroll past it. Proximity snapping + a
   permissive touch-action lets a downward swipe move the page while a sideways
   swipe still pages the carousel. */
@media (pointer:coarse){
  #sbPopTrack{scroll-snap-type:x proximity!important;touch-action:pan-x pan-y!important;overscroll-behavior-x:contain}
}
/* Any other horizontal scrollers on the site get the same treatment. */
@media (pointer:coarse){
  .qtabs,.sb-ledger{touch-action:pan-x pan-y!important}
}

/* ---- Button "sheen" containment ----
   The animated sheen on primary buttons (a transparent→white→transparent
   streak) could render as a stray light bar next to the button when its
   clipping didn't hold — visible on the product page beside the image. Force
   the host to clip its pseudo-element and keep the streak fully transparent
   until hover, so it can never appear as a floating glare. The hover sweep is
   preserved. */
.btn:not(.btn-ghost),
.single_add_to_cart_button,
.sb-checkout{overflow:hidden!important}
.btn:not(.btn-ghost)::after,
.single_add_to_cart_button::after{opacity:0;transition:transform .6s ease,opacity .45s ease}
.btn:not(.btn-ghost):hover::after,
.single_add_to_cart_button:hover::after{opacity:1}
/* sb-mobile-ux */
/* --- 1. Tap targets: touch devices only, desktop density untouched. --- */
@media (pointer:coarse){
	.sbh-chip,.pd-more,.pd-rn-toggle,.pd-source-link,.sb-pop-viewall{
		min-height:44px !important;
		display:inline-flex !important;
		align-items:center !important;
	}
	.woocommerce-form-login button[type=submit],
	.woocommerce-form-register button[type=submit],
	.woocommerce-Button{min-height:44px !important}
}

/* --- 2. Legibility floor for badge text. ---
 * WAS:
 *   .sb-badge,.badge,[class*="bestseller"],[class*="-badge"]{
 *     font-size:max(11px, 1em) !important; letter-spacing:.04em; }
 *
 * That did the opposite of what it says. In a font-size declaration `1em`
 * resolves against the PARENT's size, so max(11px, 1em) is not a floor - it is
 * "never smaller than my parent's text". The 9px Bestseller pill sits inside a
 * 14.5px product name, so it was blown up to 14.5px: the pill burst out of its
 * row and pushed the product name into an ellipsis ("BPC-157 / TB-500 (Wolv...
 * ST..."). It also inflated the promo-bar badge from its designed 10.5px to
 * 13.5px, and the payment chips to 16px.
 *
 * A floor has to be an absolute length, and it only belongs on the badge that
 * was actually too small. Everything else keeps the size it was designed at.
 */
.sbh-badge{
	font-size:10px !important;
	letter-spacing:.05em !important;
	/* Tightened from the theme's 8px/2px-6px. At 10px the pill only needed ~6px
	   back to stop "BPC-157 / TB-500 Blend" - the longest name in the rail -
	   from clipping into an ellipsis. */
	margin-left:4px !important;
	padding:2px 4px !important;
}
