/* 23 October: independent product slots and shared small home-card brand marks. */
.home-page .products-editorial{align-items:stretch}
.home-page .product-max{grid-template-columns:minmax(0,1fr) minmax(100px,27%);grid-template-rows:1fr auto auto;align-items:start;column-gap:20px;row-gap:22px}
.home-page .product-max>.product-packshot{position:relative;inset:auto;align-self:center;justify-self:center;width:100%;height:auto;max-height:340px;object-fit:contain;margin:0}
.home-page .product-aerosol{display:grid;grid-template-rows:auto 1fr auto auto auto;gap:18px;align-content:start}
.home-page .aerosol-main{grid-template-columns:minmax(0,1fr) minmax(50px,22%);gap:16px;align-items:center;margin:0}
.home-card-art,.home-card-pack{position:relative;min-width:0;width:100%;display:flex;justify-content:center;align-items:center}
.home-page .home-card-pack>img{position:relative;inset:auto;width:auto;height:306px;max-width:100%;max-height:306px;object-fit:contain;transform:none;margin:0}
.home-page .home-product-marks{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);align-items:center;gap:20px;width:min(100%,340px);margin:0;align-self:end;min-width:0}
.home-page .home-product-marks img{position:static;display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;transform:none;margin:0}
.home-page .product-actions{grid-column:1/-1;align-self:end;display:flex;flex-direction:column;justify-content:flex-start;gap:0;margin:0;height:auto}
.home-page .product-actions>*{flex:none}
.home-page .home-card-comparison{font-size:12px;line-height:1.4;margin:0;align-self:end;color:var(--green-dark)}
/* Selection pages use a single, intrinsically proportioned packshot, without medals. */
.aerosol-selection-art,.aerosol-selection-pack{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:auto;margin:0;padding:0}
body .aerosol-selection-pack>img{position:relative;inset:auto;display:block;width:auto;max-width:100%;height:auto;max-height:none;object-fit:contain;margin:0;transform:none}
.catalog-aerosol .aerosol-selection-pack>img{height:400px;width:auto}
.hub-product.hub-aerosol{grid-template-columns:minmax(0,1fr) 26%;align-items:center}
.hub-aerosol .hub-product-art{display:flex;align-items:center;justify-content:center;height:auto;width:100%;padding:0}
.hub-aerosol .aerosol-selection-pack>img{height:300px;width:auto;max-width:100%}
.faq-product.faq-product-aerosol{grid-template-columns:minmax(0,1fr) 25%;align-items:center}
.faq-product-aerosol .aerosol-selection-pack>img{height:300px;width:auto;max-width:100%}
.faq-product-max .faq-max-pack{height:auto;max-width:180px;width:100%;justify-self:center}
.faq-product-max .faq-max-pack .faq-pack{height:auto;width:100%;max-height:335px;object-fit:contain}
/* Detail: 20% smaller medals, moved toward the product; ribbon follows the same edge. */
.detail-hero-aerosol .aerosol-medals{width:80%;max-width:184px;justify-self:end;margin-right:0}
.detail-hero-aerosol .aerosol-detail-ribbon{justify-self:end;margin-left:0;margin-right:0}
@media(max-width:1100px){
 .home-page .product-max{column-gap:12px}
 .catalog-aerosol .aerosol-selection-pack>img{height:330px}
 .hub-aerosol .aerosol-selection-pack>img,.faq-product-aerosol .aerosol-selection-pack>img{height:260px}
}
@media(max-width:800px){
 .hub-product.hub-aerosol,.faq-product.faq-product-aerosol{grid-template-columns:minmax(0,1fr) 32%;gap:16px}
 .hub-aerosol .aerosol-selection-pack>img,.faq-product-aerosol .aerosol-selection-pack>img{height:190px;width:auto;max-width:100%}
 .faq-product-max .faq-max-pack{max-width:140px}
 .catalog-aerosol .aerosol-selection-pack>img{height:230px}
}
@media(max-width:760px){
 .home-page .product-max{grid-template-columns:minmax(0,1fr) 32%;row-gap:20px}
 .home-page .product-max>.product-packshot{height:auto;max-height:260px;width:100%}
 .home-page .home-card-pack>img{height:230px;max-height:230px}
 .home-page .home-product-marks{gap:16px}
 .detail-hero-aerosol .aerosol-medals{width:80%;max-width:184px;justify-self:end}
 .detail-hero-aerosol .aerosol-detail-ribbon{justify-self:end}
}
@media(max-width:380px){
 .home-page .product-max{column-gap:10px}
 .home-page .aerosol-main{gap:12px;grid-template-columns:minmax(0,1fr) 22%}
 .home-page .home-card-pack>img{height:200px;max-height:200px}
 .hub-product.hub-aerosol,.faq-product.faq-product-aerosol{gap:12px}
 .hub-aerosol .aerosol-selection-pack>img,.faq-product-aerosol .aerosol-selection-pack>img{height:160px}
}
/* Match the home cards' action rows and reserve the footnote line on both sides. */
@media(min-width:761px){
 .home-page .product-max,.home-page .product-aerosol{padding:28px;row-gap:18px}
 .home-page .product-max{grid-template-rows:1fr auto auto auto}
 .home-page .product-max::after{content:"";grid-column:1/-1;height:16.8px}
 .home-page .hero-home-art{height:570px;min-height:570px}
 .home-page .hero-home-art>.hero-max-pack{margin-bottom:0}
}
@media(min-width:761px) and (max-width:1100px){
 .home-page .hero-home-art{height:505px;min-height:505px}
}
