@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oxanium:wght@200..800&family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Sora:wght@100..800&display=swap');

/* Clearfix: el wrapper .product colapsa a 0 cuando galeria y summary estan flotados */
.woocommerce div.product::after {
    content: '';
    display: table;
    clear: both;
}

/* Categoria hoja sobre el titulo del producto */
.sm-product-leaf-category {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.sm-product-leaf-category a {
    color: #3F7C30;
    text-decoration: none;
}

.sm-product-leaf-category a:hover {
    text-decoration: underline;
}

body.single-product .product_title.entry-title {
   font-family: "Poppins", Sans-serif;
   font-size: 25px;
   font-weight: 600;
   text-align: left;
}

body.single-product .product .price {
   font-family: "Barlow", Sans-serif;
   font-size: 37px !important;
   font-weight: 900;
   letter-spacing: 1px;
   text-align: left;
   color: #333 !important;
}

/* Botones de cantidad Mas/Menos */
.quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-right: 15px !important;
    vertical-align: middle !important;
    border: 1px solid #3F7C30 !important;
    border-radius: 0px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.sm-quantity-btn {
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    background: #3F7C30 !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.2s !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.sm-quantity-btn:hover {
    background: #336625 !important;
    color: #fff !important;
}

.sm-quantity-btn.minus {
    border-right: 1px solid #336625 !important;
    padding: 21px !important;
}

.sm-quantity-btn.plus {
    border-left: 1px solid #336625 !important;
    padding: 21px !important;
}

.quantity input.qty,
.quantity input[type="number"] {
    width: 45px !important;
    height: 38px !important;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
    margin: 0 !important;
    background: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ocultar flechas nativas del input number */
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity input.qty,
.quantity input[type="number"] {
    -moz-appearance: textfield;
}

/* Extra Meta (Stock, SKU, Categorias) */
.sm-product-extra-meta {
    margin-bottom: 15px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.sm-meta-item strong {
    color: #333;
    font-weight: 600;
}

.sm-meta-item.sm-stock {
    font-size: 16px;
    font-weight: 600;
    color: #3F7C30;
    margin-bottom: 5px;
}

.sm-meta-item.sm-stock strong {
    color: #3F7C30;
}

.sm-meta-item.sm-categories a {
    color: #3F7C30;
    text-decoration: none;
}

.sm-meta-item.sm-categories a:hover {
    text-decoration: underline;
}


/* Boton Anadir al carrito - outlined */
button.single_add_to_cart_button,
.single_add_to_cart_button,
input.single_add_to_cart_button {
    width: calc(100% - 157px) !important;
    background: #fff !important;
    color: #3F7C30 !important;
    border: 2px solid #3F7C30 !important;
    border-radius: 4px !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 0 30px !important;
    transition: background 0.2s, color 0.2s !important;
    height: 45px !important;
    line-height: 38px !important;
    cursor: pointer !important;
}

button.single_add_to_cart_button:hover,
.single_add_to_cart_button:hover,
input.single_add_to_cart_button:hover {
    background: #3F7C30 !important;
    color: #fff !important;
}

button.single_add_to_cart_button.sm-btn-gated,
button.single_add_to_cart_button.sm-btn-gated:hover {
    background: #e0e0e0 !important;
    color: #999 !important;
    border-color: #ccc !important;
    cursor: not-allowed !important;
}

.sm-cart-gating-hint {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    margin-bottom: 0;
}


/* Slider de Productos Relacionados */
.sm-related-products {
    position: relative;
    margin-top: 50px;
    padding-bottom: 20px;
}

.sm-related-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sm-related-bar {
    display: inline-block;
    width: 5px;
    height: 38px;
    background: #6D7587;
    border-radius: 2px;
    flex-shrink: 0;
}

.sm-related-title {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.sm-related-slider {
    display: flex;
    gap: 0;
    overflow: hidden;
}

.sm-related-item {
    min-width: calc(20% - 0px);
    max-width: calc(20% - 0px);
    flex-shrink: 0;
    padding: 0 8px;
    box-sizing: border-box;
    transition: transform 0.4s ease;
}

.sm-related-image {
    display: block;
    overflow: hidden;
}

.sm-related-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.sm-related-image:hover img {
    transform: scale(1.03);
}

.sm-related-info {
    padding: 8px 0 6px;
}

.sm-related-name {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.sm-related-name a {
    color: #222;
    text-decoration: none;
}

.sm-related-name a:hover {
    color: #3F7C30;
}

.sm-related-price {
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.sm-related-action {
    margin-top: 8px;
}

.sm-related-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff !important;
    color: #3F7C30 !important;
    border: 2px solid #3F7C30 !important;
    border-radius: 4px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    text-decoration: none !important;
}

.sm-related-buy:hover {
    background: #3F7C30 !important;
    color: #fff !important;
}

.sm-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-10%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 48px;
    color: #222;
    line-height: 1;
    padding: 0 8px;
    z-index: 10;
    transition: color 0.2s;
}

.sm-related-arrow:hover {
    color: #3F7C30;
}

.sm-related-prev {
    left: -40px;
}

.sm-related-next {
    right: -40px;
}

@media (max-width: 1024px) {
    .sm-related-item {
        min-width: calc(33.333% - 0px);
        max-width: calc(33.333% - 0px);
    }
}

@media (max-width: 600px) {
    .sm-related-item {
        min-width: 100%;
        max-width: 100%;
    }
    .sm-related-prev { left: 0; }
    .sm-related-next { right: 0; }
}

.jet-compare-button__container, .jet-wishlist-button__container {
   display: none !important;
}

@media (min-width: 1200px) {
    body:not([class*=elementor-page-]) .site-main {
        max-width: 1358px !important;
        margin-top: 19px;
    }
}

body.single-product .woocommerce-breadcrumb  a {
    font-family: "Poppins", Sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0px;
}

body.single-product .woocommerce-breadcrumb  a:hover {
    color: #6CB409;
}

body.single-product .woocommerce div.product form.cart div.quantity {
    border-radius: 0px !important;
}

.single-product form.cart {
    clip-path: inset(0 round 0px) !important;
    border-radius: 0px !important;

}

.variation-Location, .multiloca-message.woocommerce-message, .vi-wcaio-sidebar-cart-pd-meta {
	display: none !important;
}

.sm-stock-row-error td:nth-child(3) {
    background: #ffebee;
    font-weight: 600;
    color: red;
}

/* Botón Sin Stock */
button.single_add_to_cart_button.sm-out-of-stock,
.single_add_to_cart_button.sm-out-of-stock,
input.single_add_to_cart_button.sm-out-of-stock {
    background: #e0e0e0 !important;
    color: #999 !important;
    border-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

button.single_add_to_cart_button.sm-out-of-stock:hover,
.single_add_to_cart_button.sm-out-of-stock:hover,
input.single_add_to_cart_button.sm-out-of-stock:hover {
    background: #e0e0e0 !important;
    color: #999 !important;
}

.single-product input.qty.disabled,
.single-product select.disabled {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}