.category-page-heading>.capsule-category-media{width:100%;margin:18px 0 24px}

/* Compact capsule category layout; the video keeps its complete 16:9 frame. */
.category-page-heading.capsule-category-hero>.capsule-category-media{width:100%;max-width:480px;margin:18px auto 24px;padding:0}
.capsule-category-hero>.capsule-category-media>.capsule-player{width:100%;max-width:480px;margin:0}
.capsule-category-hero .capsule-video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.capsule-category-products.section{padding-top:20px;padding-bottom:32px}
.capsule-category-products>.product-grid.category-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.capsule-category-products .capsule-text-card{align-self:stretch}
.capsule-category-products .capsule-text-card>.card-link{height:100%}
.capsule-category-products .card-info{padding:22px 24px}
.capsule-category-products .capsule-text-card .card-info h3{font-size:20px;line-height:1.5;min-height:0;margin:0 0 18px}
.capsule-category-products .capsule-text-card .card-prices{margin-top:auto}
.capsule-category-products [data-card-id="suppository-molds"]{grid-column:1/-1}
.capsule-category-products [data-card-id="suppository-molds"]>.card-link{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:center;height:auto}
.capsule-category-products [data-card-id="suppository-molds"] .card-image{width:144px;height:144px;min-height:0;background:transparent}
.capsule-category-products [data-card-id="suppository-molds"] .card-image>img{width:120px;height:120px;object-fit:contain;filter:none;transform:none}
.capsule-category-products [data-card-id="suppository-molds"] .card-open{display:none}
.capsule-category-products [data-card-id="suppository-molds"] .card-info h3{min-height:0;margin-bottom:12px;font-size:20px;line-height:1.5}
.capsule-category-products [data-card-id="suppository-molds"] .card-prices{max-width:360px;margin-top:0}
.capsule-category-products [data-card-id="suppository-molds"] .card-details{max-width:360px}
@media(min-width:960px){
 .category-page-heading.capsule-category-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,min(54%,640px));column-gap:clamp(28px,4vw,64px);row-gap:12px;align-items:start;padding-bottom:5px!important}
 .capsule-category-hero>.eyebrow{grid-column:1;grid-row:1;margin:0}
 .capsule-category-hero>h1{grid-column:1;grid-row:2;margin:0}
 .category-page-heading.capsule-category-hero>.capsule-category-media{grid-column:2;grid-row:1/5;justify-self:end;align-self:start;max-width:640px;margin:0}
 .capsule-category-hero>.capsule-category-media>.capsule-player{max-width:640px}
 .capsule-category-hero>p:not(.eyebrow):not(.mold-category-intro){grid-column:1;grid-row:3;margin:0}
 .capsule-category-hero>.mold-category-intro{grid-column:1;grid-row:4;max-width:56ch;margin:0}
 .capsule-category-hero>.category-nav{grid-column:1/-1;grid-row:5;margin:20px 0 8px}
 .capsule-category-hero>.text-link{grid-column:1/-1;grid-row:6;justify-self:start}
}
@media(max-width:959px){.capsule-category-products>.product-grid.category-products{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){
 .capsule-category-products>.product-grid.category-products{grid-template-columns:minmax(0,1fr);gap:16px}
 .capsule-category-products .card-info{padding:20px}
 .capsule-category-products .capsule-text-card .card-info h3{font-size:20px}
 .capsule-category-products [data-card-id="suppository-molds"]>.card-link{grid-template-columns:104px minmax(0,1fr)}
 .capsule-category-products [data-card-id="suppository-molds"] .card-image{width:104px;height:120px}
 .capsule-category-products [data-card-id="suppository-molds"] .card-image>img{width:88px;height:104px}
 .capsule-category-products [data-card-id="suppository-molds"] .card-info{padding:18px 16px}
 .capsule-category-products [data-card-id="suppository-molds"] .card-info h3{font-size:17px;line-height:1.5}
}

/* The category links and search use the space beside the film on broad desktops. */
@media(min-width:1200px){
 .category-page-heading.capsule-category-hero{grid-template-columns:minmax(0,1fr) minmax(0,min(56%,720px));grid-template-rows:auto auto auto auto auto minmax(0,1fr);row-gap:12px}
 .category-page-heading.capsule-category-hero>.capsule-category-media{grid-row:1/7;max-width:720px}
 .capsule-category-hero>.capsule-category-media>.capsule-player{max-width:720px}
 .capsule-category-hero>.category-nav{grid-column:1;grid-row:5;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;min-width:0;max-width:100%;margin:4px 0 0}
 .capsule-category-hero>.category-nav>a{font-size:13px;line-height:1.35;padding:8px 12px;white-space:normal}
 .capsule-category-hero>.text-link{grid-column:1;grid-row:6;align-self:start;margin:0}
}
/* Only the capsule category uses a compact native category picker on phones/tablets. */
.capsule-category-hero>.capsule-category-select{display:none}
@media(max-width:959px){
 .capsule-category-hero>.capsule-category-select.is-ready{display:block;min-width:0;max-width:100%;margin:20px 0 12px}
 .capsule-category-hero>.capsule-category-select>label{display:block;margin:0 0 6px;font-size:14px;line-height:1.4;font-weight:600}
 .capsule-category-hero>.capsule-category-select>select{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:48px;padding:10px 40px 10px 14px;border:1px solid #c8ccbd;border-radius:8px;background-color:#fffdf7;color:inherit;font:inherit;font-size:16px;line-height:1.4}
 .capsule-category-hero.has-capsule-category-select>.category-nav{display:none}
}
