@import url('https://fonts.googleapis.com/css2?family=Righteous&display=swap');

/* Reset and Base Styles */
*, ::after, ::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Righteous', cursive, sans-serif;
    line-height: 1.6;
   
    /* overflow-x: hidden; */
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 251, 235, 0.5);
    color: #000;
    padding: 10px;
    transition: top 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header.hidden {
    top: -100px;
}

header.compact #categories {
    display: none;
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 15px;
}

/* Logo Styles */
.logo, .logo a {
    display: flex;
    align-items: center;
}

.logo {
    gap: 25px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.mylogo {
    height: 45px;
    width: auto;
}

.co-name {
    height: 25px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.hamburger:hover {
    transform: scale(1.2);
}

/* Search Box */
.nav-container .search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 2px 10px;
    width: 60%;
    position: relative;
    outline: orange solid 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container .search-box:focus-within {
    outline: orange solid 2px;
    box-shadow: 0 0 5px orange;
}

.nav-container .search-box input {
    border: none;
    outline: none;
    padding: 8px;
    flex: 1;
    border-radius: 20px;
    font-size: 14px;
}

.nav-container .search-box .search-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #000;
}

/* Autocomplete List */
#autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    list-style: none;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 5px;
    z-index: 1000;
}

#autocomplete-list li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

#autocomplete-list li:hover {
    background: #f0f8ff;
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icons a, .nav-icons button {
    background: none;
    border: none;
    color: #000;
    text-decoration: none;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.nav-icons a:hover, .nav-icons button:hover {
    transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fffbeb;
    color: #333;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.dropdown-item:hover {
    background: #f0f8ff;
}

.dropdown-item i {
    font-size: 18px;
    color: orange;
}

/* Categories Section */
#categories {
    text-align: center;
    margin-top: 10px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-buttons button {
    background: rgba(255, 251, 235, 0.8);
    color: #000;
    border: 2px solid #ffc600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-buttons button:hover {
    background: #ffc600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-buttons button i {
    font-size: 18px;
    color: #000;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 1.5s infinite pulse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Flash Messages */
#flash-messages {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
}

.flash-message {
    background: #333;
    color: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.5s;
}

.flash-message.error {
    background: #e74c3c;
}

.flash-message.success {
    background: #27ae60;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #mobile-search-toggle, .hamburger {
        display: inline-flex;
    }

    #categories, .nav-container .search-box {
        display: none;
    }

    /* Mobile Search */
    .mobile-search {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-search.active {
        max-height: 80px;
    }

    .mobile-search .search-box {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 10px;
        padding: 1px 10px;
        margin: 10px 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        outline: orange solid 2px;
    }

    .mobile-search .search-box input {
        border: none;
        outline: none;
        padding: 8px;
        flex: 1;
        border-radius: 20px;
        font-size: 14px;
    }

    .mobile-search .search-box .search-btn {
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        color: #000;
    }

    /* Mobile Autocomplete */
    #mobile-autocomplete-list {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        background: #fff;
        list-style: none;
        padding: 0;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        margin-top: 5px;
        z-index: 1000;
    }

    #mobile-autocomplete-list li {
        padding: 10px;
        cursor: pointer;
        transition: background 0.3s;
    }

    #mobile-autocomplete-list li:hover {
        background: #f0f8ff;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        background: rgba(255, 251, 235, 0.8);
        color: #000;
        padding: 20px;
        box-sizing: border-box;
        transition: left 0.3s ease-in-out;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-menu.active {
        left: 0;
    }

    .close-menu {
        background: none;
        border: none;
        font-size: 24px;
        color: #000;
        align-self: flex-end;
        cursor: pointer;
    }


    .hamburger {
        display: block;
      }

    /* Mobile Category Buttons */
    .mobile-category-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .mobile-category-buttons button {
        background: rgba(255, 251, 235, 0.6);
        color: #000;
        border: 2px solid #ffc600;
        padding: 10px 15px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.3s, box-shadow 0.3s;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-category-buttons button:hover {
        background: #ffc600;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .mobile-category-buttons button i {
        font-size: 18px;
        color: #000;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    header {
        padding: 6px;
    }

    .nav-container {
        gap: 8px;
        padding: 0 10px;
    }

    .mylogo {
        height: 35px;
    }

    .co-name {
        height: 20px;
    }

    .hamburger, .nav-icons a, .nav-icons button {
        font-size: 20px;
    }

    .nav-icons {
        gap: 5px;
    }

    .nav-container .search-box {
        padding: 2px 8px;
        width: 50%;
    }

    .nav-container .search-box input {
        padding: 6px;
        font-size: 12px;
    }
}

/* Desktop-Only Elements */
@media (min-width: 769px) {
    #mobile-search, #mobile-search-toggle {
        display: none;
    }
}