/* Compact Stacks cards: smaller images, 5 across on desktop, 2 on phone (homepage + /stacks, EN+ES). */
.home-top20 .home-stack-grid,.home-stack-grid,section .home-stack-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.8rem}
.home-stack-grid .product-card-media,.home-top20 .home-stack-grid .product-card-media{aspect-ratio:auto;min-height:0;height:150px;padding:.5rem .4rem 0}
.home-stack-grid .product-card-media img,.home-top20 .home-stack-grid .product-card-media img{max-height:140px;height:140px;width:auto;margin:0 auto}
.home-stack-grid .product-card-body{padding:.6rem .7rem .75rem;font-size:.92em}
.stack-grid[data-astro-cid-raasszk2]{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.8rem}
.stack-card__media[data-astro-cid-raasszk2],.stack-card .product-card-media{aspect-ratio:auto!important;height:160px;display:grid;place-items:center}
.stack-card__media img,.stack-card .product-card-media img{height:150px!important;width:auto!important;max-width:100%;object-fit:contain}
.stack-card__body[data-astro-cid-raasszk2]{padding:.65rem .75rem .8rem;font-size:.92em}
@media (max-width:1100px){.home-stack-grid,.home-top20 .home-stack-grid,.stack-grid[data-astro-cid-raasszk2]{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:768px){
 .home-stack-grid,.home-top20 .home-stack-grid,.stack-grid[data-astro-cid-raasszk2]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.6rem;overflow:visible!important}
 .home-stack-grid>*{width:auto!important;min-width:0!important;max-width:none!important}
 .home-stack-grid .product-card-media,.stack-card__media[data-astro-cid-raasszk2],.stack-card .product-card-media{height:120px}
 .home-stack-grid .product-card-media img,.stack-card__media img,.stack-card .product-card-media img{height:112px!important;max-height:112px}
 .home-single-grid>article:nth-of-type(n+7){display:none!important}
 .home-see-all{display:flex!important}
}
.home-see-all{display:none;justify-content:center;margin:1rem auto 0;width:max-content}
@media (max-width:768px){
 html.m-b.m-home .home-stack-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;scroll-snap-type:none}
 html.m-b.m-home .home-stack-grid>.product-card{flex:none;width:auto;min-width:0}
}
/* Desktop: clamp stack card descriptions to 3 lines (full text on the guide). */
@media (min-width:0px){.stack-grid p.muted,.stack-card p.muted{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
.home-stack-grid .pep-key-info p{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* v7 Stacks card redesign: bigger vials, 2 pills in a row, 1-line name/status/desc, equal-height cards with actions at bottom. */
.home-stack-grid,.home-top20 .home-stack-grid,.stack-grid[data-astro-cid-raasszk2]{gap:1.1rem!important;align-items:stretch}
.home-stack-grid>.product-card,.stack-grid>.product-card{display:flex!important;flex-direction:column;height:100%;min-width:0}
.home-stack-grid .product-card-media,.home-top20 .home-stack-grid .product-card-media,.stack-card__media[data-astro-cid-raasszk2],.stack-grid .product-card-media{height:232px!important;aspect-ratio:auto!important;min-height:0;padding:.5rem .4rem 0;display:grid;place-items:center}
.home-stack-grid .product-card-media img,.home-top20 .home-stack-grid .product-card-media img,.stack-grid .product-card-media img{height:220px!important;max-height:220px!important;width:auto!important;max-width:100%!important;object-fit:contain;margin:0 auto}
.home-stack-grid .product-card-body,.stack-grid .product-card-body{flex:1;display:flex;flex-direction:column;padding:.7rem .8rem .85rem;min-width:0}
.home-stack-grid .pep-key-panel,.stack-grid .pep-key-panel{flex:1;display:flex;flex-direction:column;gap:.3rem;min-width:0}
.home-stack-grid .pep-key-brand,.stack-grid .pep-key-brand{order:1;margin:0}
.home-stack-grid .pep-key-name,.stack-grid .pep-key-name{order:2;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0}
.home-stack-grid .pep-key-status,.stack-grid .pep-key-status{order:3;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:.68rem!important;font-weight:500!important;background:transparent!important;border:0!important;padding:0!important;color:#9f4a63!important;opacity:.85}
.home-stack-grid .pep-key-tags,.stack-grid .pep-key-tags{order:4;display:flex!important;flex-wrap:nowrap!important;flex-direction:row!important;gap:.3rem;margin:.1rem 0 0;padding:0;overflow:hidden;min-width:0}
.home-stack-grid .pep-key-tag,.stack-grid .pep-key-tag{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.7rem!important;padding:.15rem .5rem!important;margin:0!important}
.home-stack-grid .pep-key-tag:nth-child(n+3),.stack-grid .pep-key-tag:nth-child(n+3){display:none!important}
.home-stack-grid .pep-key-info,.stack-grid .pep-key-info,.stack-grid .pep-key-panel>p.muted{order:5;margin:.1rem 0 0!important}
.home-stack-grid .pep-key-info summary{font-size:.72rem}
.home-stack-grid .pep-key-info p,.stack-grid p.muted{-webkit-line-clamp:1!important;line-clamp:1!important;font-size:.82rem!important;margin:.1rem 0 0!important}
.home-stack-grid .vial-sizes,.stack-grid .vial-sizes{order:6;margin-top:auto!important;padding-top:.5rem}
.home-stack-grid .pep-key-guide,.stack-grid .pep-key-guide{order:7;margin:0}
@media (max-width:768px){
 .home-stack-grid,.home-top20 .home-stack-grid,.stack-grid[data-astro-cid-raasszk2]{gap:.75rem!important}
 .home-stack-grid .product-card-media,.home-top20 .home-stack-grid .product-card-media,.stack-card__media[data-astro-cid-raasszk2],.stack-grid .product-card-media{height:186px!important}
 .home-stack-grid .product-card-media img,.home-top20 .home-stack-grid .product-card-media img,.stack-grid .product-card-media img{height:176px!important;max-height:176px!important}
 .home-stack-grid .product-card-body,.stack-grid .product-card-body{padding:.6rem .6rem .7rem}
}
.home-stack-grid details.pep-key-info::details-content{content-visibility:visible;display:block;height:auto}
.home-stack-grid .pep-key-name,.stack-grid .pep-key-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
.home-stack-grid .pep-key-name,.stack-grid .pep-key-name{font-size:.95rem!important;line-height:1.25!important}
@media (max-width:768px){.home-stack-grid .pep-key-name,.stack-grid .pep-key-name{font-size:.82rem!important}}
