/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Ocultar notificación de eliminacion de producto carrito */
.archive .woocommerce-notices-wrapper {
    display: none !important;
}

.single-product .woocommerce-notices-wrapper {
    display: none !important;
}

/* Ocultar año en el footer */
#year {
	display: none!important;
}









/* --- DISEÑO DE TARJETA DE PRODUCTO --- */
.product-card-item {
    list-style: none !important;
    margin-bottom: 30px !important;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.product-card-item:hover,
.product-card-item:focus-within {
    z-index: 100;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
    overflow: visible !important;
}

.custom-product-card {
    background: #fff;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.custom-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #e9cece;
    z-index: 100;
}

.custom-product-card:focus-within {
    z-index: 100;
}

/* Imagen */
.product-card__image-box {
    position: relative;
    aspect-ratio: 1/1;
    background: #f9f9f9;
    overflow: hidden;
}

/* El <a> que envuelve la imagen debe ocupar todo el contenedor */
.product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    box-sizing: border-box;
}

/* Neutralizar width/height inline que inyecta WooCommerce y mostrar completa */
.product-card__image-box img,
.product-card__image-box .product-card__img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s ease;
}

.custom-product-card:hover .product-card__image-box img,
.custom-product-card:hover .product-card__image-box .product-card__img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c50707;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* Contenido */
.product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
}

.product-card__category {
    font-size: 10px;
    font-weight: 700;
    color: #c50707;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.product-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.product-card__title a {
    color: #1c0d0d;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card__title a:hover {
    color: #c50707;
}

.product-card__excerpt {
    font-size: 13px;
    color: #646363;
    line-height: 1.5;
}

.product-card__spacer {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Footer de Tarjeta */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: #1c0d0d;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.product-card__price ins {
    text-decoration: none;
}

.product-card__price del {
    display: none;
}

.product-card__price-main {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.product-card__price-note {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #6b5d5d;
    line-height: 1;
    cursor: help;
    z-index: 110;
}

.product-card__price-note-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4e7e7;
    color: #c50707;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #e9cece;
}

.product-card__price-note-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: 220px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #1c0d0d;
    color: #fff;
    font-size: 11px;
    line-height: 1.45;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 9999;
}

.product-card__price-note-tooltip::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: #1c0d0d transparent transparent transparent;
}

.product-card__price-note:hover .product-card__price-note-tooltip,
.product-card__price-note:focus-within .product-card__price-note-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .product-card__price-note-tooltip {
        left: auto;
        right: 0;
    }

    .product-card__price-note-tooltip::after {
        left: auto;
        right: 16px;
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .woocommerce ul.products li.product.product-card-item,
    .woocommerce-page ul.products li.product.product-card-item,
    .woocommerce ul.products[class*="columns-"] li.product.product-card-item,
    .woocommerce-page ul.products[class*="columns-"] li.product.product-card-item {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
    }

    .product-card__footer {
        align-items: flex-end;
        gap: 14px;
    }

    .product-card__price {
        font-size: 16px;
    }
}

.product-card__btn {
    width: 40px;
    height: 40px;
    background: #f4e7e7;
    color: #c50707;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card__btn:hover {
    background: #c50707;
    color: #fff;
}

.product-card__btn.loading {
    opacity: 0.5;
}
