/**
* 2007-2024 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-2024 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.
*/
/* Estilos para el slider de marcas sin JavaScript */

/* Estilos para el slider de marcas con Glider.js */
.home-banner {
    margin: 5px;
}

/* Slider de Marcas */
.brands-slider {
    width: 100%;
    overflow-x: auto; /* Habilitar scroll horizontal */
    scroll-snap-type: x mandatory; /* Scroll Snap para mover de un slide a otro */
    -webkit-overflow-scrolling: touch; /* Suavidad en dispositivos táctiles */
    height: 85px; /* Altura del slider */
}

.brands-slides {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre slides */
    padding: 10px; /* Para añadir algo de espacio alrededor del contenedor */
}

.brand-slide {
    flex: 0 0 30%; /* Dos imágenes y media por pantalla */
    scroll-snap-align: center; /* Alineación de cada slide */
    box-sizing: border-box;
    padding: 10px;
}

.brand-slide img {
    width: 100%;
    height: auto;
    max-height: 30px;
    margin:auto;
}

/* Estilo opcional para ocultar barras de scroll en navegadores */
.brands-slider::-webkit-scrollbar {
    display: none; /* Ocultar scroll en navegadores WebKit */
}

/* Estilos para la sección de categorías */

.container-categories {
    width:100% !important;
}

.categories-section .categories-grid {
    display: flex;
    flex-wrap: wrap; /* Asegura que los elementos se ajusten en filas */
    margin-bottom:10px;
}

.category-item {
    /* margin-top: 30px; */
    max-width: 50%; /* Fuerza que cada categoría ocupe el 50% del ancho */
    flex: 0 0 50%; /* Asegura que cada categoría ocupe la mitad de la fila */
    box-sizing: border-box; /* Evita que el padding o margen altere el tamaño */
    padding: 5px;
}

.category-link {
    display: block;
    width: 100%; /* Asegura que el enlace ocupe todo el espacio de la columna */
}

.category-link img {
    width: 100%; /* Asegura que la imagen ocupe todo el espacio disponible */
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.category-link:hover img {
    transform: scale(1.05);
}

/* Ocultar todo en pantallas grandes (tabletas y escritorios) */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important; /* Forzamos que no se muestre en pantallas grandes */
    }
}

/* Aseguramos que las categorías y otros elementos se muestren correctamente en pantallas pequeñas */
.mobile-only {
    display: block; /* Forzamos que se muestre solo en pantallas pequeñas */
}
