/*
 * TIENDA.CSS · Casabella Natura
 * --------------------------------------------------------
 * Estilos exclusivos para páginas WooCommerce.
 *
 * Este archivo solo se encola cuando la página es de
 * WooCommerce (tienda, categorías, ficha de producto,
 * carrito, pago, cuenta...), mediante el hook que hay en
 * functions.php (cbn_enqueue_tienda_css).
 *
 * Añade aquí cualquier regla de la zona de tienda; no
 * afectará al resto de la web (blog, páginas, inicio...).
 */

/* ==========================================================================
   TIENDA · listado de productos, avisos y relacionados
   (reglas movidas desde el CSS adicional, mismas declaraciones)
   ========================================================================== */

/* Productos relacionados: título serif */
.woocommerce .related > h2,
.woocommerce .upsells > h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #26301d !important;
}

/* Tarjetas de producto relacionadas: mismo trazo que el resto de la web */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #fffdf9 !important;
    border: 1px solid rgba(55, 68, 46, .10) !important;
    border-radius: 3px !important;
    padding: 10px !important;
    transition: transform .2s ease, border-color .2s ease !important;
}

.woocommerce ul.products li.product:hover {
    border-color: #68734b !important;
    transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #26301d !important;
}

.woocommerce ul.products li.product .price {
    color: #68734b !important;
}

/* Estrellas de valoración en verde oliva */
.woocommerce .star-rating span,
.woocommerce .star-rating span:before {
    color: #a4ad8a !important;
}

/* Mensajes "añadido al carrito" con la línea oliva característica */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #68734b !important;
}

.woocommerce-message::before {
    color: #68734b !important;
}

/* Versión móvil */
@media only screen and (max-width: 767px) {

    .woocommerce div.product .product_title {
        font-size: 24px !important;
    }

    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 20px 16px !important;
    }

    .woocommerce div.product form.cart .button {
        width: 100% !important;
        text-align: center !important;
    }
}
