.ad-slot { margin: 24px 0; }
    .ad-banner { display:block; overflow:hidden; border-radius: var(--radius); }
    .ad-banner img { width:100%; display:block; transition: transform .3s ease; }
    .ad-banner:hover img { transform: scale(1.02); }
    .product-grid > .ad-slot { grid-column: 1 / -1; }

    /* three-up strip (home): fixed height so odd-ratio images don't blow up */
    .ad-slot--home_promo { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
    .ad-slot--home_promo .ad-banner img { height:150px; object-fit:cover; }

    /* full-width single banners: capped height + cover crop (the bug fix) */
    .ad-slot--home_wide, .ad-slot--category_top,
    .ad-slot--cart_top, .ad-slot--plans_top { display:block; }
    .ad-slot--home_wide .ad-banner img, .ad-slot--category_top .ad-banner img,
    .ad-slot--cart_top .ad-banner img, .ad-slot--plans_top .ad-banner img {
        height:180px; object-fit:cover;
    }

    /* flexible category/search middle slot: 1 wide, 2 side-by-side, 3 compact */
    .ad-slot--category_middle { display:grid; gap:16px; margin:18px 0 20px; }
    .ad-slot--category_middle.ad-slot--count-1 { grid-template-columns: 1fr; }
    .ad-slot--category_middle.ad-slot--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-slot--category_middle.ad-slot--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ad-slot--category_middle.ad-slot--count-1 .ad-banner img { height:210px; object-fit:cover; }
    .ad-slot--category_middle.ad-slot--count-2 .ad-banner img { height:170px; object-fit:cover; }
    .ad-slot--category_middle.ad-slot--count-3 .ad-banner img { height:145px; object-fit:cover; }

    /* vertical stack beside the product info (narrow column → natural height) */
    .ad-slot--product_aside { display:flex; flex-direction:column; gap:14px; }
    .ad-slot--product_aside .ad-banner img { height:auto; }

    @media (max-width: 768px) {
        .ad-slot--home_promo { grid-template-columns: 1fr; }
        .ad-slot--home_promo .ad-banner img { height:160px; }
        .ad-slot--home_wide .ad-banner img, .ad-slot--category_top .ad-banner img,
        .ad-slot--cart_top .ad-banner img, .ad-slot--plans_top .ad-banner img { height:120px; }
        .ad-slot--category_middle,
        .ad-slot--category_middle.ad-slot--count-2,
        .ad-slot--category_middle.ad-slot--count-3 { grid-template-columns: 1fr; }
        .ad-slot--category_middle.ad-slot--count-1 .ad-banner img,
        .ad-slot--category_middle.ad-slot--count-2 .ad-banner img,
        .ad-slot--category_middle.ad-slot--count-3 .ad-banner img { height:135px; }
    }

/* 2026-11-22: show the whole banner. Height follows the size suggested in the admin panel
   for each placement, instead of a fixed height that cropped the image. */
.ad-slot--home_promo .ad-banner img { height:auto; aspect-ratio:640/200; object-fit:cover; }
.ad-slot--home_wide .ad-banner img { height:auto; aspect-ratio:1200/300; object-fit:cover; }
.ad-slot--category_top .ad-banner img, .ad-slot--cart_top .ad-banner img,
.ad-slot--plans_top .ad-banner img { height:auto; aspect-ratio:1200/200; object-fit:cover; }
.ad-slot--category_middle.ad-slot--count-1 .ad-banner img { height:auto; aspect-ratio:1200/280; object-fit:cover; }
.ad-slot--category_middle.ad-slot--count-2 .ad-banner img { height:auto; aspect-ratio:600/220; object-fit:cover; }
.ad-slot--category_middle.ad-slot--count-3 .ad-banner img { height:auto; aspect-ratio:400/180; object-fit:cover; }

/* 2026-11-22 (b): cap the height on wide screens; banner content sits in the middle band, so only background is cropped. */
.ad-slot--home_wide .ad-banner img { max-height:250px; }
.ad-slot--category_top .ad-banner img, .ad-slot--cart_top .ad-banner img,
.ad-slot--plans_top .ad-banner img { max-height:170px; }
.ad-slot--category_middle.ad-slot--count-1 .ad-banner img { max-height:220px; }