/* Spacing between cards on both storefront themes. */
:root {
    --gtt-product-card-gap: 12px;
}

.home .gtt-home-recs .gtt-home-recs-grid {
    gap: var(--gtt-product-card-gap);
}

body.wp-theme-maxstore #main-content .top_viewed_cates .list_cates > .swiper-slide {
    gap: var(--gtt-product-card-gap);
}

body.wp-theme-maxstore #main-content ul.products:not(.swiper-wrapper, .slick-track):has(> li:is(.type-product, .product, .product_cod_icon)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gtt-product-card-gap);
}

body.wp-theme-maxstore #main-content ul.products:not(.swiper-wrapper, .slick-track):has(> li:is(.type-product, .product, .product_cod_icon))::before,
body.wp-theme-maxstore #main-content ul.products:not(.swiper-wrapper, .slick-track):has(> li:is(.type-product, .product, .product_cod_icon))::after {
    content: none;
}

body.wp-theme-maxstore #main-content ul.products:not(.swiper-wrapper, .slick-track):has(> li:is(.type-product, .product, .product_cod_icon))
    > :is(li.type-product, li.product, li.product_cod_icon, .gtt-catalog-suggestion, .product_count_total) {
    width: auto;
    min-width: 0;
    margin: 0;
}

body.wp-theme-shopping .top_viewed_cates .list_cates > .swiper-slide,
body.wp-theme-shopping #wpo-main-content .products > .row:not(.swiper-wrapper):has(> .type-product.cus-col-5),
body.wp-theme-shopping .products.top_like_product:not(.swiper-container-initialized, .swiper-initialized) > .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--gtt-product-card-gap);
    align-content: start;
}

body.wp-theme-shopping .top_viewed_cates .list_cates > .swiper-slide,
body.wp-theme-shopping .top_viewed_cates .list_cates .cate_item {
    margin: 0;
}

body.wp-theme-shopping .top_viewed_cates .list_cates .cate_item {
    width: auto;
    min-width: 0;
}

body.wp-theme-shopping #wpo-main-content .products > .row:not(.swiper-wrapper):has(> .type-product.cus-col-5)::before,
body.wp-theme-shopping #wpo-main-content .products > .row:not(.swiper-wrapper):has(> .type-product.cus-col-5)::after,
body.wp-theme-shopping .products.top_like_product:not(.swiper-container-initialized, .swiper-initialized) > .swiper-wrapper::before,
body.wp-theme-shopping .products.top_like_product:not(.swiper-container-initialized, .swiper-initialized) > .swiper-wrapper::after {
    content: none;
}

body.wp-theme-shopping #wpo-main-content .products > .row:not(.swiper-wrapper):has(> .type-product.cus-col-5)
    > :is(.type-product, .gtt-catalog-suggestion, .product_count_total),
body.wp-theme-shopping .products.top_like_product:not(.swiper-container-initialized, .swiper-initialized)
    > .swiper-wrapper > :is(.type-product, .product_count_total) {
    width: auto;
    min-width: 0;
    margin: 0;
}

body.wp-theme-shopping #wpo-main-content .products > .row:not(.swiper-wrapper):has(> .type-product.cus-col-5),
body.wp-theme-shopping .products.top_like_product:not(.swiper-container-initialized, .swiper-initialized) > .swiper-wrapper {
    padding-top: var(--gtt-product-card-gap);
}
