/* Bait Baitk — CLS/layout stability patch, 2026-05-04. Reversible. */
@media (min-width: 901px) {
  body.home .bbk-hero-v2 {
    min-height: 560px !important;
    contain: layout paint !important;
    isolation: isolate !important;
  }
  body.home .bbk-hero-v2::before,
  body.home .bbk-hero-v2::after {
    display: none !important;
    content: none !important;
  }
  body.home .bbk-hero-v2__visual,
  body.home .bbk-hero-v2__collage {
    min-height: 480px !important;
    aspect-ratio: 1 / 1 !important;
  }
  body.home .bbk-hero-v2__img,
  body.home .bbk-hero-v2__img--main,
  body.home .bbk-hero-v2__img--side1,
  body.home .bbk-hero-v2__img--side2 {
    will-change: auto !important;
    backface-visibility: hidden !important;
    display: block !important;
    max-width: none !important;
  }
  body.home .bbk-hero-v2__img--main {
    top: 0 !important;
    right: 0 !important;
    width: min(82%, 560px) !important;
    height: 394px !important;
    aspect-ratio: 4 / 3 !important;
  }
  body.home .bbk-hero-v2__img--side1 {
    bottom: 0 !important;
    left: 0 !important;
    width: 250px !important;
    height: 250px !important;
    aspect-ratio: 1 / 1 !important;
  }
  body.home .bbk-hero-v2__img--side2 {
    top: 48px !important;
    left: 28px !important;
    width: 154px !important;
    height: 154px !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 769px) {
  body.post-type-archive-product .category-cards-section,
  body.woocommerce-shop .category-cards-section,
  body.post-type-archive-product .category-cards-grid,
  body.woocommerce-shop .category-cards-grid {
    contain: layout paint !important;
  }
  body.post-type-archive-product .category-cards-grid,
  body.woocommerce-shop .category-cards-grid {
    align-items: stretch !important;
  }
  body.post-type-archive-product .category-card,
  body.woocommerce-shop .category-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 300px !important;
    overflow: hidden !important;
  }
  body.post-type-archive-product .category-card img,
  body.woocommerce-shop .category-card img {
    display: block !important;
    width: 100% !important;
    height: clamp(160px, 16vw, 230px) !important;
    object-fit: cover !important;
    aspect-ratio: 4 / 3 !important;
  }
  body.post-type-archive-product .category-card .card-content,
  body.woocommerce-shop .category-card .card-content {
    min-height: 112px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .woocommerce ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }
}
