/**
 * Aavant Peptides — PDP styles.
 *
 * The template is built almost entirely from the ported Tailwind utility bundle
 * (av-tailwind.css) + the design tokens (av-tokens.css). This file only supplies
 * the handful of source classes that are NOT in the utility bundle plus a couple
 * of product-page refinements. Scoped to .av-pdp so nothing leaks.
 */

/* Source "glass-panel" (card bg + hairline border) — lifted verbatim. */
.glass-panel {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
}

/* Gallery image must fill the square card.
 *
 * Our markup is byte-identical to the source's
 * (.glass-panel.aspect-square > .relative.w-full.h-full > img.w-full.h-full.object-cover),
 * but the source is a plain React app with no WooCommerce. Here,
 * woocommerce-layout.css ships `.woocommerce img,.woocommerce-page img{height:auto}`
 * — specificity (0,1,1) — which outranks Tailwind's `.h-full` (0,1,0). The image
 * therefore collapsed to its natural 600x328 ratio and left ~165px of dead space
 * inside the square card. Re-assert the source's intent at higher specificity.
 * Same class of bug as the logo guard in header.php.
 */
.woocommerce .av-pdp .glass-panel.aspect-square img,
.woocommerce-page .av-pdp .glass-panel.aspect-square img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Size selector buttons — sit in a wrapping flex row; keep even, tappable tiles. */
.av-pdp .av-size-grid { align-items: stretch; }
.av-pdp .av-size-btn { cursor: pointer; line-height: 1.2; }
.av-pdp .av-size-btn[disabled] {
	opacity: .4;
	cursor: not-allowed;
	text-decoration: line-through;
}
.av-pdp .av-size-btn:focus-visible {
	outline: 2px solid hsl(var(--primary));
	outline-offset: 2px;
}

/* Quantity + add-to-cart affordances. */
.av-pdp .av-qty-dec,
.av-pdp .av-qty-inc { cursor: pointer; user-select: none; }
.av-pdp .av-add { cursor: pointer; }
.av-pdp .av-add:hover { box-shadow: 0 8px 24px -6px hsl(var(--primary) / .45); }

/* Research-overview prose (mirrors the muted body copy). */
.av-pdp .av-prose p { margin: 0 0 .75rem; }
.av-pdp .av-prose p:last-child { margin-bottom: 0; }
.av-pdp .av-prose a { color: hsl(var(--primary)); }
.av-pdp .av-prose a:hover { text-decoration: underline; }

/* Sticky column safety on shorter viewports. */
@media (max-width: 1023px) {
	.av-pdp .lg\:sticky { position: static; }
}
