/* Product actions on the home and shop product grids. */
.et_pb_shop .products li.product .produro-loop-add-to-cart {
    clear: both;
    margin-top: 16px;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart .button {
    display: inline-flex;
    width: 215px;
    max-width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 10px !important;
    border: 2px solid #336633;
    border-radius: 3px;
    background: #336633;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35 !important;
    text-align: center;
    white-space: nowrap;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart .button:hover,
.et_pb_shop .products li.product .produro-loop-add-to-cart .button:focus-visible {
    padding: 8px 10px !important;
    border-color: #244a24;
    background: #244a24;
    color: #ffffff !important;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart .button::after {
    display: none;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart .added_to_cart.wc-forward {
    display: none !important;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart.is-out-of-stock .button {
    border-color: #718254;
    background: #718254;
}

.et_pb_shop .products li.product .produro-loop-add-to-cart.is-out-of-stock .button:hover,
.et_pb_shop .products li.product .produro-loop-add-to-cart.is-out-of-stock .button:focus-visible {
    border-color: #596842;
    background: #596842;
}

/* Center and vertically stack product-card content on the home page only. */
body.home .et_pb_shop ul.products li.product {
    text-align: center;
}

body.home .et_pb_shop ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.home .et_pb_shop ul.products li.product .et_shop_image,
body.home .et_pb_shop ul.products li.product .woocommerce-loop-product__title,
body.home .et_pb_shop ul.products li.product .price {
    display: block;
    width: 100%;
    clear: both;
    text-align: center;
}

body.home .et_pb_shop ul.products li.product .woocommerce-loop-product__title {
    display: flex;
    height: 78px;
    align-items: center;
    justify-content: center;
    padding: 0 4px 10px;
    line-height: 1.35;
}

body.home .et_pb_shop ul.products li.product .star-rating {
    display: block;
    min-height: 18px;
    clear: both;
    float: none;
    margin: 0 auto 8px;
}

body.home .et_pb_shop ul.products li.product .price {
    display: flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

body.home .et_pb_shop ul.products li.product .produro-loop-add-to-cart {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* Quantity stepper beside the add-to-cart button on product pages. */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product form.cart .woocommerce-variation-add-to-cart {
    display: inline-flex !important;
    width: auto;
    max-width: 100%;
    align-items: stretch;
    flex-flow: row nowrap !important;
    gap: 10px;
}

.single-product div.product form.cart:not(.variations_form)::before,
.single-product div.product form.cart:not(.variations_form)::after,
.single-product div.product form.cart .woocommerce-variation-add-to-cart::before,
.single-product div.product form.cart .woocommerce-variation-add-to-cart::after {
    display: none;
}

.single-product div.product form.cart div.quantity {
    display: inline-flex !important;
    flex: 0 0 auto;
    float: none !important;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
    border: 2px solid #66cc33;
    border-radius: 3px;
}

.single-product div.product form.cart div.quantity .qty {
    width: 52px;
    min-height: 48px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-right: 1px solid #b7c7ae;
    border-left: 1px solid #b7c7ae;
    border-radius: 0;
    background: #ffffff;
    color: #243424;
    font-weight: 600;
    appearance: textfield;
}

.single-product div.product form.cart div.quantity .qty::-webkit-inner-spin-button,
.single-product div.product form.cart div.quantity .qty::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.single-product div.product form.cart .produro-quantity-step {
    width: 42px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: #66cc33 !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.single-product div.product form.cart .produro-quantity-step:hover,
.single-product div.product form.cart .produro-quantity-step:focus-visible {
    background: #55b52b !important;
}

.single-product div.product form.cart .produro-quantity-step:disabled {
    background: #66cc33 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.65;
}

.single-product div.product form.cart .single_add_to_cart_button {
    flex: 0 0 auto;
    float: none !important;
    margin: 0 !important;
    border-color: #66cc33 !important;
    background: #66cc33 !important;
    color: #ffffff !important;
    white-space: nowrap;
}

.single-product div.product form.cart .single_add_to_cart_button:hover,
.single-product div.product form.cart .single_add_to_cart_button:focus-visible {
    border-color: #55b52b !important;
    background: #55b52b !important;
    color: #ffffff !important;
}

/* Compact checkout quantity controls that recalculate totals without reloading. */
.woocommerce-checkout-review-order-table .produro-checkout-quantity {
    display: inline-flex;
    min-width: 98px;
    align-items: stretch;
    justify-content: center;
    margin: 6px 0 0 8px;
    overflow: hidden;
    border: 2px solid #66cc33;
    border-radius: 3px;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .produro-checkout-quantity-step,
.woocommerce-checkout-review-order-table .produro-checkout-quantity-value {
    display: inline-flex;
    width: 32px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.woocommerce-checkout-review-order-table .produro-checkout-quantity-step {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #66cc33 !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.woocommerce-checkout-review-order-table .produro-checkout-quantity-step:hover,
.woocommerce-checkout-review-order-table .produro-checkout-quantity-step:focus-visible {
    background: #55b52b !important;
}

.woocommerce-checkout-review-order-table .produro-checkout-quantity-step:disabled,
.woocommerce-checkout-review-order-table .produro-checkout-quantity.is-updating {
    cursor: wait;
    opacity: 0.65;
}

.woocommerce-checkout-review-order-table .produro-checkout-quantity-value {
    border-right: 1px solid #b7c7ae;
    border-left: 1px solid #b7c7ae;
    background: #ffffff;
    color: #243424;
    font-weight: 700;
}

/* Prevent Divi's mobile fixed-header offset from creating a second empty band. */
@media (max-width: 980px) {
    body.woocommerce-page.et_fixed_nav.et_show_nav #page-container {
        padding-top: 0 !important;
    }

    body.woocommerce-page.et_fixed_nav #top-header,
    body.woocommerce-page.et_fixed_nav #main-header {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 480px) {
    .single-product div.product form.cart:not(.variations_form),
    .single-product div.product form.cart .woocommerce-variation-add-to-cart {
        width: 100% !important;
        gap: 6px;
    }

    .single-product div.product form.cart div.quantity {
        min-width: 0;
    }

    .single-product div.product form.cart .produro-quantity-step {
        width: 30px;
    }

    .single-product div.product form.cart div.quantity .qty {
        width: 34px;
        padding-right: 3px;
        padding-left: 3px;
    }

    .single-product div.product form.cart .single_add_to_cart_button {
        min-width: 0;
        flex: 1 1 0 !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
        font-size: 13px;
    }
}
