/* Color Scheme based on Wanam Sa Bukid branding */
:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2a;
    --light-green: #e8f5e9;
    --accent-brown: #8b4513;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 5px 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: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.logo-text p {
    font-size: 1.2rem;
    color: var(--secondary-green);
}

.est {
    font-size: 0.9rem !important;
    font-style: italic;
}

.timer-container {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
}

.timer #time-remaining {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

/* Navigation Styles */
.category-nav {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--light-green);
    border-radius: 5px;
    overflow: hidden;
}

.nav-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.nav-btn:hover:not(.active) {
    background-color: var(--secondary-green);
    color: var(--text-light);
}

/* Menu Categories */
.menu-categories {
    width: 100%;
}

.category-section {
    display: none;
}

.category-section.active {
    display: block;
}

.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-nav-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-nav-btn.active {
    background-color: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.sub-nav-btn:hover:not(.active) {
    background-color: var(--light-green);
}

.subcategory {
    display: none;
}

.subcategory.active {
    display: block;
}

.subcategory h2 {
    color: var(--primary-green);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-green);
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

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

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

.item-image {
    height: 160px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.item-details {
    padding: 15px;
}

.item-details h3 {
    color: var(--primary-green);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    min-height: 40px;
}

.price-options {
    margin-bottom: 15px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-option:last-child {
    border-bottom: none;
}

.add-to-cart-option {
    padding: 5px 10px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

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

.price {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--accent-brown);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    padding: 8px 15px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

.combo-item .item-details {
    background-color: var(--light-green);
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    order: -1; /* Place at the top */
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-header h2 {
    color: var(--primary-green);
}

.clear-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-btn:hover {
    text-decoration: underline;
}

.order-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

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

.order-item:last-child {
    border-bottom: none;
}

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

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.remove-item {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}

.order-total {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
}

.subtotal, .total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-brown);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

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

.checkout-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirm-btn {
    flex: 1;
    padding: 10px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    flex: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1 0 45%;
        margin: 5px;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-container {
        margin-top: 15px;
    }
    
    .price-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .add-to-cart-option {
        align-self: flex-end;
        margin-top: 5px;
    }
}
/* Animations for modals */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}