/* Deliberately scoped to the shared product component; no shell selectors. */
body .ahp-home .ahp-products.ahp-products.ahp-products,
body.woocommerce-shop ul.products:has(>.av-card),
body.tax-product_cat ul.products:has(>.av-card),
body.home ul.products:has(>.av-card){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important}
/* Shop and category archives deliberately share the exact same grid measure. */
body.woocommerce-shop ul.products:has(>.av-card),
body.tax-product_cat ul.products:has(>.av-card){width:min(1280px,calc(100% - 48px))!important;max-width:1280px!important;margin:0 auto 64px!important;padding:0!important;transform:none!important}
body ul.products:has(>.av-card)::before,body ul.products:has(>.av-card)::after{display:none!important}
body .ahp-home .ahp-products-layout--carousel .ahp-products.ahp-products.ahp-products{display:grid!important;grid-template-columns:none!important;grid-template-rows:auto!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 60px)/4)!important;height:auto!important;min-height:0!important;align-items:stretch!important;align-content:start!important;overflow-x:auto!important;scroll-snap-type:x mandatory}
body .ahp-products-layout--carousel .av-card{scroll-snap-align:start}
body .av-card[data-av-card][data-av-card][data-av-card]{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;position:relative!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;float:none!important;margin:0!important;padding:0!important;gap:0!important;background:#fff!important;border:1px solid #dbe3f0!important;border-radius:12px!important;box-shadow:0 5px 18px #0f172a0a!important;overflow:hidden!important;text-align:left!important;color:#0f172a!important}
body .av-card[data-av-card][data-av-card][data-av-card] *{box-sizing:border-box!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-media{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;min-height:0!important;flex:0 0 auto!important;margin:0!important;padding:0!important;background:#fff!important;overflow:hidden!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-media img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;position:static!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;opacity:1!important;visibility:visible!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-body{display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important;padding:16px!important;gap:10px!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-category{align-self:flex-start!important;display:block!important;background:#eff6ff!important;color:#2563eb!important;border-radius:12px!important;padding:3px 8px!important;font:500 11px/1.4 Arial,sans-serif!important;overflow-wrap:anywhere!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-title{display:-webkit-box!important;position:static!important;height:4.2em!important;min-height:4.2em!important;max-height:4.2em!important;margin:0!important;padding:0!important;overflow:hidden!important;white-space:normal!important;text-overflow:clip!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;overflow-wrap:anywhere!important;color:#0f172a!important;font:700 16px/1.4 Arial,sans-serif!important;text-decoration:none!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-title a{display:inline!important;position:static!important;margin:0!important;padding:0!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;color:inherit!important;font:inherit!important;text-decoration:none!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-price,body .av-card[data-av-card][data-av-card][data-av-card] .av-price *,body .av-card[data-av-card][data-av-card][data-av-card] .av-price .woocommerce-Price-amount,body .av-card[data-av-card][data-av-card][data-av-card] .av-price bdi,body .av-card[data-av-card][data-av-card][data-av-card] .av-price .woocommerce-Price-currencySymbol{display:block!important;margin:auto 0 0!important;border-top:1px solid #edf2f7!important;padding:10px 0 0!important;color:#f97316!important;font:800 21px/1.4 Arial,sans-serif!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-price *,body .av-card[data-av-card][data-av-card][data-av-card] .av-price .woocommerce-Price-amount,body .av-card[data-av-card][data-av-card][data-av-card] .av-price bdi,body .av-card[data-av-card][data-av-card][data-av-card] .av-price .woocommerce-Price-currencySymbol{display:inline!important;margin:0!important;border:0!important;padding:0!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-price ins{background:none!important;text-decoration:none!important;color:#f97316!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-price del{color:#64748b!important;font-size:13px!important;margin-right:6px!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-actions{display:grid!important;gap:8px!important;margin:0!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-actions a{display:flex!important;align-items:center!important;justify-content:center!important;position:static!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:9px 5px!important;border:1px solid #2563eb!important;border-radius:7px!important;background:#2563eb!important;color:#fff!important;white-space:normal!important;text-align:center!important;text-decoration:none!important;font:600 13px/1.3 Arial,sans-serif!important;overflow-wrap:anywhere!important;box-shadow:none!important}
body .av-card[data-av-card][data-av-card][data-av-card] .av-actions .av-buy{background:#fff!important;color:#2563eb!important}
body .av-card[data-av-card][data-av-card][data-av-card] a:focus-visible{outline:3px solid #fb923c!important;outline-offset:2px!important}
@media(max-width:1024px){
 body .ahp-home .ahp-products.ahp-products.ahp-products,body.woocommerce-shop ul.products:has(>.av-card),body.tax-product_cat ul.products:has(>.av-card),body.home ul.products:has(>.av-card){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body .ahp-home .ahp-products-layout--carousel .ahp-products.ahp-products.ahp-products{grid-auto-columns:calc((100% - 12px)/2)!important}
}
@media(max-width:767px){
 /* Keep two cards on a phone, but use the available width instead of leaving large side gutters. */
 body.woocommerce-shop ul.products:has(>.av-card),body.tax-product_cat ul.products:has(>.av-card){width:calc(100% - 16px)!important;max-width:none!important;margin:0 auto 28px!important;gap:8px!important}
 body .ahp-home .ahp-products.ahp-products.ahp-products,body.home ul.products:has(>.av-card){gap:8px!important}
 body .ahp-home .ahp-products-layout--carousel .ahp-products.ahp-products.ahp-products{grid-auto-columns:calc((100% - 8px)/2)!important}
 body .ahp-home .ahp-products-layout--carousel .ahp-carousel-controls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin:14px 0 0!important;padding:0!important}
 body .ahp-home .ahp-products-layout--carousel .ahp-carousel-controls button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;margin:0!important;padding:0!important;border:1px solid #cbd5e1!important;border-radius:50%!important;background:#fff!important;color:#2563eb!important;font:700 22px/1 Arial,sans-serif!important;line-height:1!important;opacity:1!important;visibility:visible!important;cursor:pointer!important}
 body .ahp-home .ahp-products-layout--carousel .ahp-carousel-controls button:hover,body .ahp-home .ahp-products-layout--carousel .ahp-carousel-controls button:focus-visible{border-color:#2563eb!important;background:#eff6ff!important;color:#1d4ed8!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-media{height:auto!important;aspect-ratio:1/1!important;padding:0!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-body{padding:10px!important;gap:8px!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-title{height:4.2em!important;min-height:4.2em!important;max-height:4.2em!important;font-size:13px!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-title a{font-size:inherit!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-price{font-size:18px!important}
 body .av-card[data-av-card][data-av-card][data-av-card] .av-actions a{font-size:11px!important}
}
