
/* --- Estilos Generales --- */
.product-list-filters .form-control {
    margin-bottom: 1rem;
}
.align-self-end {
    align-self: flex-end;
}

/* --- 1. Estilo del botón "Añadir al carrito" --- */
#product-list-table .add-to-cart-ajax {
    padding: 10px;
    line-height: 1;
}
#product-list-table .add-to-cart-ajax .material-icons {
    margin-right: 0;
}
#product-list-table .add-to-cart-ajax span {
    display: none;
}

/* --- 2. Estilos para hacer la tabla responsive en móviles --- */
@media screen and (max-width: 767px) {
    #product-list-table thead {
        display: none;
    }
    #product-list-table tbody, #product-list-table tr, #product-list-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #product-list-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 4px;
    }
    #product-list-table td {
        text-align: right;
        position: relative;
        padding-left: 110px;
        border: none;
        min-height: 38px;
        line-height: 2;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    #product-list-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
    #product-list-table td.text-center {
        text-align: center;
        padding-left: 0;
    }
    #product-list-table td.text-center:before {
        content: none;
    }
    #product-list-table td .product-quantity-input {
        width: 80px;
        margin: 0 auto;
    }
    #product-list-table td .add-to-cart-ajax {
        width: 100%;
        margin-top: 10px;
    }
    #product-list-table .add-to-cart-ajax span {
       display: inline-block;
       vertical-align: middle;
    }
     #product-list-table .add-to-cart-ajax .material-icons {
        margin-right: 5px;
        vertical-align: middle;
    }
    .pagination ul {
        flex-wrap: wrap;
        justify-content: center !important; /* Forzar centrado en móvil */
    }
    .product-list-filters .align-self-end {
        align-self: auto !important; /* Permitir que el botón ocupe todo el ancho */
    }
}
/* --- Estilos para la ordenación de columnas --- */
#product-list-table thead th a {
    color: inherit;
    text-decoration: none;
    display: block;
}
#product-list-table thead th a:hover {
    color: #23527c; /* O el color de enlace de tu tema */
}
#product-list-table thead th.sorted a {
    font-weight: bold;
}
.sort-indicator {
    font-size: 0.8em;
}