/*
Theme Name:   Woostify Child
Theme URI:    https://woostify.com
Description:  Child theme para Woostify con búsqueda de cubiertas por medidas
Author:       Tu Nombre
Author URI:   https://tudominio.com
Template:     woostify
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  woostify-child
*/

/* Estilos personalizados para búsqueda de cubiertas */
.busqueda-cubiertas-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.busqueda-cubiertas-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.busqueda-cubiertas-form h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="search"]:focus {
    outline: none;
    border-color: #D72F23;
}

.sugerencias-medidas {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #D72F23;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.sugerencias-medidas.active {
    display: block;
}

.sugerencia-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.sugerencia-item:hover,
.sugerencia-item.selected {
    background-color: #f8f8f8;
}

.sugerencia-item:last-child {
    border-bottom: none;
}

.form-group {
    position: relative;
}

.btn-buscar {
    width: 100%;
    padding: 15px;
    background-color: #D72F23;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buscar:hover {
    background-color: #b52519;
}

.resultados-busqueda {
    margin-top: 40px;
}

.resultados-busqueda h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.producto-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.producto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.producto-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.producto-info {
    padding: 20px;
}

.producto-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.producto-info .precio {
    font-size: 20px;
    font-weight: 700;
    color: #D72F23;
    margin-bottom: 10px;
}

.producto-info .medidas {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.producto-info .btn-ver-producto {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D72F23;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button {
    background-color: #D72F23;
    color: #fff;
    border: 1px solid #D72F23 !important;
}

.button:hover {
    background-color: #fff;
    color: #D72F23;
    border: 1px solid #D72F23;
}

.producto-info .btn-ver-producto:hover {
    background-color: #b52519;
}

.no-resultados {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 18px;
}

/* Botón de consulta por WhatsApp en productos */
.alaux-consultar-precio {
    margin: 15px 0;
}

.alaux-consultar-texto {
    display: block;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.alaux-whatsapp-consulta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.alaux-whatsapp-consulta-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1da851 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.alaux-whatsapp-consulta-btn svg {
    flex-shrink: 0;
}

/* En listados de productos */
.woocommerce ul.products li.product .alaux-consultar-precio {
    margin: 10px 0;
}

.woocommerce ul.products li.product .alaux-consultar-texto {
    font-size: 16px;
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .alaux-whatsapp-consulta-btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
}

/* Botón flotante de WhatsApp */
.whatsapp-float-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-button:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float-button svg {
    width: 22px;
    height: 22px;
}

.wc-block-cart__submit-button {
	background-color: #D72F23;
    color: #fff;
}

.wc-block-cart__submit-button:hover {
	opacity: 0.8;
    color: #fff;
}
/* Animación de pulso */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float-button {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float-button:hover {
    animation: none;
}

.product-loop-image-wrapper .product-loop-image {
	object-fit: contain;
}
.product-loop-image-wrapper .product-loop-hover-image {
	    background-size: contain  !important;
    background-repeat: no-repeat !important;
}

/* Ocultar page-header en páginas de checkout y orden */
.woocommerce-checkout .page-header,
.woocommerce-order-received .page-header {
    display: none !important;
}

/* Estilos para página de Thank You / Orden Recibida */
.alaux-thankyou-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.alaux-order-success {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alaux-icon-success {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: #D72F23;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 0.6s ease-out;
}

.alaux-icon-success svg {
    stroke: white;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.alaux-order-success h2,
.alaux-order-success .woocommerce-notice {
    color: #333;
    font-size: 24px;
    margin: 10px 0;
}

.alaux-order-failed {
    text-align: center;
    padding: 40px 20px;
    background: #fff5f5;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #fee;
}

.alaux-icon-error {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alaux-icon-error svg {
    stroke: white;
}

.alaux-order-details-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alaux-section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #D72F23;
}

.alaux-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.alaux-order-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.alaux-order-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.alaux-order-item-icon svg {
    stroke: #D72F23;
}

.alaux-order-item-content {
    flex: 1;
}

.alaux-order-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.alaux-order-value {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.alaux-order-total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #D72F23 0%, #b52519 100%);
    color: white;
}

.alaux-order-total .alaux-order-item-icon {
    background: rgba(255, 255, 255, 0.2);
}

.alaux-order-total .alaux-order-item-icon svg {
    stroke: white;
}

.alaux-order-total .alaux-order-label {
    color: rgba(255, 255, 255, 0.9);
}

.alaux-order-total .alaux-order-value {
    color: white;
    font-size: 24px;
}

.alaux-order-info-box {
    display: flex;
    align-items: flex-start;
    background: #e8f4fd;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.alaux-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.alaux-info-icon svg {
    stroke: #0073aa;
}

.alaux-info-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.alaux-info-content p {
    margin: 8px 0;
    color: #555;
    line-height: 1.6;
}

.alaux-button {
    background-color: #D72F23 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.alaux-button:hover {
    background-color: #b52519 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 47, 35, 0.3) !important;
}

.alaux-button-secondary {
    background-color: #6c757d !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 5px !important;
    transition: all 0.3s ease !important;
}

.alaux-button-secondary:hover {
    background-color: #5a6268 !important;
}
.woostify-trust-badge-box {
    display: none;
}

.term-auto .page-header .entry-title {display: none;}
.term-auto .woostify-breadcrumb, .woostify-breadcrumb a {display: none;}
.term-auto .page-header {padding-top: 18%; background-repeat: no-repeat; width: 100%; background-size: cover;    background-color: transparent;}

.term-camioneta .page-header .entry-title {display: none;}
.term-camioneta .woostify-breadcrumb, .woostify-breadcrumb a {display: none;}
.term-camioneta .page-header {padding-top: 18%; background-repeat: no-repeat; width: 100%; background-size: cover;    background-color: transparent;}

.term-transporte .page-header .entry-title {display: none;}
.term-transporte .woostify-breadcrumb, .woostify-breadcrumb a {display: none;}
.term-transporte .page-header {padding-top: 18%; background-repeat: no-repeat; width: 100%; background-size: cover;    background-color: transparent;}

.term-agro-vial .page-header .entry-title {display: none;}
.term-agro-vial .woostify-breadcrumb, .woostify-breadcrumb a {display: none;}
.term-agro-vial .page-header {padding-top: 18%; background-repeat: no-repeat; width: 100%; background-size: cover;    background-color: transparent;}


.hidden-fields-container {display: none;}

html {
    overflow-x: hidden;
}

.page-hero .entry-title {color: #fff;}
.cart-sidebar-content .woocommerce-mini-cart__buttons a:not(.checkout) {    margin-bottom: 10px;}

/* Estilos para el Hero de la página */
.page-hero {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-template-template-busqueda-cubiertas .page-header{display: none; !important}
/* Responsive */
@media (max-width: 768px) {
    .busqueda-cubiertas-form {
        padding: 25px;
    }
    
    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .whatsapp-float-button {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float-button svg {
        width: 28px;
        height: 28px;
    }
    
    .alaux-thankyou-page {
        padding: 15px;
    }
    
    .alaux-order-overview {
        grid-template-columns: 1fr;
    }
    
    .alaux-order-details-wrapper {
        padding: 20px;
    }
    
    .alaux-order-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .alaux-info-icon {
        margin: 0 auto 15px;
    }
	.page-hero {
		height: 100px;
	}
}

.product-loop-image-wrapper .product-loop-action .tinvwl_add_to_wishlist_button:hover{
	color: #D72F23 !important;
}

.xt_woovs-single-product .xt_woovs-swatches-wrap.xt_woovs-attr-label-inherit .variations .value {
	flex-direction: column;
    align-items: baseline;
}

.product-images .image-item a {justify-self: center;}
@media (max-width: 768px) {
	.single_variation {
		margin-top: 50px;
	}	
}

@media (max-width: 768px) {
	.product-loop-content {
		padding: 25px 9px !important;
	}
}

@media (max-width: 768px) {
	.product-loop-meta.no-transform .button {
		padding: 10px 5px !important;
	}
}

@media (max-width: 768px) {
	.logged-in.admin-bar #woostify-overlay .woostify-svg-icon {
		right: 5px !important;
	}
}

.single_add_to_cart_button.product_type_variable:hover .woostify-svg-icon {
  color: #D72F23 !important;
}
.tinvwl-table-manage-list .product-action .button {
	gap: 5px !important;
}

@media (min-width: 992px) {
	.single-product #view {
		max-width: 100%;
	}
	
	.single-product .site-content {
		max-width: 1440px;
    	margin: 0 auto;
	}
}
