  :root {
            --primary-color: #242329;
            --secondary-color: #54b4ff;
            --accent-color: #744dff;
            --text-light: #ffffff;
            --text-dark: #242329;
            --bg-light: #f8f9fa;
            --bg-dark: #242329;
        }

        body {
            font-family: 'Inter', 'Arial', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            padding-top: 150px;
        }

        /* Navbar Styles */
        .navbar-inf,
        .navbar-secondary,
        .navbar-search,
        .navbar-categories {
            position: fixed;
            left: 0;
            right: 0;
            z-index: 1020;
        }

        .navbar-inf {
            top: 0;
            background-color: var(--primary-color);
            padding: 0.09rem 0.1rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .navbar-secondary {
            top: 6px; /* Ajustado para estar justo debajo del navbar-inf */
            background-color: var(--bg-light);
            padding: 0.25rem 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .navbar-search {
            top: 1px; /* Ajustado para estar debajo del navbar-secondary */
            background-color: var(--primary-color);
            padding: 1rem 0;
        }

        .navbar-categories {
            top: 1px; /* Ajustado para estar debajo del navbar-search */
            background-color: var(--bg-light);
            padding: 0.1rem 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .search-container {
            max-width: 600px;
            width: 100%;
            position: relative;
        }

        #searchForm {
            display: flex;
            width: 100%;
            gap: 0.5rem;
        }

        #searchForm input {
            flex: 1;
            border-radius: 50px;
            padding: 0.75rem 1.5rem;
            border: 2px solid var(--accent-color);
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }

        #searchForm input:focus {
            box-shadow: 0 0 0 3px rgba(116, 77, 255, 0.3);
        }

        #searchForm button {
            border-radius: 50px;
            padding: 0.5rem 1.25rem;
            background-color: var(--accent-color);
            border: none;
            transition: all 0.3s ease;
        }

        #searchForm button:hover {
            background-color: var(--secondary-color);
            transform: translateY(-1px);
        }

        #searchForm,
        #searchFormMobile {
            display: flex;
            width: 100%;
            gap: 0.5rem;
        }

        #searchFormMobile input {
            flex: 1;
            border-radius: 50px;
            padding: 0.5rem 1.25rem;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        #searchFormMobile input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 2px rgba(116, 77, 255, 0.1);
        }

        #searchFormMobile button {
            border-radius: 50px;
            padding: 0.5rem 1.25rem;
            background-color: var(--accent-color);
            border: none;
            transition: all 0.3s ease;
        }

        #searchFormMobile button:hover {
            background-color: var(--secondary-color);
            transform: translateY(-1px);
        }

        /* Search Results Styles */
        #search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: white;
            border: 1px solid #ddd;
            border-top: none;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            border-radius: 0 0 15px 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        #search-results .list-group-item {
            cursor: pointer;
            border: none;
            padding: 0.75rem 1rem;
            transition: all 0.2s ease;
        }

        #search-results .list-group-item:hover {
            background-color: var(--bg-light);
            color: var(--accent-color);
        }

        /* Navigation Categories */
        .nav-categories-container {
            position: relative;
            overflow: hidden;
        }

        .nav-categories {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding: 0.75rem 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
        }

        .nav-categories::-webkit-scrollbar {
            display: none;
        }

        .nav-categories .nav-link {
            color: var(--text-dark);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: all 0.3s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-categories .nav-link:hover {
            background-color: var(--accent-color);
            color: var(--text-light);
            transform: translateY(-1px);
        }

        .nav-categories .nav-link i {
            font-size: 1.25rem;
        }

        .category-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
              background-color: rgba(205, 265, 245, 0.9);
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--primary-color);
            z-index: 10;
            cursor: pointer;
        }

        .category-nav-btn:hover {
            background-color: rgba(205, 235, 275, 20);
        }

        .category-nav-btn.left {
            left: 10px;
        }

        .category-nav-btn.right {
            right: 10px;
        }


        /* Cards and Product Styles */
        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        }

        .card-img-top {
            height: 200px;
            object-fit: cover;
            transition: all 0.3s ease;
        }

        .card:hover .card-img-top {
            transform: scale(1.05);
        }

        .section-title {
            color: var(--text-dark);
            border-bottom: 3px solid var(--accent-color);
            padding-bottom: 0.5rem;
            margin-bottom: 2rem;
            font-weight: 600;
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            body {
                padding-top: 135px;
                padding-bottom: 70px; /* Ajustado para dar espacio a las categorías en la parte inferior */
            }

            .navbar-brand-container {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                background-color: var(--primary-color);
                padding: 0.5rem 1rem;
                z-index: 1040;
            }

            .navbar-search {
                position: fixed;
                top: 115px; /* Ajustar según la altura del navbar-brand y navbar-search */
                left: 0;
                right: 0;
                z-index: 1030;
                background-color: var(--primary-color);
                padding: 0.5rem 0;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }

            .navbar-secondary {
                position: fixed;
                top: 50px; /* Ajustar según la altura del navbar-brand */
                left: 0;
                right: 0;
                color: white;
                background-color: var(--primary-color);
                padding: 0.5rem 1rem;
                z-index: 1035;
            }

            .navbar-categories {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 1025;
                background-color: var(--bg-light);
                padding: 0.5rem 0;
                box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
            }

            .search-container {
                max-width: 100%;
                padding: 0;
            }

            #searchForm {
                gap: 0.25rem;
            }

            #searchForm input {
                font-size: 0.9rem;
                padding: 0.4rem 0.75rem;
            }

            #searchForm button {
                padding: 0.4rem 0.75rem;
                font-size: 0.9rem;
            }
            .navbar-secondary .nav-link span{
                display: none;
            }

            .navbar-secondary .nav-link {
                font-size: 0.8rem;
                padding: 0.3rem;
            }

            .navbar-secondary .nav-link i {
                font-size: 1.7rem;
                margin-bottom: 0.1rem;
            }

            /* Style for the hamburger menu button */
            .navbar-toggler {
                padding: 0.25rem 0.5rem;
                font-size: 1rem;
            }

            /* Styles for the offcanvas menu */
            .offcanvas {
                width: 250px;
            }

            .offcanvas-body .nav-categories {
                flex-direction: column;
            }

            .offcanvas-body .nav-categories .nav-link {
                padding: 0.75rem 1rem;
                font-size: 1rem;
            }

            .offcanvas-body .nav-categories .nav-link i {
                margin-right: 0.5rem;
                font-size: 1.2rem;
            }
        }

        @media (min-width: 769px) {
            .navbar-brand-container,
            .navbar-search,
            .navbar-secondary,
            .navbar-categories {
                position: static;
            }

            .navbar-top {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .navbar-brand-container,
            .navbar-search {
                flex: 1;
            }

            .search-container {
                max-width: 400px;
                margin: 0 auto;
            }
            .navbar-categories {
                background-color: var(--bg-light);
                padding: 0.5rem 0;
                box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            }

            .nav-categories .nav-link span {
                display: inline;
            }
        }

        /* Footer Styles */
        footer {
            background-color: var(--bg-dark);
            color: var(--text-light);
            padding: 3rem 0 1.5rem;
            margin-top: 3rem;
        }

        footer h5 {
            color: var(--secondary-color);
            margin-bottom: 1.25rem;
            font-weight: 600;
        }

        footer a {
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        footer a:hover {
            color: var(--secondary-color);
        }

        footer .input-group {
            border-radius: 50px;
            overflow: hidden;
        }

        footer .input-group input {
            border-radius: 50px 0 0 50px;
            border: none;
            padding: 0.75rem 1.25rem;
        }

        footer .input-group button {
            border-radius: 0 50px 50px 0;
            background-color: var(--accent-color);
            border: none;
            padding: 0.75rem 1.5rem;
        }

        footer .input-group button:hover {
            background-color: var(--secondary-color);
        }

        /* Updated Carousel Styles */
        #dealCarousel {
            max-width: 1200px;
            margin: 0 auto;
            background: var(--bg-light);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .carousel-inner {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        .carousel-item {
            position: relative;
            height: 400px; /* Fixed height for desktop */
        }

        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .carousel-caption {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 10px;
            padding: 1.5rem;
            max-width: 80%;
            margin: 0 auto;
            bottom: 2rem;
        }

        .carousel-caption h2 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .carousel-caption p {
            font-size: 1.1rem;
            margin-bottom: 0;
        }

        /* Carousel Mobile Adjustments */
        @media (max-width: 768px) {
            #dealCarousel {
                margin: 0 -0.5rem; /* Negative margin to extend to edges on mobile */
                border-radius: 0;
            }

            .carousel-item {
                height: 250px; /* Smaller height for mobile */
            }

            .carousel-caption {
                padding: 1rem;
                bottom: 1rem;
            }

            .carousel-caption h2 {
                font-size: 1.5rem;
            }

            .carousel-caption p {
                font-size: 1rem;
            }
        }

        /* Estilos mejorados para los filtros */
        .filter-card {
            border-radius: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            margin-bottom: 20px;
            border: none;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .filter-card:hover {
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
        }
        
        .filter-header {
            background-color: var(--accent-color);
            color: white;
            padding: 15px 20px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .filter-header h5 {
            margin: 0;
            font-size: 1.1rem;
        }
        
        .filter-body {
            padding: 20px;
            background-color: white;
        }
        
        .filter-section {
            margin-bottom: 25px;
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
        }
        
        .filter-section h6 {
            margin-bottom: 12px;
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Estilos para Select2 */
        .select2-container--default .select2-selection--multiple {
            border: 1px solid #ced4da;
            border-radius: 8px;
            padding: 5px;
            min-height: 42px;
            width: 100%;
        }

        .select2-container {
            width: 100% !important;
            max-width: 100%;
        }

        .select2-container--default.select2-container--focus .select2-selection--multiple {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(116, 77, 255, 0.25);
        }

        .select2-container--default .select2-selection--multiple .select2-selection__choice {
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 2px 10px;
            margin-top: 5px;
        }

        .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
            color: white;
            margin-right: 5px;
        }

        .select2-container--default .select2-results__option--highlighted[aria-selected] {
            background-color: var(--accent-color);
        }

        /* Modificar los estilos de Select2 para que los dropdowns tengan el mismo tamaño */
        .select2-dropdown {
            width: 20.7% !important;
            min-width: 250px !important;
            max-width: 100% !important;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .select2-container--default .select2-results > .select2-results__options {
            max-height: 200px;
            overflow-y: auto;
        }

        /* Asegurar que los dropdowns tengan el mismo ancho que el contenedor padre */
        .select2-container {
            width: 100% !important;
        }
        .select2-search--dropdown .select2-search__field {
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 8px;
        }

        .select2-search--dropdown .select2-search__field:focus {
            border-color: var(--accent-color);
            outline: none;
        }
        
        /* Estilos para el rango de precios */
        .price-slider {
            margin: 30px 10px 20px;
        }
        
        .price-range {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-weight: 500;
        }
        
        .noUi-connect {
            background: var(--accent-color);
        }
        
        .noUi-horizontal {
            height: 8px;
        }
        
        .noUi-horizontal .noUi-handle {
            width: 22px;
            height: 22px;
            right: -11px;
            top: -8px;
            border-radius: 50%;
            background-color: white;
            box-shadow: 0 0 5px rgba(0,0,0,0.2);
            cursor: pointer;
        }
        
        .noUi-handle:after, 
        .noUi-handle:before {
            display: none;
        }
        
        /* Estilos para los productos */
        .product-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            background-color: white;
            overflow: hidden;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        
        .product-img {
            height: 220px;
            object-fit: cover;
            transition: all 0.5s ease;
        }
        
        .product-card:hover .product-img {
            transform: scale(1.05);
        }
        
        .product-body {
            padding: 20px;
        }
        
        .product-title {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 1.1rem;
            color: var(--text-dark);
        }
        
        .product-meta {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 12px;
        }
        
        .product-price {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--accent-color);
        }
        
        .discount-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 10;
            padding: 5px 12px;
            font-weight: 600;
            border-radius: 50px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
            }
        }
        
        .product-actions {
            margin-top: 15px;
        }
        
        .product-actions .btn {
            border-radius: 50px;
            padding: 8px 15px;
            transition: all 0.3s ease;
        }
        
        .product-actions .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .product-actions .btn-primary {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
        }
        
        .product-actions .btn-primary:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }
        
        /* Estilos para los controles de filtro */
        .filter-controls {
            background-color: white;
            border-radius: 15px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .filter-toggle {
            border-radius: 50px;
            padding: 8px 15px;
            font-weight: 500;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            background-color: transparent;
            transition: all 0.3s ease;
        }
        
        .filter-toggle:hover {
            background-color: var(--accent-color);
            color: white;
        }
        
        .sort-select {
            border-radius: 8px;
            padding: 8px 15px;
            border: 1px solid #ced4da;
            background-color: white;
            transition: all 0.3s ease;
        }
        
        .sort-select:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(116, 77, 255, 0.25);
        }
        
        /* Estilos para el contador de resultados */
        .results-count {
            font-size: 0.95rem;
            color: #6c757d;
            margin-bottom: 20px;
        }
        
        /* Estilos para el estado vacío */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .empty-state h4 {
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-dark);
        }
        
        .empty-state p {
            color: #6c757d;
            margin-bottom: 20px;
        }
        
        .empty-state .btn {
            border-radius: 50px;
            padding: 10px 25px;
            font-weight: 500;
            background-color: var(--accent-color);
            border: none;
            transition: all 0.3s ease;
        }
        
        .empty-state .btn:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        /* Estilos para la barra de búsqueda en filtros */
        .search-input-container {
            position: relative;
        }
        
        .search-input-container .bi-search {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
        }
        
        .search-input {
            padding-left: 40px;
            border-radius: 50px;
            border: 1px solid #ced4da;
            padding-top: 10px;
            padding-bottom: 10px;
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(116, 77, 255, 0.25);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .filter-card {
                border-radius: 12px;
                margin-bottom: 15px;
            }
            
            .filter-header {
                padding: 12px 15px;
            }
            
            .filter-body {
                padding: 15px;
            }
            
            .filter-section {
                margin-bottom: 20px;
            }
            
            .filter-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                width: auto;
                margin-right: 10px;
                padding: 8px 15px;
                font-weight: 500;
                border-radius: 50px;
            }
            
            .filter-toggle i {
                margin-right: 5px;
                font-size: 1.1rem;
            }
            
            .filters-container {
                position: fixed;
                top: 150px;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 1040;
                overflow-y: auto;
                padding: 15px;
            }
            
            .filters-container .filter-card {
                max-height: 80vh;
                overflow-y: auto;
                margin-bottom: 0;
            }
            
            .filter-controls {
                position: sticky;
                top: 150px;
                z-index: 1030;
                background-color: rgba(255, 255, 255, 0.95);
                border-radius: 12px;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            }

            .select2-container {
                width: 100% !important;
            }
            
            .select2-dropdown {
                width: auto !important;
                max-width: 90vw !important;
            }
            
            .select2-container--open .select2-dropdown {
                left: 50% !important;
                transform: translateX(-50%);
            }
        }

        /* Corregir el espacio extra en el footer para móviles */
        @media (max-width: 768px) {
            footer {
                margin-bottom: 0;
                padding-bottom: 80px; /* Ajustado para dar espacio a la barra de navegación inferior */
            }
            
            body {
                padding-bottom: 0; /* Eliminar padding extra del body */
            }
        }

        /* Ajustar el tamaño de los dropdowns en móvil */
        @media (max-width: 768px) {
            .select2-container--open .select2-dropdown {
                width: calc(100% - 30px) !important;
                left: 15px !important;
                right: 15px !important;
                transform: none !important;
                position: fixed;
                top: auto;
                max-height: 250px;
                overflow-y: auto;
            }
            
            .filters-container {
                padding: 10px;
            }
            
            .filter-card {
                margin-bottom: 0;
            }
        }

        /* Paginación */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 30px;
            margin-bottom: 20px;
        }

        .pagination .page-item .page-link {
            color: var(--accent-color);
            border: 1px solid #dee2e6;
            margin: 0 3px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .pagination .page-item.active .page-link {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .pagination .page-item .page-link:hover {
            background-color: #f8f9fa;
            color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .pagination .page-item.disabled .page-link {
            color: #6c757d;
            pointer-events: none;
            background-color: #fff;
        }
   
    /* Estilos para los botones de acción en móvil */
    .filter-actions {
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .filter-actions .btn {
        border-radius: 50px;
        padding: 10px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .filter-actions .btn-outline-secondary {
        border-color: #ced4da;
        color: #6c757d;
    }
    
    .filter-actions .btn-outline-secondary:hover {
        background-color: #f8f9fa;
        color: #495057;
    }
    
    .filter-actions .btn-primary {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }
    
    .filter-actions .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    /* Ajustar el contenedor de filtros en móvil para que tenga un padding inferior */
    @media (max-width: 768px) {
        .filters-container .filter-card {
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
    }