:root {
    --sbs-blue: #2877ff;
    --sbs-navy: #10243c;
    --sbs-muted: #60748b;
    --sbs-line: #e3eaf3;
    --sbs-surface: #ffffff;
}

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main {
    background: #f5f8fc;
}

body.woocommerce-shop .site-main > .ct-container,
body.tax-product_cat .site-main > .ct-container {
    padding-top: 42px !important;
    padding-bottom: 72px !important;
}

.sbs-shop-intro {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    padding: 46px 52px;
    border: 1px solid #dce8fb;
    border-radius: 26px;
    background:
        radial-gradient(circle at 91% 14%, rgba(40, 119, 255, .22) 0 6px, transparent 7px),
        radial-gradient(circle at 86% 29%, rgba(40, 119, 255, .12) 0 5px, transparent 6px),
        linear-gradient(118deg, #fff 0%, #f7faff 55%, #e9f3ff 100%);
    box-shadow: 0 18px 50px rgba(30, 69, 118, .08);
}

.sbs-shop-intro::after {
    position: absolute;
    right: -82px;
    bottom: -135px;
    width: 310px;
    height: 310px;
    border: 46px solid rgba(40, 119, 255, .09);
    border-radius: 50%;
    content: "";
}

.sbs-shop-intro__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sbs-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
}

.sbs-shop-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: var(--sbs-navy);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.sbs-shop-intro p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--sbs-muted);
    font-size: 18px;
    line-height: 1.65;
}

body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.woocommerce-shop .woo-listing-top:empty,
body.tax-product_cat .woo-listing-top:empty {
    display: none !important;
}

body.woocommerce-shop ul.products.columns-6,
body.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

body.woocommerce-shop ul.products li.product-category.product,
body.tax-product_cat ul.products li.product {
    position: relative;
    min-width: 0;
    margin: 0 !important;
    padding: 15px !important;
    overflow: hidden;
    border: 1px solid var(--sbs-line);
    border-radius: 20px;
    background: var(--sbs-surface);
    box-shadow: 0 12px 35px rgba(23, 55, 93, .06);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.woocommerce-shop ul.products li.product-category.product:hover,
body.tax-product_cat ul.products li.product:hover {
    z-index: 2;
    border-color: #bdd4f7;
    box-shadow: 0 20px 48px rgba(23, 55, 93, .13);
    transform: translateY(-5px);
}

body.woocommerce-shop ul.products li.product-category figure,
body.tax-product_cat ul.products li.product figure {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 18px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(145deg, #fafbfd, #f1f5f9);
}

body.woocommerce-shop ul.products li.product-category figure a,
body.tax-product_cat ul.products li.product figure a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.woocommerce-shop ul.products li.product-category figure img,
body.tax-product_cat ul.products li.product figure img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease;
}

body.woocommerce-shop ul.products li.product-category:hover figure img,
body.tax-product_cat ul.products li.product:hover figure img {
    transform: scale(1.035);
}

body.woocommerce-shop .woocommerce-loop-category__title {
    min-height: 105px;
    margin: 0 !important;
    padding: 20px 5px 4px !important;
    color: var(--sbs-navy) !important;
    font-size: 19px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.woocommerce-shop .woocommerce-loop-category__title a {
    color: inherit !important;
}

body.woocommerce-shop .woocommerce-loop-category__title a::after {
    display: block;
    margin-top: 11px;
    color: var(--sbs-blue);
    content: "Découvrir  →";
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

body.woocommerce-shop .woocommerce-loop-category__title mark.count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf2ff !important;
    color: var(--sbs-blue) !important;
    font-size: 12px !important;
    font-weight: 800;
    vertical-align: 2px;
}

body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
    margin-top: 17px !important;
    color: var(--sbs-navy) !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
}

body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
    color: var(--sbs-muted);
}

body.sbs-category-hub ul.products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px)) !important;
    justify-content: center !important;
    max-width: 820px;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.sbs-category-hub ul.products li.product-category.product {
    min-height: 470px;
}

body.sbs-category-hub .woocommerce-loop-category__title {
    margin: 0 !important;
    padding: 21px 6px 8px !important;
    color: var(--sbs-navy) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.sbs-category-hub .woocommerce-loop-category__title a {
    color: inherit !important;
}

body.sbs-category-hub .woocommerce-loop-category__title a::after {
    display: block;
    margin-top: 12px;
    color: var(--sbs-blue);
    content: "Voir les produits  →";
    font-size: 13px;
    font-weight: 800;
}

body.sbs-category-hub .woocommerce-loop-category__title mark.count {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf2ff !important;
    color: var(--sbs-blue) !important;
    font-size: 12px !important;
    vertical-align: 2px;
}

@media (max-width: 1100px) {
    body.woocommerce-shop ul.products.columns-6,
    body.tax-product_cat ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.woocommerce-shop .site-main > .ct-container,
    body.tax-product_cat .site-main > .ct-container {
        padding-top: 24px !important;
        padding-bottom: 46px !important;
    }

    .sbs-shop-intro {
        margin-bottom: 24px;
        padding: 34px 26px;
        border-radius: 20px;
    }

    .sbs-shop-intro p {
        font-size: 16px;
    }

    body.woocommerce-shop ul.products.columns-6,
    body.tax-product_cat ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body.woocommerce-shop ul.products li.product-category.product,
    body.tax-product_cat ul.products li.product {
        padding: 10px !important;
        border-radius: 16px;
    }

    body.woocommerce-shop .woocommerce-loop-category__title {
        min-height: 99px;
        padding-top: 15px !important;
        font-size: 16px !important;
    }

    body.sbs-category-hub ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 430px;
    }

    body.sbs-category-hub ul.products li.product-category.product {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    body.woocommerce-shop ul.products.columns-6,
    body.tax-product_cat ul.products {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-shop .woocommerce-loop-category__title {
        min-height: 0;
    }
}
