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

.mi-carousel-productos .item-producto {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px;
}

.mi-carousel-productos .producto-imagen img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.mi-carousel-productos .producto-info {
    display: flex;
    flex-direction: column;
}

.mi-carousel-productos .producto-titulo {
    font-size: 16px;
    font-weight: 500;
}

.mi-carousel-productos .producto-precio {
    color: #d00;
    font-weight: bold;
    font-size: 18px;
}

.item-producto {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.item-producto a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.producto-contenido {
    display: flex;
    align-items: center;
    gap: 15px;
}

.producto-imagen img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.producto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-titulo {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.producto-precio {
    color: #d00;
    font-weight: bold;
    font-size: 18px;
}

.widget .product_list_widget {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px; /* para evitar que el scroll tape contenido */
}


/* --- ESTILOS DEL FORMULARIO BASE BASE --- */
.bb-form-wrapper {
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
    margin: 0 auto;
}

.bb-form-wrapper * {
    box-sizing: border-box;
}

/* Encabezado */
.bb-form-header {
    margin-bottom: 25px;
}
.bb-form-header h2 {
    color: #e31b1b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}
.bb-form-header p {
    color: #333333;
    font-size: 14px;
    margin: 0;
}

/* Filas y Columnas */
.bb-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.bb-form-column {
    flex: 1;
}
.bb-form-full {
    margin-bottom: 15px;
    width: 100%;
}

/* Etiquetas (Labels) */
.bb-form-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #e31b1b; /* Texto de los labels en Rojo */
    margin-bottom: 6px;
    text-align: left;
}
.bb-icon {
    margin-right: 4px;
    opacity: 0.8;
}

/* Inputs, Textareas y Selects de Contact Form 7 */
.bb-form-wrapper input[type="text"],
.bb-form-wrapper input[type="email"],
.bb-form-wrapper input[type="tel"],
.bb-form-wrapper select,
.bb-form-wrapper textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #cccccc !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    outline: none;
    transition: border-color 0.2s ease;
}

/* Enfoque de los campos */
.bb-form-wrapper input:focus,
.bb-form-wrapper select:focus,
.bb-form-wrapper textarea:focus {
    border-color: #e31b1b !important;
}

/* Área de texto */
.bb-form-wrapper textarea {
    height: 100px !important;
    resize: vertical;
}

/* Subida de archivo (Input File) */
.bb-form-wrapper input[type="file"] {
    width: 100%;
    font-size: 13px;
    color: #555555;
}
.bb-file-info {
    display: block;
    font-size: 11px;
    color: #777777;
    margin-top: 4px;
}

/* Botón de Envío */
.bb-form-submit {
    margin-top: 25px;
    width: 100%;
}
.bb-btn-submit {
    width: 100% !important;
    background-color: #e31b1b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}
.bb-btn-submit:hover {
    background-color: #b81212 !important;
}
.bb-btn-submit:active {
    transform: scale(0.99);
}

/* Footer de confidencialidad */
.bb-form-footer {
    margin-top: 15px;
    text-align: center;
}
.bb-form-footer p {
    font-size: 11px;
    color: #666666;
    margin: 0;
}

/* Adaptación Móvil */
@media (max-width: 480px) {
    .bb-form-row {
        flex-direction: column;
        gap: 15px;
    }
    .bb-form-wrapper {
        padding: 25px 20px;
    }
}


/* CSS PERSONALIZADO DEL FORM DE BUSCAR */
/* 1. Contenedor principal del formulario de búsqueda */
.woodmart-search-form form.searchform {
    display: flex;
    align-items: center;
    border: 2px solid #e31212 !important; /* Borde rojo exterior */
    border-radius: 50px !important;       /* Bordes ultra redondeados tipo píldora */
    overflow: hidden;                     /* Corta los bordes rectos de los inputs internos */
    background-color: #ffffff !important;
    height: 45px;                         /* Ajusta la altura general si lo deseas */
}

/* 2. Campo de entrada de texto (Input) */
.woodmart-search-form input[type="text"].s {
    border: none !important;              /* Quitamos los bordes por defecto */
    padding-left: 20px !important;        /* Espacio para que el texto "Buscar" no se pegue al borde */
    font-size: 16px !important;
    color: #333333 !important;
    background-color: transparent !important;
    flex-grow: 1;                         /* Ocupa todo el espacio disponible */
    height: 100% !important;
}

/* Opcional: Estilo del texto de marcador (Placeholder) */
.woodmart-search-form input[type="text"].s::placeholder {
    color: #000000;
    font-weight: 500;
}

/* 3. Botón de enviar (Lupa) */
.woodmart-search-form button.searchsubmit {
    background-color: #e31212 !important; /* Fondo rojo del botón */
    color: #ffffff !important;            /* Color del icono blanco */
    border: none !important;
    height: 100% !important;
    min-width: 60px !important;           /* Ancho del bloque rojo derecho */
    padding: 0 15px !important;
    font-size: 0 !important;              /* Oculta la palabra "Buscar" si viene en texto plano */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Asegurar que el icono interno herede el tamaño correcto */
.woodmart-search-form button.searchsubmit::before {
    font-size: 20px !important;           /* Tamaño de la lupa */
    color: #ffffff !important;
}

/* Efecto hover sutil al pasar el mouse sobre la lupa */
.woodmart-search-form button.searchsubmit:hover {
    background-color: #cc1010 !important; /* Rojo un poco más oscuro */
}