/* Purchase discovery: scoped to the Performance home; native WooCommerce checkout. */
html:has(body.obd2-performance){scrollbar-gutter:stable}
body.obd2-performance .product-visual{aspect-ratio:1}
body.obd2-performance .product-image{height:100%;padding:14px 14px 42px}
body.obd2-performance .product-image img{height:100%;width:100%;aspect-ratio:auto}
body.obd2-performance .quick-view-hint{position:absolute;left:13px;bottom:13px;display:flex;align-items:center;gap:18px;padding:6px 10px;background:#f6f6efe8;border-radius:2px;font-size:12px;font-weight:600;color:#242b24}
body.obd2-performance .product-image:hover .quick-view-hint{background:#242b24;color:white}
body.obd2-performance button.photo-zoom{position:absolute;right:10px;bottom:9px;width:40px;height:40px;min-height:40px;border-radius:50%;display:grid;place-items:center;padding:0;background:#f7f7f1;color:#242b24}
body.obd2-performance button.photo-zoom:hover{background:var(--orange)}
body.obd2-performance .gallery-ready .product-card h3{min-height:46px;margin:9px 0 8px;line-height:1.22}
body.obd2-performance .product-card>p{margin-bottom:0}
body.obd2-performance .product-card .product-spec{margin-top:0;min-height:39px}
body.obd2-performance .product-card .product-price{margin-top:5px}
body.obd2-performance .product-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:13px 17px;margin:16px 0 10px;background:var(--orange);border:1px solid var(--orange);border-radius:3px;color:#171c17;font-size:14px;font-weight:700;line-height:1.35;text-decoration:none;transition:background .18s,color .18s}
body.obd2-performance .product-buy:hover{background:#242b24;border-color:#242b24;color:#fff}
body.obd2-performance .product-buy:focus-visible,body.obd2-performance .photo-zoom:focus-visible,body.obd2-performance .quick-enlarge:focus-visible,body.obd2-performance .quick-continue:focus-visible{outline:3px solid #242b24;outline-offset:4px}
body.obd2-performance .product-buy>span:last-child{font-size:20px;line-height:1}

/* Share content rows across the gallery so long names never offset purchase actions.
   Flex is the fallback; subgrid aligns images, descriptions, prices and controls
   without truncating names or fixing heights to a particular product selection. */
body.obd2-performance .gallery-ready .product-card{display:flex;flex-direction:column}
body.obd2-performance .gallery-ready .product-card>.price-caption{margin-top:auto;padding-top:10px}
@supports(grid-template-rows:subgrid){
 body.obd2-performance .gallery-ready .product-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--cards-per-view) - 1) * var(--gallery-gap)) / var(--cards-per-view));grid-template-rows:repeat(9,auto);row-gap:0;align-items:stretch}
 body.obd2-performance .gallery-ready .product-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:1 / span 9;row-gap:0}
 body.obd2-performance .gallery-ready .product-card>.product-visual{align-self:start}
 body.obd2-performance .gallery-ready .product-card>.price-caption{margin-top:0}
}

/* A compact promotion whose height follows its text, not an oversized square image. */
body.obd2-performance .kit-compact .kit-grid{grid-template-columns:1.15fr .85fr;gap:48px;padding-block:36px;align-items:stretch}
body.obd2-performance .kit-compact .kit-copy{padding:0;min-width:0}
body.obd2-performance .kit-compact .kit-copy h2{font-size:clamp(34px,3.2vw,44px);line-height:1.04;margin:14px 0 0;letter-spacing:-.045em}
body.obd2-performance .kit-compact .kit-copy>p.kit-name{font-size:18px;line-height:1.35;font-weight:700;margin:16px 0 0}
body.obd2-performance .kit-compact .kit-copy>p.kit-overview{font-size:14px;line-height:1.6;margin:8px 0 0;max-width:600px}
body.obd2-performance .kit-facts{display:flex;flex-wrap:wrap;gap:14px 28px;margin:19px 0;padding:0}
body.obd2-performance .kit-facts dt{font-size:10px;letter-spacing:.03em;font-weight:400;margin:0 0 4px}
body.obd2-performance .kit-facts dd{font-size:20px;font-weight:700;margin:0;line-height:1.2}
body.obd2-performance .kit-purchase{display:flex;align-items:center;gap:24px;flex-wrap:wrap;border-top:1px solid #2229;padding-top:17px}
body.obd2-performance .kit-price-label{font-size:10px;letter-spacing:.07em}
body.obd2-performance .kit-purchase .product-price{font-size:29px;line-height:1.2;margin:3px 0;min-height:0}
body.obd2-performance .kit-stock{font-size:12px;margin:4px 0 0}
body.obd2-performance .kit-compact .kit-copy .button{gap:26px;min-height:52px;padding:15px 20px}
body.obd2-performance .kit-catalog{display:inline-flex;align-items:center;gap:24px;font-size:13px;font-weight:600;border-bottom:1px solid #2229;padding:5px 0;margin-top:12px}
body.obd2-performance .kit-catalog:hover{border-color:#111}
body.obd2-performance .kit-compact .kit-visual{padding:22px;flex-direction:column;background:#e4e4db;border:1px solid #d0d0c3;border-radius:3px;min-height:0;margin:0;justify-content:center}
body.obd2-performance .kit-compact .kit-visual>img{width:100%;max-width:360px;height:auto;max-height:360px;aspect-ratio:1;object-fit:contain;padding:0;margin:8px auto}
body.obd2-performance .kit-visual-label{font-size:10px;letter-spacing:.12em;color:#525d4b;text-align:center}
body.obd2-performance .kit-visual-caption{font-size:12px;color:#525d4b;text-align:center}

/* Native dialogs keep focus contained and leave filters/carousel state intact. */
body.obd2-performance.obd2-dialog-open{overflow:hidden}
body.obd2-performance #quick-view{width:1000px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:0;border-radius:6px;color:#242b24;overscroll-behavior:contain}
body.obd2-performance #quick-view .dialog-close{position:sticky;display:block;top:10px;margin:10px 10px -50px auto;z-index:2;border-radius:50%;background:#f4f4ed;border:1px solid #bac2b3;width:40px;height:40px;min-height:40px;line-height:1}
body.obd2-performance .quick-layout{display:grid;grid-template-columns:.9fr 1.1fr}
body.obd2-performance .quick-visual{background:#dfe2d6;padding:38px 26px;display:flex;flex-direction:column;align-items:center;gap:20px;justify-content:flex-start}
body.obd2-performance .quick-visual>.eyebrow{align-self:flex-start;font-size:10px;color:#57644e}
body.obd2-performance .quick-visual>img{width:100%;max-width:360px;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply}
body.obd2-performance .quick-enlarge{display:inline-flex;align-items:center;gap:16px;min-height:44px;padding:8px 12px;border:1px solid #a8b09f;background:transparent;font-size:13px;font-weight:600;border-radius:3px}
body.obd2-performance .quick-copy{padding:36px 34px 28px;min-width:0}
body.obd2-performance .quick-copy>.product-type{margin:0;padding-right:20px;font-size:10px}
body.obd2-performance #quick-title{font-size:32px;line-height:1.1;letter-spacing:-.04em;margin:12px 0 20px;overflow-wrap:anywhere}
body.obd2-performance #quick-overview{font-size:13px;line-height:1.6;margin:0 0 18px}
body.obd2-performance .quick-price-block .product-price{font-size:30px;line-height:1.25;min-height:0;margin:5px 0}
body.obd2-performance .quick-price-block .stock{font-size:12px;margin:7px 0 0}
body.obd2-performance .quick-actions .product-buy{font-size:15px;margin:18px 0 6px}
body.obd2-performance button.quick-continue{display:block;margin:0 auto;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px;background:transparent;color:#3e4c37;padding:8px 12px}
body.obd2-performance .quick-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:20px 0 0;padding:20px 0 0;border-top:1px solid #bdc6b4}
body.obd2-performance .quick-facts dt{font-size:10px;font-weight:400;line-height:1.4;margin:0 0 5px;color:#56654d}
body.obd2-performance .quick-facts dd{font-size:16px;font-weight:700;line-height:1.35;margin:0;overflow-wrap:anywhere}
body.obd2-performance .quick-details{margin-top:20px;border-top:1px solid #bdc6b4;padding-top:18px;font-size:13px;line-height:1.65}
body.obd2-performance .quick-details h3{font-size:15px;letter-spacing:0;margin:0 0 10px;font-weight:700}
body.obd2-performance .quick-details p{margin:0 0 10px}
body.obd2-performance .quick-details ul,body.obd2-performance .quick-details ol{margin:10px 0;padding-left:20px;list-style:revert}
body.obd2-performance .quick-details li{margin:4px 0}
body.obd2-performance .quick-note{font-size:11px;line-height:1.6;color:#57644e;margin:15px 0 0}
@media(max-width:900px){
 body.obd2-performance .kit-compact .kit-grid{gap:26px;grid-template-columns:1.1fr .9fr}
 body.obd2-performance .kit-compact .kit-copy h2{font-size:34px}
 body.obd2-performance .quick-copy{padding:34px 25px 24px}
 body.obd2-performance #quick-title{font-size:27px}
}
@media(max-width:600px){
 body.obd2-performance .gallery-ready .product-card h3{min-height:0;margin-bottom:10px}
 body.obd2-performance .product-card .product-spec{min-height:0}
 body.obd2-performance .gallery-ready .product-buy{font-size:15px;min-height:50px}
 body.obd2-performance .kit-compact .kit-grid{grid-template-columns:1fr;gap:23px;padding-block:30px}
 body.obd2-performance .kit-compact .kit-copy h2{font-size:34px}
 body.obd2-performance .kit-purchase{gap:17px}
 body.obd2-performance .kit-purchase .button{width:100%;justify-content:space-between}
 body.obd2-performance .kit-compact .kit-visual{padding:12px}
 body.obd2-performance .kit-compact .kit-visual>img{max-width:220px;max-height:220px;margin:0 auto}
 body.obd2-performance .kit-visual-label,body.obd2-performance .kit-visual-caption{display:none}
 body.obd2-performance #quick-view{width:100%;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 body.obd2-performance .quick-layout{grid-template-columns:1fr}
 body.obd2-performance .quick-visual{padding:20px;gap:10px}
 body.obd2-performance .quick-visual>img{max-width:200px;max-height:200px}
 body.obd2-performance .quick-visual>.eyebrow{padding-right:45px}
 body.obd2-performance .quick-enlarge{min-height:40px;font-size:12px}
 body.obd2-performance .quick-copy{padding:22px}
 body.obd2-performance #quick-title{font-size:28px;margin:10px 0 16px}
 body.obd2-performance .quick-price-block .product-price{font-size:28px}
 body.obd2-performance .quick-actions .product-buy{margin-top:16px}
 body.obd2-performance .quick-facts{gap:10px}
 body.obd2-performance .quick-facts dd{font-size:14px}
}
@media(prefers-reduced-motion:reduce){body.obd2-performance .product-buy,body.obd2-performance .catalog-button{transition:none}}
