 :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-color: var(--bg-light);
            padding-top: 150px
        }

      /* Navbar Styles */
.navbar-inf,
.navbar-secondary,
.navbar-search,
.navbar-categories {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-inf {
  top: 0;
  background-color: var(--primary-color);
  padding: 0.60rem 0.5rem;
  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: block;
        }

        .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;
            }
            /*.nav-categories {
                justify-content: flex-start;
                padding: 0.5rem 2rem;
            }

            .nav-categories .nav-link {
                flex-direction: column;
                font-size: 0.98rem;
                padding: 0.9rem;
            }*/
/*
            .nav-categories .nav-link i {
                font-size: 1.45rem;
                margin-bottom: 0.25rem;
            }
*/
            /*.nav-categories {
                justify-content: space-around;
            }

            .nav-categories .nav-link {
                flex-direction: column;
                font-size: 0.7rem;
            }

            .nav-categories .nav-link i {
                font-size: 1.7rem;
                margin-bottom: 0.2rem;
            }*//*

            .nav-categories .nav-link span {
                display: none;
            }*/
            /* 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;
            }
        }