/*
 Theme Name:   Showroom Child
 Description:  Child Theme para el proyecto Showroom
 Author:       Alejandro Mosquera Moreno
 Template:     hello-elementor
 Version:      1.0.1
*/

@font-face {
    font-family: 'Avenir Next';
    src: url('./fonts/avenir-next-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next Ultralight';
    src: url('./fonts/AvenirNextCyr-UltraLight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Forzar la tipografía en todo el sitio */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
select {
    font-family: 'Avenir Next', sans-serif !important;
}

@media (min-width: 1024px) {

    .showroom-hero-banner {
        /* Nos regresamos exactamente los 150px que el diseño te quita a cada lado */
        margin-left: -150px !important;
        margin-right: -150px !important;
        
        /* El ancho será el 100% del contenedor + los 300px totales que acabamos de expandir */
        width: calc(100% + 300px) !important;
        max-width: none !important;
    }

    body {
        margin-left: 150px !important;
        margin-right: 150px !important;
    }
}

/* Ocultar el texto del título del sitio en la cabecera */
.site-title {
    display: none !important;
}

/* Fallback de seguridad: Ocultar el header de productos si el filtro PHP es ignorado por Elementor */
.woocommerce-products-header {
    display: none !important;
}

.font-ultralight {
    font-family: 'Avenir Next Ultralight', sans-serif !important;
}

/* ==========================================================================
   1.5. FILA 0: HERO BANNER
   ========================================================================== */
.showroom-hero-banner {
    /* width: 100% !important; */
    background-image: url('https://showroom.beltatelier.co/wp-content/uploads/2026/07/banner.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    height: 380px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 40px !important;
    box-sizing: border-box !important;

    /* Aseguramos que no haya desbordes por defecto */
    /* position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important; */
}

.showroom-hero-content {
    text-align: center !important;
    z-index: 2 !important;
}

.showroom-hero-title {
    color: #ffffff !important;
    font-size: 4rem !important;
    letter-spacing: 0.15em !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

.showroom-hero-title .font-normal {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: normal !important;
}

.showroom-hero-title .font-ultralight {
    font-family: 'Avenir Next Ultralight', sans-serif !important;
    font-weight: normal !important;
}

@media (max-width: 768px) {
    .showroom-hero-banner {
        height: 250px !important;
    }

    .showroom-hero-title {
        font-size: 2.2rem !important;
        letter-spacing: 0.1em !important;
    }
}

/* ==========================================================================
   2. CATEGORY BANNERS
   ========================================================================== */
.showroom-shop-banners-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .showroom-shop-banners-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.showroom-cat-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none !important;
    overflow: hidden;
    margin-bottom: 30px;
}

.showroom-cat-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.showroom-cat-banner:hover::before {
    background: rgba(0, 0, 0, 0.45);
}

.showroom-cat-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.showroom-cat-banner-title {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 100 !important;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff !important;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   3. SHOP ARCHIVE LAYOUT (Left Sidebar & Right Grid)
   ========================================================================== */
.showroom-shop-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

/* 1. Para pantallas medianas (Laptops y tablets horizontales: desde 992px hasta 1678px) */
@media (min-width: 992px) and (max-width: 1678px) {
    .showroom-shop-container {
        flex-direction: row;
        gap: 55px;
    }

    .showroom-shop-sidebar {
        flex: 0 0 235px;
        max-width: 235px;
        width: 235px;
    }

    .showroom-shop-content {
        flex: 1;
    }
}

/* 2. Para pantallas grandes (Monitores de escritorio: desde 1679px en adelante) */
@media (min-width: 1679px) {
    .showroom-shop-container {
        flex-direction: row;
        gap: 180px;
    }

    .showroom-shop-sidebar {
        flex: 0 0 284px;
        max-width: 284px;
        width: 285px;
    }

    .showroom-shop-content {
        flex: 1;
    }
}

/* Hide default WooCommerce sidebar if rendered outside our wrapper */
.archive.post-type-archive-product #secondary,
.tax-product_cat #secondary,
.tax-product_brand #secondary {
    display: none !important;
}

/* ==========================================================================
   3.1. SIDEBAR SHOPPING CART
   ========================================================================== */
.showroom-sidebar-cart {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.showroom-sidebar-cart .widget-title {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #111111;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Ocultar el widget del carrito si está vacío por CSS (:has) */
.showroom-sidebar-cart:has(.woocommerce-mini-cart__empty-message),
.showroom-sidebar-cart:has(.empty),
.showroom-sidebar-cart.is-empty {
    display: none !important;
}

/* Estilar mini-cart interno para encajar en el diseño Showroom */
.showroom-sidebar-cart .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.showroom-sidebar-cart .woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed #eaeaea;
}

.showroom-sidebar-cart .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.showroom-sidebar-cart .woocommerce-mini-cart-item img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
}

.showroom-sidebar-cart .woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin: 15px 0 !important;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
    color: #111111;
    text-transform: uppercase;
}

.showroom-sidebar-cart .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
}

.showroom-sidebar-cart .woocommerce-mini-cart__buttons a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 15px !important;
    font-size: 0.75rem !important;
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em;
    border-radius: 0 !important;
    box-sizing: border-box;
    text-decoration: none !important;
}

/* Botón View Cart (Fondo blanco, borde gris) */
.showroom-sidebar-cart .woocommerce-mini-cart__buttons a:not(.checkout) {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #d3d3d3 !important;
}

.showroom-sidebar-cart .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background-color: #f7f7f7 !important;
}

/* Botón Checkout (Fondo negro) */
.showroom-sidebar-cart .woocommerce-mini-cart__buttons a.checkout {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
}

.showroom-sidebar-cart .woocommerce-mini-cart__buttons a.checkout:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* Accordion Sidebar Widgets */
.showroom-shop-sidebar .widget {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
    padding: 20px 0;
}

.showroom-shop-sidebar .widget:first-child {
    padding-top: 0;
}

.showroom-shop-sidebar .widget:last-child {
    border-bottom: none;
}

.showroom-accordion-title {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    color: #111111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.showroom-accordion-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: #888888;
}

.showroom-accordion-title.active::after {
    content: '−';
}

.showroom-accordion-content {
    padding-top: 15px;
    padding-bottom: 10px;
}

/* Styles for filters listing */
.showroom-accordion-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.showroom-accordion-content ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showroom-accordion-content ul li a {
    color: #555555 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.showroom-accordion-content ul li a:hover {
    color: #111111 !important;
}

/* ==========================================================================
   4. PRODUCT CARD DESIGN
   ========================================================================== */
.showroom-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* Strictly 2 columns */
    gap: 40px 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Hide legacy WooCommerce styles */
.showroom-shop-content ul.products::before,
.showroom-shop-content ul.products::after {
    display: none !important;
}

.showroom-shop-content ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

.showroom-product-image-link {
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #fcfcfc !important;
    aspect-ratio: 4 / 5 !important;
    /* Fixed aspect ratio to prevent grid breakage */
    /* width: 583px !important; */
    height: 374px !important;
}

.showroom-product-image-link img {
    width: 583px !important;
    height: 374px !important;
    object-fit: cover !important;
    /* Crop & cover container */
    display: block !important;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.showroom-product-image-link:hover img {
    transform: scale(1.04);
}

.showroom-product-info {
    padding: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.showroom-product-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 4px;
}

.showroom-product-title {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin: 0;
    color: #111111;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showroom-product-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.showroom-product-price {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    color: #111111;
    white-space: nowrap;
}

.showroom-product-price del {
    color: #999999;
    font-size: 0.8rem;
    margin-right: 5px;
    font-weight: normal;
}

.showroom-product-price ins {
    background: none;
    text-decoration: none;
    font-weight: 600;
}

.showroom-product-meta {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.75rem !important;
    /* Smaller text size */
    color: #777777 !important;
    margin-top: 4px !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.showroom-view-product-btn {
    display: block !important;
    width: 65% !important;
    /* Centered, approx 60-70% width */
    align-self: center !important;
    text-align: center !important;
    background-color: transparent !important;
    /* transparent or white background */
    color: #555555 !important;
    border: 1px solid #d3d3d3 !important;
    /* light gray border */
    padding: 10px 15px !important;
    font-size: 0.75rem !important;
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    /* uppercase text */
    letter-spacing: 0.12em !important;
    margin-top: auto !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.showroom-view-product-btn:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

/* ==========================================================================
   5. SINGLE PRODUCT PAGE LAYOUT
   ========================================================================== */
@media (min-width: 992px) {
    .single-product div.product {
        display: flex;
        gap: 60px;
        align-items: flex-start;
        width: 100%;
    }

    .single-product div.product .woocommerce-product-gallery {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: none !important;
        margin-bottom: 0 !important;
    }

    .single-product div.product .summary {
        flex: 1 !important;
        max-width: 50% !important;
        width: 50% !important;
        float: none !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
    }
}

.showroom-single-title {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111111;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.1;
}

.showroom-single-title .font-ultralight {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 100 !important;
}

/* Metadata block */
.showroom-single-meta-block {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .showroom-single-meta-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 30px;
    }
}

.showroom-meta-item {
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.showroom-meta-item .meta-label {
    font-weight: 600 !important;
    color: #111111;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    width: 100px;
    flex-shrink: 0;
    display: inline-block;
}

.showroom-meta-item .meta-value {
    font-weight: 100 !important;
    color: #666666;
}

/* Price styling in single product summary */
.showroom-single-price {
    font-family: 'Avenir Next', sans-serif !important;
    font-size: 1.5rem;
    font-weight: 500 !important;
    color: #111111;
    margin: 20px 0;
}

.showroom-single-price del {
    color: #999999;
    font-size: 1.2rem;
    margin-right: 8px;
    font-weight: normal;
}

.showroom-single-price ins {
    background: none;
    text-decoration: none;
    font-weight: 600;
}

/* Single Cart/Variations Form Layout */
.single-product div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 0;
    float: none !important;
    width: 100%;
}

.single-product div.product form.cart .quantity {
    margin-right: 0 !important;
    float: none !important;
}

.single-product div.product form.cart .quantity input.qty {
    height: 50px;
    width: 70px;
    border: 1px solid #d3d3d3;
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    padding: 0;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
}

/* Add to Cart button (Gray Border) */
.single-product div.product form.cart .single_add_to_cart_button {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #d3d3d3 !important;
    height: 50px;
    padding: 0 35px;
    font-size: 0.8rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    float: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

/* Buy Now button (Dark background) */
.showroom-buy-now-btn {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #111111 !important;
    height: 50px;
    padding: 0 35px;
    font-size: 0.8rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.showroom-buy-now-btn:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* Visual swatches custom layout compatibility */
.variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.variable-item {
    border: 1px solid #d3d3d3 !important;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style image swatches */
.variable-item.image-variable-item {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    /* Circular swatches look clean */
    overflow: hidden;
}

.variable-item.image-variable-item img {
    border-radius: 50%;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Style text swatches (e.g. Dimensions) */
.variable-item.button-variable-item {
    font-family: 'Avenir Next', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 44px;
    height: 44px;
    padding: 0 12px !important;
    border-radius: 0 !important;
    /* Square button swatches */
}

/* Selected states */
.variable-item.selected,
.variable-item:hover {
    border-color: #111111 !important;
    box-shadow: 0 0 0 1px #111111;
}

/* Contact Footer Section */
.showroom-single-contact-section {
    margin-top: 35px;
    width: 100%;
}

.showroom-single-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 25px 0;
}

.showroom-contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.showroom-contact-text {
    font-family: 'Avenir Next', sans-serif !important;
    font-style: italic;
    font-weight: 100 !important;
    font-size: 0.95rem;
    color: #666666;
}

.showroom-contact-btn {
    display: inline-block;
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #d3d3d3 !important;
    padding: 10px 22px;
    font-size: 0.75rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 0;
}

.showroom-contact-btn:hover {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

#site-header {
    display: none;
}