/* New styles for the top header */
.header-top .scheduled-delivery-btn {
    background-color: #fff713ff; /* A yellow color */
    color: #000;
    padding: 8px 15px;
    border-radius: 40px;
    font-weight: bold;
}
.header-top .order-tracking-btn {
    background-color: #fff713ff; /* A yellow color */
    color: #000;
    padding: 12px 15px;
    border-radius: 40px;
    font-weight: bold;
    margin-left: 10px; /* Adds a bit of space between the two buttons */
    text-decoration: none;
}
/* Existing styles for the buttons */
.header-top .scheduled-delivery-btn,
.header-top .order-tracking-btn {
    background-color: #fff713ff; /* A yellow color */
    color: #000;
    padding: 12px 15px;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease; /* Add transition for a smooth effect */
}

.header-top .order-tracking-btn {
    margin-left: 10px; /* Space between the buttons */
}

/* Hover effect */
.header-top .scheduled-delivery-btn:hover,
.header-top .order-tracking-btn:hover {
    background-color: #fff713ff; /* White background on hover */
    color: #000; /* Black text on hover */
}
.header-top .promo-text {
    font-weight: bold;
    color: #fff713ff;
}

.header-top .header-info-right {
    text-align: right;
    font-size: 16px;
}

/* Styles for the main header */
.header-middle .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-middle .search-style-3 {
    flex-grow: 1;
    margin: 0 20px;
}

.header-middle .header-action-2 .header-action-icon-2 {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-middle .header-action-2 .header-action-icon-2 span {
    margin-left: 5px;
    font-weight: bold;
}

/* Styles for the bottom header */
.header-bottom .all-categories-dropdown .all-categories-btn {
    background-color: #fff713ff;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.header-bottom .main-menu nav ul li a {
    padding: 10px 15px;
}

/* New style for location link */
.location-link {
    background-color: #fff713ff;
    color: #000;
    padding: 8px 15px;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.location-link:hover {
    background-color: #fff;
    color: #000;
}

.location-link i {
    font-size: 1rem;
}

/* Custom styles for the mega dropdown */
.mega-dropdown {
position: relative;
}

.mega-menu {
position: absolute;
top: 100%;
left: 0;
width: 800px;
max-width: 90vw;
max-height: 70vh; /* Limit maximum height */
overflow-y: auto; /* Enable vertical scrolling */
padding: 20px;
background: white;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
display: none;
z-index: 1000;
}

.mega-menu.show {
display: block;
}

.category-list {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
height: 100%;
max-height: 60vh; /* Limit height */
overflow-y: auto; /* Enable scrolling */
}

.category-item {
position: relative;
margin-bottom: 2px;
}

.category-item .dropdown-item {
color: #333;
padding: 8px 12px;
border-radius: 4px;
transition: background-color 0.2s ease;
text-decoration: none;
display: block;
}

.category-item .dropdown-item:hover {
background-color: #fcee1f;
color: #000;
}

.category-item.active .dropdown-item {
background-color: #fcee1f;
color: #000;
}

.subcategory-content {
display: none;
padding: 15px;
max-height: 60vh; /* Limit height */
overflow-y: auto; /* Enable scrolling */
}

.subcategory-content.active {
display: block;
}

.subcategory-title {
font-weight: 600;
color: #333;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid #fcee1f;
}

.subcategory-items {
max-height: 50vh; /* Limit height for subcategory items */
overflow-y: auto; /* Enable scrolling */
}

.subcategory-items .dropdown-item {
color: #666;
padding: 6px 12px;
border-radius: 4px;
transition: all 0.2s ease;
text-decoration: none;
display: block;
font-size: 14px;
}

.subcategory-items .dropdown-item:hover {
background-color: #fcee1f;
color: #000;
transform: translateX(5px);
}

/* Navbar customizations */
.navbar-nav .nav-link {
color: white !important;
font-weight: 500;
padding: 12px 16px !important;
transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 4px;
}

.dropdown-toggle::after {
margin-left: 8px;
}

/* Custom scrollbar styling */
.mega-menu::-webkit-scrollbar,
.category-list::-webkit-scrollbar,
.subcategory-content::-webkit-scrollbar,
.subcategory-items::-webkit-scrollbar {
width: 6px;
}

.mega-menu::-webkit-scrollbar-track,
.category-list::-webkit-scrollbar-track,
.subcategory-content::-webkit-scrollbar-track,
.subcategory-items::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}

.mega-menu::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar-thumb,
.subcategory-content::-webkit-scrollbar-thumb,
.subcategory-items::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 10px;
}

.mega-menu::-webkit-scrollbar-thumb:hover,
.category-list::-webkit-scrollbar-thumb:hover,
.subcategory-content::-webkit-scrollbar-thumb:hover,
.subcategory-items::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.mega-menu {
width: 100vw;
left: -15px;
max-height: 80vh; /* Increase height on mobile */
}

.subcategory-content .row {
flex-direction: column;
}

.category-list,
.subcategory-content {
max-height: 70vh; /* Increase height on mobile */
}
}

/* Animation for smooth transitions */
.mega-menu {
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s ease;
}

.mega-menu.show {
opacity: 1;
transform: translateY(0);
}
.promo-wrapper {
position: relative;
height: 30px;
overflow: hidden;
}

.promo-text,
.min-order {
position: absolute;
width: 100%;
left: 0;
opacity: 0;
animation: promoSwitch 2s infinite;
font-size:1.2rem;
}

.min-order {
animation-delay: 3s;
font-size: 13px;
color: #fff713;
font-weight: 700;
font-size:1.2rem;
}

@keyframes promoSwitch {
0% {
opacity: 0;
transform: translateY(10px);
}
10% {
opacity: 1;
transform: translateY(0);
}
40% {
opacity: 1;
}
50% {
opacity: 0;
transform: translateY(-10px);
}
100% {
opacity: 0;
}
}