/* Atelier 0.1.10 — Related products only. Preserve storefront product behavior. */
body.hr-at-product-detail .hr-product-related-section{--hr-related-gap:16px;min-width:0;}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template,ul.products){
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:var(--hr-related-gap)!important;
 align-items:stretch!important;margin:0!important;padding:0!important;list-style:none!important;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template,ul.products)>li{
 min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 background:#fff;border:1px solid #e9e4dd;border-radius:16px;overflow:hidden;
 box-shadow:0 4px 20px rgba(33,41,46,.035);padding:0 0 16px!important;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template,ul.products)>li>:is(.wp-block-group,.wp-block-buttons,.wc-block-components-product-button),
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template)>li>.wp-block-button{
 max-width:100%;min-width:0;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-featured-image,.wc-block-components-product-image,.wc-block-product-image,.wp-block-woocommerce-product-image){
 display:block!important;width:100%!important;max-width:100%!important;
 margin:0 0 12px!important;aspect-ratio:1/1;overflow:hidden;background:#f8f6f2;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-featured-image,.wc-block-components-product-image,.wc-block-product-image,.wp-block-woocommerce-product-image) img,
body.hr-at-product-detail .hr-product-related-section ul.products li.product img{
 display:block;width:100%!important;height:100%!important;aspect-ratio:1/1!important;object-fit:contain!important;
 padding:12px!important;margin:0!important;background:#f8f6f2;
}
/* The original typography selector styled all .wp-block-post-title as H1 — do not repeat that. */
body.hr-at-product-detail .hr-product-related-section :is(h2.wp-block-post-title,h3.wp-block-post-title,.wc-block-components-product-name,.woocommerce-loop-product__title){
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
 font-family:inherit!important;font-size:15px!important;font-weight:750!important;
 line-height:1.45!important;letter-spacing:normal!important;text-transform:none!important;
 margin:0 14px 10px!important;padding:0!important;min-height:43px!important;
 overflow-wrap:anywhere;color:var(--hr-ink,#292d30)!important;
}
body.hr-at-product-detail .hr-product-related-section .wp-block-post-title a{
 font-size:inherit!important;line-height:inherit!important;color:inherit;text-decoration:none;
}
body.hr-at-product-detail .hr-product-related-section :is(.wc-block-components-product-price,.wp-block-woocommerce-product-price,.price){
 font-size:17px!important;line-height:1.4!important;font-weight:750!important;color:#292d30!important;
 margin:0 14px 14px!important;min-height:26px;
}
body.hr-at-product-detail .hr-product-related-section :is(.wc-block-components-product-price,.wp-block-woocommerce-product-price,.price) :is(del,ins){font-size:inherit!important}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-button,.wc-block-components-product-button,.wp-block-woocommerce-product-button){
 margin-top:auto!important;margin-left:14px!important;margin-right:14px!important;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-button__link,.wp-element-button,.wc-block-components-product-button__button,ul.products li.product .button){
 font-size:13px!important;line-height:1.3!important;font-weight:700!important;
 display:flex!important;align-items:center;justify-content:center;
 min-height:42px!important;max-width:100%;width:100%;margin:0!important;padding:10px 12px!important;
 border-radius:10px!important;white-space:normal!important;overflow-wrap:anywhere;
 background:#292d30!important;color:#fff!important;text-decoration:none!important;
}
body.hr-at-product-detail .hr-product-related-section :is(.wp-block-button__link,.wc-block-components-product-button__button):hover{background:#b37b4b!important}
body.hr-at-product-detail .hr-product-related-section .wc-block-components-product-sale-badge,
body.hr-at-product-detail .hr-product-related-section .onsale{
 position:absolute;top:12px;right:12px;z-index:2;
 font-size:11px!important;line-height:1.25!important;background:#f4ece2!important;color:#77502f!important;
 border:1px solid #dcc8ae!important;border-radius:7px!important;padding:5px 8px!important;
}
@media(max-width:1040px){body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template,ul.products){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){body.hr-at-product-detail .hr-product-related-section :is(.wp-block-post-template,.wc-block-product-template,ul.products){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:480px){
 body.hr-at-product-detail .hr-product-related-section :is(h2.wp-block-post-title,h3.wp-block-post-title,.wc-block-components-product-name,.woocommerce-loop-product__title){font-size:13px!important;min-height:38px!important;margin:0 10px 8px!important}
 body.hr-at-product-detail .hr-product-related-section :is(.wc-block-components-product-price,.wp-block-woocommerce-product-price,.price){font-size:14px!important;margin:0 10px 12px!important}
 body.hr-at-product-detail .hr-product-related-section :is(.wp-block-button,.wc-block-components-product-button,.wp-block-woocommerce-product-button){margin-left:10px!important;margin-right:10px!important}
 body.hr-at-product-detail .hr-product-related-section :is(.wp-block-button__link,.wp-element-button,.wc-block-components-product-button__button){font-size:12px!important;padding:9px 6px!important}
}
@media(max-width:360px){body.hr-at-product-detail .hr-product-related-section{--hr-related-gap:8px}}
@media(prefers-reduced-motion:reduce){body.hr-at-product-detail .hr-product-related-section li{transition:none!important;transform:none!important}}
