h1.site-title a,
p.site-title a {
    display: inline-block;
    width: 220px;
    height: 50px;
    background: url(images/logo-graines-des-paix-shop.png) no-repeat center center;
    background-size: contain;
    text-indent: -5000px;
}

@media only screen and (min-width: 992px) {

    h1.site-title a,
    p.site-title a {
        width: 380px;
        height: 90px;
    }
}

/**
 * SHOP
 */
body .wc-block-components-form .wc-block-components-text-input input[type="email"],
body .wc-block-components-form .wc-block-components-text-input input[type="number"],
body .wc-block-components-form .wc-block-components-text-input input[type="password"],
body .wc-block-components-form .wc-block-components-text-input input[type="tel"],
body .wc-block-components-form .wc-block-components-text-input input[type="text"],
body .wc-block-components-form .wc-block-components-text-input input[type="url"],
body .wc-block-components-text-input input[type="email"],
body .wc-block-components-text-input input[type="number"],
body .wc-block-components-text-input input[type="password"],
body .wc-block-components-text-input input[type="tel"],
body .wc-block-components-text-input input[type="text"],
body .wc-block-components-text-input input[type="url"],
body .wc-blocks-components-select .wc-blocks-components-select__select {
    border-color: rgba(var(--wp--preset--color--global--primary), 0.8);
}

body .wp-block-woocommerce-checkout-order-summary-block {
    border-color: rgba(var(--wp--preset--color--global--primary), 0.2);
}

body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    padding: 0 !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: 0.6em 2em 0.5em 2em;
    font-weight: 750;
    border-radius: 4px;
    left: auto;
    color: rgba(var(--main-text-color), 1) !important;
    background-color: rgba(var(--wp--preset--color--global--fourthlight), 1) !important;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    transition: all 0.3s ease-in-out
}

body .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
body .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
body .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
body .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
body :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
body :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
body :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
body :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: rgba(var(--wp--preset--color--global--fourth), 1) !important;
    color: rgba(var(--main-text-color), 1);
    -webkit-font-smoothing: antialiased;
}


body .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
    color: rgba(var(--main-text-color), 1);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    background-color: rgba(var(--wp--preset--color--global--fifth), 1) !important;
    color: rgba(var(--main-text-color), 1);
}

.wc-block-components-main h2,
wc-block-components-main h3,
wc-block-components-main h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.woocommerce ul.products li.product:before,
.woocommerce-page ul.products li.product:before {
    display: none;
}

.woocommerce ul.products li.product .price {
    font-weight: 400;
    font-size: 1.25em;
    color: rgba(var(--main-text-color), 1);
}

body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    font-weight: 400;
    font-size: 1.5em;
    color: rgba(var(--main-text-color), 1);
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    padding: .5em 0;
    margin: 0;
    font-size: 1.25em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}


.home .woocommerce .products {
    display: grid !important;
    align-items: stretch;
    grid-template-columns: repeat(4, 1fr);
    /* ✅ four equal columns */
    gap: 30px;
    /* optional spacing */
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
}

.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: " ";
    display: none !important;
}

.woocommerce ul.products li.product,
.wc-block-product-template li {
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .button,
.wp-block-button.wc-block-components-product-button {
    margin-top: auto;
}

body.single-product .entry-header .entry-title {
    display: block;
}

body.single-product .entry-summary .entry-title {
    display: none;
}

body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .entry-summary p.price,
body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .entry-summary span.price {
    padding-bottom: 1.75em;
    border-bottom: 1px solid rgba(var(--main-text-color), 1);
}

.woocommerce div.product div.images .flex-control-thumbs {
    margin-top: 1.5em;
}

.wc-block-product-template li {
    position: relative;
    padding-left: 0 !important;
}

.wc-block-product-template li::before {
    display: none;
}

@media screen and (min-width: 768px) {
    body.single-product .entry-header .entry-title {
        display: none;
    }

    body.single-product .entry-summary .entry-title {
        display: block;
        padding-bottom: 0.75em;
        border-bottom: 1px solid rgba(var(--main-text-color), 1);
    }
}


/* Desktop: 4 columns */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile landscape: 2 columns */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile small: 1 column */
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}