/*
 Theme Name:   Hello Biz Child
 Theme URI:    https://hannachile.cl
 Description:  Child theme de Hello Biz con miniaturas de producto personalizadas
 Author:       Hanna Chile
 Template:     hello-biz
 Version:      1.0.0
 Text Domain:  hello-biz-child
*/

/* ===================================================
   MINIATURAS DE PRODUCTO PERSONALIZADAS - HANNA CHILE
   =================================================== */


   .hanna-product-excerpt img {
    display: none !important;
}
/* Tarjeta base */
.hanna-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.hanna-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* Imagen */
.hanna-product-card .hanna-product-image {
    display: block;
    width: 100%;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.hanna-product-card .hanna-product-image img,
ul.products li.product.hanna-product-card a img,
.elementor-wc-products ul.products li.product.hanna-product-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    padding: 12px !important;
    margin: 0 !important;
}

/* Info section */
.hanna-product-card .hanna-product-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* SKU */
.hanna-product-card .hanna-product-sku {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.4;
}

/* Nombre del producto */
.hanna-product-card .hanna-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
    text-decoration: none;
    display: block;
}

.hanna-product-card .hanna-product-name:hover {
    color: #0073aa;
}

/* Excerpt */
.hanna-product-card .hanna-product-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hanna-product-card .hanna-product-excerpt p {
    margin: 0;
}

/* Precio */
.hanna-product-card .hanna-product-price {
    margin-top: 4px;
}

.hanna-product-card .hanna-product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #cc1111;
    display: block;
}

.hanna-product-card .hanna-product-price .price ins {
    text-decoration: none;
    font-weight: 700;
    color: #cc1111;
}

.hanna-product-card .hanna-product-price .price del {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
}

/* Badge "A cotizar" */
.hanna-product-card .hanna-cotizar-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 16px;
    border: 1.5px solid #e00;
    border-radius: 20px;
    color: #e00;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    line-height: 1;
    width: fit-content;
}

/* ===================================================
   OVERRIDES ANTI-ELEMENTOR
   Elementor Pro usa display:var(--button-align-display) en li.product.
   Las CSS custom properties NO respetan !important.
   Solución: selector con especificidad MAYOR que Elementor (0,3,2).
   Usamos 0,4,2 agregando una clase extra al selector.
   =================================================== */

/* Elementor: .elementor-products-grid ul.products.elementor-grid li.product = 0,3,2
   Nuestro:   .elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card = 0,4,2  ✓ */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    text-align: left !important;
    float: none !important;
}

/* Imagen */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 12px !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Info section */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 14px 16px 18px !important;
    gap: 6px !important;
}

/* SKU */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-sku {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

/* Nombre */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    font-family: inherit !important;
}

/* Excerpt */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-excerpt {
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    font-family: inherit !important;
}

.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-product-excerpt p {
    font-size: 13px !important;
    margin: 0 !important;
}

/* Precio */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #cc1111 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
}

.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .price del {
    font-size: 13px !important;
    color: #aaa !important;
    font-weight: 400 !important;
}

/* Badge cotizar */
.elementor-wc-products .elementor-products-grid ul.products.elementor-grid li.hanna-product-card .hanna-cotizar-badge {
    font-size: 13px !important;
    color: #e00 !important;
    font-weight: 500 !important;
}

/* ===================================================
   TABS DE PRODUCTO - ESTILOS PARA TABLAS DE WCPSM
   =================================================== */

.hanna-tab-specs table,
.hanna-tab-specs .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.hanna-tab-specs th,
.hanna-tab-specs td,
.hanna-tab-specs .woocommerce-product-attributes-item__label,
.hanna-tab-specs .woocommerce-product-attributes-item__value {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.hanna-tab-specs th,
.hanna-tab-specs .woocommerce-product-attributes-item__label {
    background: #f7f7f7;
    font-weight: 600;
    width: 35%;
}

.hanna-tab-specs p {
    margin: 0;
}
