:root {
    --primary-color: #6F4E37;
    --secondary-color: #C4A484;
    --accent-color: #D2B48C;
    --light-color: #F5F5DC;
    --dark-color: #3E2723;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.logo-container {
    text-align: center;
    padding: 0.5rem;
}

.logo-container h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.slogan {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5rem 0;
    background-color: var(--dark-color);
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 3rem;
}

.menu-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.item-image {
    height: 200px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

.item-info {
    padding: 1rem;
}

.item-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.item-info p {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

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

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.add-to-cart {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

.fab-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-decoration: none;
}

.fab.cart {
    background-color: #ff9800;
    position: relative;
}

.fab.phone {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.fab.zalo {
    background-color: #0080FF;
    animation: pulse 2s infinite 0.5s;
}

.fab:hover {
    transform: scale(1.1);
}

.order-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item-info {
    display: flex;
    flex-direction: column;
}

.order-item-name {
    font-weight: bold;
}

.order-item-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.order-item-quantity {
    display: flex;
    align-items: center;
}

.order-item-quantity button {
    background-color: var(--light-color);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.order-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.order-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#continueOrder {
    background-color: var(--light-color);
    color: var(--dark-color);
}

#continueOrder:hover {
    background-color: #e0e0e0;
}

#sendOrder {
    background-color: var(--primary-color);
    color: white;
}

#sendOrder:hover {
    background-color: var(--dark-color);
}

footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-section i {
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.25rem;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
    }
    
    .order-actions {
        flex-direction: column;
    }
}
