/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

#grid-list-toggle {
  margin-bottom: 15px;
}

#grid-list-toggle .btn {
  padding: 8px;
}

#grid-list-toggle .btn.active {
  background-color: #2eacce;
  color: #fff;
}

#add_to_cart_tlg {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: normal;
  font-style: normal;
}

/* TRILOGI - INICIO - Fijar cabecera y 3 primeras columnas */
.table-product-list {
  max-height: calc(100vh - 280px);
  overflow: auto;
  position: relative;
}

/* Tabla */
.table-product-list table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

/* Cabecera sticky */
.table-product-list thead th {
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  z-index: 20;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Columna 1 */
.table-product-list thead th:nth-child(1),
.table-product-list tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  min-width: 80px;
  width: 80px;
  z-index: 30;
  /* mayor que la cabecera */
}

/* Columna 1 - cabecera fija vertical y horizontal */
.table-product-list thead th:nth-child(1) {
  z-index: 50;
}

/* Columna 2 */
.table-product-list thead th:nth-child(2),
.table-product-list tbody td:nth-child(2) {
  position: sticky;
  left: 80px;
  /* suma de columna 1 */
  min-width: 250px;
  z-index: 29;
}

/* Columna 2 - cabecera fija vertical y horizontal */
.table-product-list thead th:nth-child(2) {
  z-index: 49;
}

/* Columna 3 - Precio */
.table-product-list thead th:nth-child(3),
.table-product-list tbody td:nth-child(4) {
  position: sticky;
  left: 330px;
  /* suma de columna1 + columna2 */
  min-width: 111px;
  z-index: 28;
}

/* Columna 3 - cabecera fija vertical y horizontal */
.table-product-list thead th:nth-child(3) {
  z-index: 48;
}

/* Fondo de cabecera para columnas fijas */
.table-product-list thead th:nth-child(1),
.table-product-list thead th:nth-child(2),
.table-product-list thead th:nth-child(3) {
  background-color: #f5f5f5;
}

/* Mantener colores de filas alternadas para columnas fijas */
.table-striped tbody tr:nth-of-type(odd) td:nth-child(1),
.table-striped tbody tr:nth-of-type(odd) td:nth-child(2),
.table-striped tbody tr:nth-of-type(odd) td:nth-child(4) {
  background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(even) td:nth-child(1),
.table-striped tbody tr:nth-of-type(even) td:nth-child(2),
.table-striped tbody tr:nth-of-type(even) td:nth-child(4) {
  background-color: #fff;
}

/* Footer fijo */
.table-footer-fixed {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
}

.table-footer-fixed .functional-buttons {
  margin: 0;
}

.table-footer-fixed .button-container {
  text-align: right;
}

/* TRILOGI - FIN - Fijar cabecera y 3 primeras columnas */