/* All shop collections visible together; no carousel. */
body:is(.woocommerce-shop, .home) .top-categories { width: 100%; padding: 28px 0 36px; }
body:is(.woocommerce-shop, .home) .top-categories h2.title { margin: 0 0 28px; color: #152b2b; font-size: 26px; }
body:is(.woocommerce-shop, .home) .top-categories ul.products { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 24px; width: 100%; margin: 0 !important; padding: 0 !important; }
body:is(.woocommerce-shop, .home) .top-categories ul.products::before, body:is(.woocommerce-shop, .home) .top-categories ul.products::after { display: none !important; }
body:is(.woocommerce-shop, .home) .top-categories ul.products li.product-category { flex: 1 1 0; min-width: 0; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
body:is(.woocommerce-shop, .home) .top-categories .archive-img-wrap { width: min(100%, 160px) !important; height: auto !important; aspect-ratio: 1; padding: 0 !important; margin: 0 auto !important; }
body:is(.woocommerce-shop, .home) .top-categories .archive-img-wrap img { width: 100% !important; height: 100% !important; object-fit: contain; box-shadow: none !important; transition: box-shadow .2s ease; }
body:is(.woocommerce-shop, .home) .top-categories .woocommerce-loop-category__title { font-size: 14px !important; font-weight: 400; margin-top: 0 !important; line-height: 1.4; color: #111111 !important; padding: 14px 0 0 !important; }
body:is(.woocommerce-shop, .home) .top-categories a:hover .woocommerce-loop-category__title { color: #111111 !important; }
body:is(.woocommerce-shop, .home) .top-categories .modal-opener, body:is(.woocommerce-shop, .home) .top-categories .count { display: none !important; }
@media(max-width: 800px) { body:is(.woocommerce-shop, .home) .top-categories ul.products { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 16px; } }
@media(max-width: 480px) { body:is(.woocommerce-shop, .home) .top-categories ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* A restrained, centered thumbnail instead of the offset turquoise ring. */
body:is(.woocommerce-shop, .home) .top-categories ul.products li.product-category:hover img { box-shadow: 0 3px 12px rgba(16, 43, 43, .06) !important; }

/* Home uses the same wrapping collection grid as the shop. */
body.home .top-categories { width: calc(100% - 64px); max-width: 1176px; margin: 0 auto; }
body.home .top-categories > .wp-block-group__inner-container,
body.home .top-categories .woocommerce { width: 100% !important; max-width: none; }
body.home .top-categories h2.wp-block-heading { margin-bottom: 32px; }
@media (max-width: 700px) { body.home .top-categories { width: calc(100% - 40px); } }

/* A shared neutral disc also works with the white-backed collection photos. */
body:is(.woocommerce-shop, .home) .top-categories .archive-img-wrap {
 background-color: #f8f8f8 !important;
 border-radius: 50%;
 overflow: hidden;
 isolation: isolate;
}
body:is(.woocommerce-shop, .home) .top-categories .archive-img-wrap img[src*=".jpg"] {
 mix-blend-mode: multiply;
}

body:is(.woocommerce-shop, .home) .top-categories .archive-img-wrap img { background-color: transparent !important; }

/* Balanced spacing between the model feature, collections and trending products. */
body.home .top-categories { margin-top: 0; margin-bottom: 0; padding-top: 56px; padding-bottom: 56px; }
body.home .top-categories h2.wp-block-heading { margin-top: 0; margin-bottom: 32px; }
body.home .top-categories + .trending { margin-top: 0; padding-top: 0; }
body.home .top-categories + .trending h2.wp-block-heading { margin-top: 0; }
@media (max-width: 700px) {
 body.home .top-categories { margin-top: 0; padding-top: 36px; padding-bottom: 40px; }
 body.home .top-categories h2.wp-block-heading { margin-bottom: 24px; }
}
