* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Cormorant Garamond", serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-btn {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.cart-btn:hover {
    opacity: 0.9;
}

.hero {
    padding: 140px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* === CATEGORY NAVIGATION === */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 40px 20px;
    flex-wrap: wrap;
}

.category-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-btn:hover {
    color: #1a1a1a;
}

.category-btn.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

/* === MENU GRID === */
.menu-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.menu-item {
    display: flex;
    flex-direction: column;
}


.menu-item:hover .item-img {
    transform: scale(1.01);  
    transition: transform 0.6s ease;  
}

.item-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08); 
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    height: auto;  
    display: block; 
    max-height: 600px;  
}

.menu-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-category-header {
    grid-column: 1 / -1;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e5e5;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

.item-rating,
.item-calories {
    font-size: 13px;
    color: #999;
}

.item-ingredients {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin: 4px 0;
}

.item-price {
    margin-top: 8px;
    font-family: 'Lato', sans-serif;  
    font-weight: 300;  
    font-size: 24px;
    letter-spacing: 1px;
}

.add-btn {
    margin-top: 16px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
    letter-spacing: 2px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-end;
    transition: all 0.4s ease;

}

.add-btn:hover {
    background: white;
    color: #1a1a1a;
}

.add-btn:active {
    transform: scale(0.98);
}

/* === ORDER SIDEBAR === */
.order-sidebar {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 360px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 90;
}

.order-sidebar.active {
    right: 40px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}

.clear-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.clear-btn:hover {
    color: #333;
}

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

.order-item-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    font-weight: 500;
}

.order-item-price {
    font-size: 14px;
    font-weight: 600;
}

/* Order summary breakdown */
.order-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #2c2c2c;
    margin-top: 12px;
    color: #1a1a1a;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
}

.remove-btn:hover {
    color: #ff0000;
}

.order-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #2c2c2c;
}

.complete-btn {
    background: #00845f;
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s;
    margin-top: 16px;
}

.complete-btn:hover {
    opacity: 0.9;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    padding: 50px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    z-index: 201;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #00845f;
}

.pay-btn {
    background: #00845f;
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

.pay-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pay-btn:active {
    transform: translateY(0);
}

/* === THANK YOU SCREEN === */
.thank-you {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00845f 0%, #006b4d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 300;
    padding: 40px;
}

.thank-you.hidden {
    display: none;
}

.thank-you h2 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 20px;
    color: white;
    animation: fadeInUp 0.6s ease;
}

.thank-you p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease;
}

.order-number {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}

.eta {
    margin-top: 30px;
    font-size: 20px !important;
    color: white !important;
}

.new-order-btn {
    margin-top: 50px;
    background: white;
    color: #00845f;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1s ease;
}

.new-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.favorite-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}


.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #1a1a1a;
    color: white;
    padding: 16px 24px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Service fee highlight */
.service-fee {
    color: #2d7a3e;  /* Green for $0 fee */
    font-weight: 600;
}

/* Order calories display */
.order-calories {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Delivery estimate */
.delivery-estimate {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

/* Reorder button */
.reorder-btn {
    margin-top: 20px;
    background: white;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 12px 32px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 4px;
}

.reorder-btn:hover {
    background: #1a1a1a;
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .order-sidebar {
        right: -400px;
    }
    
    .order-sidebar.active {
        right: 20px;
    }
    
    .hero h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .menu-grid {
        padding: 30px 20px 80px;
    }
    
    .category-nav {
        gap: 12px;
        padding: 30px 20px 20px;
    }
    
    .order-sidebar {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .order-sidebar.active {
        right: 20px;
    }
}

.hidden {
    display: none;
}
