/*
Theme Name: Shoptimizer Child
Theme URI: https://www.commercegurus.com/wordpress-themes/shoptimizer
Description: Tema hijo de shoptimizer
Author: Mario Padilla
Author URI: https://mariopm.es/
Template: shoptimizer
Version: 1.0.0
*/

/* Selección de variaciones */
.woocommerce-variation .woocommerce-variation-price, 
.reset_variations {
    display: none !important;
}

/**vista producto BADGE**/
.product-details-wrapper {
    position: relative;
}

.summary .product-details-wrapper .product-label {
    display: none;
}

.product-details-wrapper .product-label {
    display: inline-block;
    position: absolute;
    top: 11px;
    left: 40px;
    min-width: inherit;
    min-height: inherit;
    border-radius: 3px;
    font-size: 19px;
    font-weight: bold;
    padding: 9px 16px;
    opacity: .9;
    line-height: 15px;
    margin-left: 10px;
    z-index: 5;
}

.product-details-wrapper .product-label::before {
    display: none;
}

/* Vista MOBILE */
@media screen and (max-width: 1024px) {
    .product-details-wrapper .product-label {
        top: 9px;
        left: -3px;
    }
}


.woocommerce-image__wrapper .product-label.type-bubble {
    opacity: .9;
    font-weight: bold;
}

@media screen and (min-width: 1024px) {
    .woocommerce-image__wrapper .product-label.type-bubble {
        top: 10px;
        left: 10px;
        min-width: inherit;
        min-height: inherit;
        font-size: 15px;
        border-radius: 5px;
        padding: 7px 8px;
        line-height: 15px;
    }
}


/* producto con variables */
.price-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.price-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}
.price-separator {
    display: none;
}
.price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-pair ins {
    text-decoration: none;
}

body .price .price-pair del {
    margin-right: 0;
}

/* Estilos móvil */
@media (max-width: 768px) {
    .price-container {
        flex-wrap: wrap;
    }
    .price-pair {
        flex: 0 1 auto;
    }
}

/* Estilos específicos para productos variables en vista producto */
.single-product .price-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 15px;
    margin: 5px 0;
}

.single-product .price-pair {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    white-space: nowrap;
}

.single-product .price-stack {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.single-product .price-pair del {
    text-decoration-color: #72767c;
    text-decoration-style: solid; 
    text-decoration-thickness: 1px;
    text-decoration-line: line-through;
    margin-right: 5px;
    font-size: 15px;
}

.single-product .price-pair ins, .single-product .price-pair bdi {
    text-decoration: none;
    font-weight: 400;
    color: #da6d42;
    font-size: 18px;
}
 
.single-product .price-pair del bdi {
    color: #72767c;
    font-size: 15px;
}

.product p.price.newprice {
    float: none;
    margin: 0 0 5px 0;
    font-size: inherit;
}

body .price.newprice .price-pair del {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .single-product .price-container {
        flex-wrap: wrap;
    }
}

.content-area .summary .onsale {
    display: none;
}

@media (min-width: 771px) {
    .single-product #page div.product .summary {
        top: 100px !important;
    }
}

/* Product faqs */
.product-faqs {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
}

.faq-answer {
    padding-left: 15px;
}

/* quitar categorías del final de los productos */
.single-product .product_meta,
.related-wrapper .product_meta {
    display: none !important;
}