/* styles.css */

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #FFF8F0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1A1A1A;
    color: #FFF8F0;
}

header {
    background-color: #F5E9D6;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

header.dark-mode {
    background-color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #5D4037;
    transition: color 0.3s;
}

.logo.dark-mode {
    color: #FFF8F0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links li a {
    color: #5D4037;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a.dark-mode {
    color: #FFF8F0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #5D4037;
    margin: 3px 0;
    transition: background-color 0.3s;
}

.hamburger .bar.dark-mode {
    background-color: #FFF8F0;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #F5E9D6, #FFF8F0);
    padding: 10rem 2rem;
    text-align: center;
    color: #5D4037;
    transition: background-color 0.3s, color 0.3s;
}

#hero.dark-mode {
    background: linear-gradient(135deg, #333, #1A1A1A);
    color: #FFF8F0;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.hero-content h1.dark-mode {
    color: #FFF8F0;
}

.hero-badges span {
    background-color: #5D4037;
    color: #FFF8F0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.hero-badges span.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.hero-buttons .btn {
    background-color: #5D4037;
    color: #FFF8F0;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-buttons .btn.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.hero-buttons .btn:hover {
    background-color: #3E2723;
}

.hero-buttons .btn.dark-mode:hover {
    background-color: #D7CCC8;
}

/* Menu Section */
#menu {
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background-color: #F5E9D6;
    color: #5D4037;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn.dark-mode {
    background-color: #333;
    color: #FFF8F0;
}

.filter-btn.active {
    background-color: #5D4037;
    color: #FFF8F0;
}

.filter-btn.active.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.menu-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.menu-card {
    background-color: #FFF8F0;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: calc(33.333% - 2rem);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.menu-card.dark-mode {
    background-color: #1A1A1A;
    color: #FFF8F0;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.menu-card h3.dark-mode {
    color: #FFF8F0;
}

.menu-card p {
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.menu-card p.dark-mode {
    color: #FFF8F0;
}

.add-to-cart {
    background-color: #5D4037;
    color: #FFF8F0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.add-to-cart:hover {
    background-color: #3E2723;
}

.add-to-cart.dark-mode:hover {
    background-color: #D7CCC8;
}

/* Cart Widget */
.cart-widget {
    background-color: #FFF8F0;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: calc(33.333% - 2rem);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.cart-widget.dark-mode {
    background-color: #1A1A1A;
    color: #FFF8F0;
}

.cart-widget h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.cart-widget h3.dark-mode {
    color: #FFF8F0;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.cart-items li.dark-mode {
    color: #FFF8F0;
}

.cart-items .item-name {
    flex: 1;
}

.cart-items .item-quantity {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-items .item-quantity button {
    background-color: #F5E9D6;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-items .item-quantity button.dark-mode {
    background-color: #333;
    color: #FFF8F0;
}

.cart-items .item-quantity input {
    width: 3rem;
    text-align: center;
    border: none;
    border-radius: 5px;
    padding: 0.3rem;
    transition: background-color 0.3s;
}

.cart-items .item-quantity input.dark-mode {
    background-color: #333;
    color: #FFF8F0;
}

.cart-total {
    font-weight: bold;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.cart-total.dark-mode {
    color: #FFF8F0;
}

.checkout-btn {
    background-color: #5D4037;
    color: #FFF8F0;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.checkout-btn:hover {
    background-color: #3E2723;
}

.checkout-btn.dark-mode:hover {
    background-color: #D7CCC8;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.search-bar input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.search-bar input.dark-mode {
    border-color: #FFF8F0;
    background-color: #333;
    color: #FFF8F0;
}

.search-bar button {
    background-color: #5D4037;
    color: #FFF8F0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button.dark-mode {
    background-color: #FFF8F0;
    color: #333;
}

.search-bar button:hover {
    background-color: #3E2723;
}

.search-bar button.dark-mode:hover {
    background-color: #D7CCC8;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.theme-toggle span {
    margin-left: 0.5rem;
    transition: color 0.3s;
}

.theme-toggle span.dark-mode {
    color: #FFF8F0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #F5E9D6;
        padding: 1rem;
        transition: background-color 0.3s;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links.active.dark-mode {
        background-color: #333;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .menu-cards {
        flex-direction: column;
    }

    .menu-card {
        width: 100%;
    }

    .cart-widget {
        width: 100%;
    }
}