/* Estilos para el Grid de Productos en Home */
.home-product-grid {
    padding: 60px 20px;
    max-width: 75%;
}

.home-product-grid h2 {
    font-size: 2.5rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajuste para que los productos se vean bien en móviles */
@media only screen and (max-width: 768px) {
    .home-product-grid {
        padding: 30px 10px;
    }
}

/* Asegurar uniformidad en los títulos del grid */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6em; /* Reserva espacio para 2 líneas */
    margin-bottom: 10px;
    color: #222;
}

/* Mejorar la página de Mi Cuenta para B2B */
/* Layout de dos columnas lado a lado en escritorio */
@media (min-width: 769px) {
    .woocommerce-account .u-columns.col2-set {
        display: flex !important;
        gap: 30px;
        align-items: flex-start;
    }
    .woocommerce-account .u-column1, 
    .woocommerce-account .u-column2 {
        flex: 1;
        background: #fff;
        padding: 30px;
        border: 1px solid #eee;
        border-radius: 8px;
    }
}

.woocommerce .col2-set, .woocommerce-page .col2-set{
    width: 100%;
    display: flex !important;
    max-width: 100%;
    margin: 40px;
    padding: 15px;
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Títulos más limpios */
.woocommerce-account h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #d9534f;
    display: inline-block;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

/* Estilo de los campos de formulario */
.woocommerce-form-row input {
    border-radius: 4px !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
}

/* Estilo del botón de envío */
.woocommerce-form-login__submit, 
.woocommerce-form-register__submit {
    width: 100%;
    padding: 15px !important;
    background-color: #d9534f !important; /* Rojo corporativo */
    font-weight: bold !important;
    border-radius: 4px !important;
}

.woocommerce-form-login__submit:hover {
    background-color: #c9302c !important;
}

/* Cambiar el tamaño del título en la ficha de producto */
.single-product div.product .product_title {
    font-size: 32px !important; /* Ajusta el número a tu gusto */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
}

/* Ajuste para dispositivos móviles */
@media only screen and (max-width: 600px) {
    .single-product div.product .product_title {
        font-size: 24px !important;
    }
}

/* Contenedor de filtros */
.b2b-filter-wrapper {
    display: flex;
    gap: 50px;
    padding: 20px 0;
}

.filter-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Listas limpias */
.b2b-filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.b2b-filter-list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.b2b-filter-list li a {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
}

.b2b-filter-list li a:hover {
    color: #000;
    font-weight: bold;
}

.b2b-filter-list .count {
    font-size: 10px;
    color: #999;
    margin-left: 5px;
}

/* Ajuste Grid 4 columnas */
.woocommerce ul.products li.product {
    width: 22.05%; /* Ajuste fino para margen en 4 columnas */
    margin-right: 3.8%;
}

.woocommerce ul.products li.product:nth-child(4n) {
    margin-right: 0;
}

/* Respetar estilos de D Theme con ajustes específicos */
/* Expandir el contenedor de productos al ancho total */
.interking-custom-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 5%; /* Espaciado interno para que no toque los bordes */
}

.interking-custom-wrapper ul.products {
    max-width: 1400px; /* O el ancho máximo que desees */
    margin: 0 auto !important;
}

.woocommerce ul.products li.product .interking-image-wrap {
    width: 70%;
    margin: 0 auto 15px;
}

.woocommerce ul.products li.product .interking-image-wrap img {
    width: 100%;
    height: auto;
}

.shop-item-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
    color: #666;
}

/* Forzar 2 columnas en móvil manteniendo el estilo del tema */
.page-template-default:not(.woocommerce-page) .full-width-interking {
    width: 100%;
}

/* Forzar al padre directo si es necesario */
.page-template-default:not(.woocommerce-page) #genesis-content {
    max-width: 100% !important;
}

@media only screen and (max-width: 600px) {
    .woocommerce ul.products.columns-3 {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .woocommerce ul.products.columns-3 li.product {
        width: 48% !important;
        margin-right: 4% !important;
        float: left;
    }
    .woocommerce ul.products.columns-3 li.product:nth-child(2n) {
        margin-right: 0 !important;
    }
}