/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.9
 Text Domain:  woodmart
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');



/* Mostrar títulos de productos de hasta 4 líneas en vista miniatura */
.wd-entities-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: none !important;
}

/* Ocultar atributos nativos en el hover del loop para evitar duplicados de Garantía */
.wd-product-hover .wd-attributes-list,
.wd-product-hover .pa_garantia,
.wd-product-hover-content .wd-attributes-list,
.wd-product-hover-content .pa_garantia {
    display: none !important;
}

/* Ocultar el bloque de hover flotante fade-in-block en el loop de productos */
.wd-product .fade-in-block {
    display: none !important;
}

/* Ocultar el bloque de descripción corta general de WPBakery para evitar romper el grid */
.wd-single-short-desc {
    display: none !important;
}

/* Pero hacer visible la descripción de WooCommerce dentro del wrapper si se requiere */
.wd-single-short-desc .woocommerce-product-details__short-description {
    display: block !important;
}

/* Soporte para iconos FontAwesome en el menú lateral colapsado */
body .wd-nav-sticky > li > a > i.category-menu-icon {
    display: inline-block !important;
    width: auto !important;
    margin-right: 8px !important;
}

/* Solo cuando la barra lateral está colapsada (ancho estrecho y no hovered), hacemos que el icono ocupe el 100% y se centre */
body .wd-sticky-nav:not(:hover):not(.wd-opened) .wd-nav-sticky > li > a > i.category-menu-icon {
    width: 100% !important;
    margin-right: 0 !important;
    text-align: center !important;
}

/* Permitir que los iconos de categorías SVG locales se muestren */
.wd-nav-vertical img.category-icon-svg, 
.wd-nav-sticky img.category-icon-svg,
.woodmart-nav-link img.category-icon-svg {
    display: inline-block !important;
}

/* Parche local E2E: Evitar loops infinitos de escalado en Owl Carousel/Slick por imágenes rotas */
.owl-carousel, 
.slick-slider, 
.related-products,
.related.products,
.upsells.products,
.wd-products-element,
.recently-viewed-products {
    max-height: none !important;
    overflow: visible !important;
}

/* Forzar límites rígidos en las imágenes para romper el cálculo recursivo de dimensiones */
.product-grid-item img,
.owl-item img,
.product-wrapper img,
.wd-carousel img,
.related-products img,
.recently-viewed-products img {
    max-width: 100% !important;
    max-height: 180px !important;
    height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Rediseño de Carrusel WoodMart a Grid Flexbox Estático (Desactiva cálculo JS de Swiper/Owl) */
.related-products .wd-carousel-wrap,
.recently-viewed-products .wd-carousel-wrap,
.related-products .wd-carousel,
.recently-viewed-products .wd-carousel {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    transition: none !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

.related-products .wd-carousel-item,
.recently-viewed-products .wd-carousel-item {
    width: calc(25% - 12px) !important; /* 4 columnas estables */
    max-width: 250px !important;
    min-width: 180px !important;
    flex: 0 0 calc(25% - 12px) !important;
    transform: none !important;
    transition: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forzar que las tarjetas mantengan el estilo premium */
.related-products .product-grid-item,
.recently-viewed-products .product-grid-item {
    width: 100% !important;
    margin: 0 !important;
}


/* ==========================================================================
   ESTILOS DE TARJETA DE PRODUCTO "FW-BUTTON" GLASSMORPHISM (TEMA HIJO)
   ========================================================================== */

/* Aplicar la fuente Outfit y estilo Glassmorphism al wrapper de la tarjeta */
.wd-product.wd-hover-fw-button .product-wrapper {
    font-family: 'Outfit', sans-serif !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04) !important;
    padding: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Efecto hover sobre la tarjeta */
.wd-product.wd-hover-fw-button:hover .product-wrapper {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important; /* Borde sutil color celeste #38bdf8 */
    box-shadow: 0 12px 40px 0 rgba(56, 189, 248, 0.15) !important;
    transform: translateY(-6px) !important;
}

/* Ajustes a la imagen del producto */
.wd-product.wd-hover-fw-button .product-element-top {
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}

/* Estilos de título */
.wd-product.wd-hover-fw-button .wd-entities-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}
.wd-product.wd-hover-fw-button .wd-entities-title a {
    color: #1e293b !important; /* Slate 800 */
    transition: color 0.2s ease !important;
}
.wd-product.wd-hover-fw-button .wd-entities-title a:hover {
    color: #38bdf8 !important; /* Celeste #38bdf8 */
}

/* Etiquetas de precio */
.wd-product.wd-hover-fw-button .price,
.wd-product.wd-hover-fw-button .price ins,
.wd-product.wd-hover-fw-button .price .amount {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* Slate 900 */
    font-size: 16px !important;
}

/* Estilos de Botón "Añadir al carrito" / Acciones con alto contraste accesible (GPSI) */
.wd-product.wd-hover-fw-button .wd-add-btn > a,
.wd-product.wd-hover-fw-button .wd-add-btn > a.add-to-cart-loop {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: #c21922 !important; /* Rojo Corporativo de Megazone */
    color: #ffffff !important; /* Alto contraste blanco sobre rojo (ratio > 4.5:1) */
    border: 1px solid #a3141b !important;
    box-shadow: 0 4px 12px rgba(194, 25, 34, 0.15) !important;
    transition: all 0.25s ease !important;
}

.wd-product.wd-hover-fw-button .wd-add-btn > a:hover,
.wd-product.wd-hover-fw-button .wd-add-btn > a.add-to-cart-loop:hover {
    background: #9c1017 !important; /* Rojo oscuro/vino alternativo */
    color: #ffffff !important;
    border-color: #7f0b10 !important;
    box-shadow: 0 6px 16px rgba(156, 16, 23, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Forzar que el icono de flecha/carrito (\f123) que se genera en el hover :before mantenga color blanco y fondo del color del hover */
.wd-product.wd-hover-fw-button .wd-add-btn-replace .add-to-cart-loop:before {
    color: #ffffff !important;
}

/* ==========================================================================
   ESTILOS FICHA INDIVIDUAL DE PRODUCTO (SINGLE PRODUCT PAGE)
   ========================================================================== */

/* Botón "Añadir al carrito" en la ficha individual — Paleta roja corporativa Megazone */
/* El botón WooCommerce tiene clases: single_add_to_cart_button button alt */
.single-product .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.single-product .cart .button.alt,
.single-product .cart button[name="add-to-cart"],
.wd-single-product-summary .single_add_to_cart_button,
.wd-single-page-builder .single_add_to_cart_button {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    background: #c21922 !important;
    color: #ffffff !important;
    border: 1px solid #a3141b !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(194, 25, 34, 0.18) !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
    letter-spacing: 0.02em !important;
}

.single-product .single_add_to_cart_button:hover,
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.single-product .cart .button.alt:hover,
.single-product .cart button[name="add-to-cart"]:hover,
.wd-single-product-summary .single_add_to_cart_button:hover,
.wd-single-page-builder .single_add_to_cart_button:hover {
    background: #9c1017 !important;
    color: #ffffff !important;
    border-color: #7f0b10 !important;
    box-shadow: 0 6px 20px rgba(156, 16, 23, 0.28) !important;
    transform: translateY(-2px) !important;
}

/* MODELO en ficha individual */
.wd-single-product-mpn {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #c21922 !important;
    font-family: 'Outfit', monospace !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Garantía inline: mostrar etiqueta y valor lado a lado */
.garantia-inline,
.garantia-inline + .wd-single-meta-value {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
}
.garantia-inline p {
    margin-bottom: 0 !important;
}

/* Garantía inline: ocultar fila completa si el value está vacío */
.garantia-inline + * .wd-el-content:empty,
.garantia-inline:has(+ * .wd-el-content:empty) {
    display: none !important;
}

/* Ocultar la fila de Garantía del summary cuando no tiene valor (regla robusta) */
.vc_row-inner:has(.garantia-inline):has(.wd-el-content:empty) {
    display: none !important;
}

/* Garantía con valor: tipografía Outfit semibold verde esmeralda */
.wd-single-product-warranty {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #15803d !important;
    font-family: 'Outfit', sans-serif !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* ==========================================================================
   ESTILOS DE BORDES REDONDEADOS PREMIUM (BANERAS Y SLIDERS)
   ========================================================================== */

/* Banners Promocionales y sus contenedores de imagen */
.promo-banner {
    border-radius: 12px !important;
    overflow: hidden !important;
}
.promo-banner .main-wrapp-img,
.promo-banner .banner-image,
.promo-banner .banner-image img {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Slider Principal (Home) y sus respectivas imágenes de fondo */
.wd-slider,
.wd-slider .wd-carousel-inner,
.wd-slider .wd-carousel,
.wd-slider .wd-slide,
.wd-slider .wd-slide-bg {
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA EL CARRUSEL DE MARCAS Y NORMALIZACIÓN DE LOGOS
   ========================================================================== */

/* Normalizar tamaño de las imágenes/logos del carrusel de marcas */
.wd-carousel .wd-brand-item img,
.wd-brand-item img,
.brand-item img {
    max-height: 76px !important;
    height: 76px !important;
    width: auto !important;
    max-width: 90% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

/* Estructura estética de los elementos de marcas (Glassmorphism + Sombras suaves) */
.wd-brand-item.brand-item,
.brand-item {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    padding: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 90px !important;
    height: 90px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Efecto hover interactivo con el color rojo de Megazone */
.wd-brand-item.brand-item:hover,
.brand-item:hover {
    background: #ffffff !important;
    border-color: rgba(194, 25, 34, 0.3) !important; /* Rojo corporativo de Megazone */
    box-shadow: 0 10px 25px rgba(194, 25, 34, 0.08) !important;
    transform: translateY(-4px) !important;
}

/* Animación sutil de escala en el logo al pasar el cursor */
.wd-brand-item.brand-item:hover img,
.brand-item:hover img {
    transform: scale(1.05) !important;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA LA PÁGINA DE CONTACTO (HITO 73)
   ========================================================================== */

/* Fondo general de la página de contacto (suave gradiente HSL) */
.page-id-865 .main-page-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 0.7) 90%) !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Transformar contenedores internos a Glassmorphism */
.page-id-865 .vc_row_inner {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    transition: all 0.3s ease;
}

/* Transición de elevación y hover de los contenedores */
.page-id-865 .vc_row_inner:hover {
    box-shadow: 0 12px 40px 0 rgba(194, 25, 34, 0.05) !important;
    border-color: rgba(194, 25, 34, 0.15) !important;
}

/* Estilización premium de los inputs del formulario Contact Form 7 */
.page-id-865 .wpcf7-form input[type="text"],
.page-id-865 .wpcf7-form input[type="email"],
.page-id-865 .wpcf7-form input[type="tel"],
.page-id-865 .wpcf7-form textarea {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
}

/* Efecto focus en inputs con destello rojo */
.page-id-865 .wpcf7-form input[type="text"]:focus,
.page-id-865 .wpcf7-form input[type="email"]:focus,
.page-id-865 .wpcf7-form input[type="tel"]:focus,
.page-id-865 .wpcf7-form textarea:focus {
    border-color: #c21922 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(194, 25, 34, 0.12) !important;
    outline: none !important;
}

/* Botón de envío del formulario premium */
.page-id-865 .wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 14px 28px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2) !important;
}

.page-id-865 .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.3) !important;
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
}

/* Estilos para la barra lateral / Información en Tarjetas Glassmorphism */
.page-id-865 .woodmart-list {
    margin-top: 15px !important;
}

.page-id-865 .woodmart-list li {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01) !important;
    transition: all 0.3s ease !important;
}

.page-id-865 .woodmart-list li:hover {
    transform: translateY(-3px) !important;
    background: #ffffff !important;
    border-color: rgba(194, 25, 34, 0.2) !important;
    box-shadow: 0 8px 20px rgba(194, 25, 34, 0.05) !important;
}

.page-id-865 .woodmart-list li img {
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

/* ==========================================================================
   INCREMENTAR VERSIÓN CSS PARA ROMPER CACHÉ LOCAL Y CDN
   Versión: 1.1.3
   ========================================================================== */








/* ==========================================================================
   Efectos Estéticos Minimalistas de Hover para el Buscador Principal
   ========================================================================== */

/* Efecto de foco en todo el input: agrega una sombra sutil roja Megazone para guiar la vista */
.whb-1yjd6g8pvqgh79uo6oce form.searchform input[type="text"].s {
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.whb-1yjd6g8pvqgh79uo6oce form.searchform input[type="text"].s:focus {
    box-shadow: inset 0 -2px 0 rgba(194, 25, 34, 0.8) !important; /* Línea inferior sutil en rojo Megazone */
}

/* Efecto hover sobre el botón de búsqueda original: cambio de opacidad y escala del icono */
.whb-1yjd6g8pvqgh79uo6oce form.searchform .searchsubmit {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease !important;
}

.whb-1yjd6g8pvqgh79uo6oce form.searchform .searchsubmit:hover {
    transform: scale(1.05) !important; /* Micro-escalado elegante */
}
