/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Hello Elementor Child Theme for Joanabarros Catalogo - Ultra Clean & Fluid
Author: Antigravity
Author URI: https://google.com
Template: hello-elementor
Version: 1.2.6
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --brand-gold: #c5a059;
    --brand-black: #000000;
    --brand-gray: #707070;
    --brand-light: #fdfdfd;
}

/* 
 * HEADER ADJUSTMENTS 
 * Transparent background for ALL pages to blend with the site design (red background in screenshot)
 */
header,
.elementor-location-header,
.site-header {
    background-color: transparent !important;
    border-bottom: none !important;
}

/* Force all text and icons in header to be WHITE globally as requested */
header *,
.elementor-location-header *,
.site-header *,
header *:hover,
.elementor-location-header *:hover,
.site-header *:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    fill: #ffffff !important;
}

/* Specific fix for Nav Menu items to be WHITE everywhere */
.elementor-nav-menu .menu-item a.elementor-item,
.elementor-nav-menu .menu-item a.elementor-item:hover,
.elementor-nav-menu .menu-item a.elementor-item.elementor-item-active,
.elementor-nav-menu .menu-item a.elementor-item.highlighted {
    color: #ffffff !important;
}

/* Mobile Toggle and Menu Dropdowns */
.elementor-menu-toggle i,
.elementor-menu-toggle svg,
.elementor-nav-menu--dropdown .elementor-item,
.elementor-nav-menu--dropdown .elementor-sub-item,
.elementor-nav-menu--dropdown a {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Dropdown background - set to black so white text is visible */
.elementor-nav-menu--dropdown {
    background-color: #000000 !important;
}

/* 
 * HOME LOOP GRID - LOCK IMAGE SIZE
 * Forcing all product images in lists to have the same proportion (500x330)
 */
.elementor-loop-container .elementor-post__thumbnail img,
.elementor-loop-container img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 500 / 330 !important;
    object-fit: cover !important;
}

/* 
 * PRODUCT PAGE STYLES 
 */
body.single-product {
    background-color: #FFF;
    font-family: 'Inter', sans-serif;
    color: var(--brand-black);
}

.product-single-premium {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    justify-content: center;
}

.product-gallery-section {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    border-radius: 8px;
    object-fit: contain;
    /* Prevent cutting */
}

.product-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    border-color: var(--brand-gold);
    transform: translateY(-2px);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.product-info-section {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.product-category-label span {
    color: var(--brand-gold);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin: 10px 0 20px 0;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.product-short-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--brand-gray);
    /* Estilo cinza original */
    margin: 25px 0 35px 0;
}

/* CTA: WhatsApp Button */
.whatsapp-button-wrapper {
    margin: 40px 0;
}

.whatsapp-contact-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #25d366 !important;
    color: #fff !important;
    padding: 18px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
    width: 100%;
}

.whatsapp-contact-button:hover {
    background-color: #128c7e !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-button svg {
    fill: #fff !important;
    /* Ensure inside icon is white */
    margin-right: 12px;
}

.product-meta-extra {
    font-size: 12px;
    color: #ccc;
    margin-top: 40px;
    border-top: 1px solid #f9f9f9;
    padding-top: 15px;
}

.related-products-section {
    max-width: 1000px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.related-products-section h2.woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    margin: 10px 0 !important;
    text-align: center;
}

.related-products-section>h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--brand-black);
}

.related-products-section .products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.related-products-section .product {
    flex: 1;
    min-width: 200px;
    max-width: 230px;
    text-align: center;
    transition: transform 0.3s ease;
}

.related-products-section .product:hover {
    transform: translateY(-5px);
}

.related-products-section .product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    mix-blend-mode: multiply;
}

.related-products-section .price {
    display: block;
    color: var(--brand-gold);
    font-weight: 600;
    margin-top: 5px;
}

.related-products-section .button {
    display: none !important;
}


/* Hide breadcrumbs, etc */
.woocommerce-breadcrumb,
.posted_in,
.tagged_as {
    display: none !important;
}