/* Reset and Base Styles */

* {
     margin: 0; padding: 0; box-sizing: border-box;
}

/* Design System Variables */

:root {
    --background: hsl(35, 20%, 98%);
    --foreground: hsl(25, 25%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(25, 25%, 15%);
    --primary: hsl(20, 85%, 55%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(25, 95%, 70%);
    --secondary: hsl(35, 25%, 92%);
    --secondary-foreground: hsl(25, 25%, 15%);
    --muted: hsl(35, 15%, 94%);
    --muted-foreground: hsl(25, 15%, 45%);
    --accent: hsl(30, 80%, 60%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(35, 20%, 88%);
    --warm-cream: hsl(45, 35%, 96%);
    --rich-brown: hsl(25, 35%, 25%);
    --golden-accent: hsl(40, 85%, 65%);
    --soft-shadow: hsl(25, 25%, 15%);

/* Gradients */

    --gradient-warm: linear-gradient(135deg, var(--primary), var(--primary-glow));
    --gradient-hero: linear-gradient(180deg, var(--warm-cream), var(--background));
    --gradient-card: linear-gradient(145deg, var(--card), var(--secondary));

/* Shadows */

    --shadow-warm: 0 10px 30px -10px hsl(var(--soft-shadow) / 0.15); --shadow-hover: 0 20px 40px -15px hsl(var(--primary) / 0.25);

/* Transitions */

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius: 0.75rem;

}

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background-color: var(--background); 
    color: var(--foreground); 
    line-height: 1.6;
}

.container { 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 1rem;
}

/*Animations */

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceGentle {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out;
}

.animate-slide-up { 
    animation: slideUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animate-bounce-gentle { 
    animation: bounceGentle 0.8s ease-out;
}

/* Button System */

.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem; 
    border: none; 
    border-radius: 
    var(--radius); 
    font-size: 0.875rem; 
    font-weight: 500; 
    cursor: pointer; 
    transition: var(--transition-smooth);
    text-decoration: none; 
    position: relative;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm { 
    padding: 0.375rem 0.75rem; 
    font-size: 0.8rem;
}

.btn-lg { 
    padding: 0.75rem 2rem; 
    font-size: 1rem;
}

.btn-hero { 
    background: var(--gradient-warm);
    color: var(--primary-foreground); 
    font-size: 1.125rem; 
    font-weight: 600; 
    padding: 1rem 2rem; 
    border-radius: 1rem; 
    box-shadow: var(--shadow-warm);
}
.btn-hero:hover { 
    box-shadow: var(--shadow-hover); 
    transform: scale(1.05);
}

.btn-outline { 
    border: 1px solid var(--primary); 
    background: var(--background); 
    color: var(--primary);
}

.btn-cart:hover { 
    background: hsl(30, 80%, 50%); 
    box-shadow: var(--shadow-hover);
}

.btn-ghost { 
    background: transparent; 
    color: var(--foreground);
}

.btn-ghost:hover { 
    /* background: var(--secondary); */
    background: hsl(30, 80%, 50%); 
    box-shadow: var(--shadow-hover);
}

/* Header */

.header { 
    background: var(--card);
    box-shadow: var(--shadow-warm); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 50;
}

.header-content { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1rem 0;
}

.logo h1 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--rich-brown); 
    margin: 0;
}

.logo span { 
    font-size: 0.875rem; 
    color: var(--muted-foreground);
}

.nav { 
    display: none; 
    gap: 2rem;
}

@media (min-width: 768px) {
.nav { 
    display: flex;
    }
}

.nav-link { 
    color: var(--foreground); 
    text-decoration: none; 
    transition: var(--transition-smooth);
}

.nav-link:hover { 
    color: var(--primary);
}

.header-actions { 
    display: flex;
    align-items: center; 
    gap: 1rem;
}

.cart-badge { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    background: var(--primary); 
    color: var(--primary-foreground); 
    font-size: 0.75rem; 
    border-radius: 50%; 
    width: 20px; 
    height: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: bounceGentle 0.8s ease-out;
}

/* Hero Section */

.hero { 
    position: relative;
    min-height: 70vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}
 
.hero-background { 
    position: absolute; 
    /* inset: 0; */
    background-image: url("components/image/restaurant.jpg"); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    width: 100%;
    height: 70vh;
}

.hero-background::after { 
    content: '';
    position: absolute; 
    inset: 0;
    background: hsl(163°, 70%, 92%);
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    color: white; 
    padding: 2rem; 
    max-width: 4xl;
}

.hero-title { 
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem;
}

.hero-title-accent { 
    display: block; 
    color: var(--golden-accent);
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem;
    }
}

.hero-description { 
    font-size: 1.25rem; 
    margin-bottom: 2rem; 
    color: var(--warm-cream);
}

@media (min-width: 768px) {
.hero-description { font-size: 1.5rem;}
}

.hero-buttons { 
    display: flex; 
    flex-direction: 
    column; 
    gap: 1rem; 
    justify-content: center; 
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
.hero-buttons { flex-direction: row;}
}

.qr-section {
     margin-top: 3rem; 
     padding: 1.5rem; 
     background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.2); display: inline-block;
}

.qr-section p:first-child { 
    font-size: 0.875rem; 
    margin-bottom: 0.5rem;
}

.qr-code { 
    width: 8rem; 
    height: 8rem; 
    background: white; 
    border-radius: 0.5rem; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.qr-placeholder { 
    width: 6rem; 
    height: 6rem; 
    background: rgba(var(--rich-brown), 0.2); 
    border-radius: 0.25rem; 
    border: 2px dashed rgba(var(--rich-brown), 0.4); 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.qr-placeholder span { 
    font-size: 0.75rem; 
    color: var(--rich-brown); 
    font-weight: 500;
}

.qr-instruction { 
    font-size: 0.75rem; 
    margin-top: 0.5rem; 
    color: var(--warm-cream);
}

/* Menu Section */

.menu-section {
    padding: 4rem 0; 
    background: var(--gradient-hero);
}

.section-header { 
    text-align: center; 
    margin-bottom: 3rem;
}

.section-header h2 { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--rich-brown); 
    margin-bottom: 1rem;
}

.section-header p { 
    font-size: 1.125rem; 
    color: var(--muted-foreground); 
    max-width: 32rem; 
    margin: 0 auto;
}

.category-section { 
    margin-bottom: 3rem;
}

.category-title { 
    font-size: 1.5rem; 
    font-weight: 600; 
    color: var(--rich-brown); 
    margin-bottom: 1.5rem; 
    text-transform: capitalize; 
    border-bottom: 2px solid rgba(var(--primary), 0.2); 
    padding-bottom: 0.5rem;
}

.menu-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

@media (min-width: 768px) {
.menu-grid { grid-template-columns: repeat(2, 1fr);}
}

@media (min-width: 1024px) {
.menu-grid { grid-template-columns: repeat(3, 1fr);
}
}

/* Menu Item Card */

.menu-item { 
    background: var(--gradient-card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-warm); 
    overflow: hidden; transition: 
    var(--transition-spring);
}

.menu-item:hover { 
    box-shadow: var(--shadow-hover); 
    transform: scale(1.05);
}

.item-header { 
    padding: 1.5rem 1.5rem 0;
}

.item-title-row { 
    display: flex; 
    justify-content: 
    space-between; 
    align-items: flex-start; 
    margin-bottom: 0.5rem;
}

.item-name { 
    font-size: 1.125rem; 
    font-weight: 600;
    color: var(--rich-brown); 
    transition: var(--transition-smooth);
}

.menu-item:hover .item-name { 
    color: var(--primary);
}

.item-badges { display: flex; gap: 0.25rem;
}

.badge { 
    font-size: 0.75rem; 
    padding: 0.125rem 0.5rem; 
    border-radius: 0.375rem; 
    font-weight: 500;
}

.badge-veg {
    background: #dcfce7; 
    color: #166534;
}

.badge-spicy { 
    background: #fee2e2; 
    color: #991b1b;
}

.item-description { 
    font-size: 0.875rem; 
    color: var(--muted-foreground); 
    line-height: 1.5;
}

.item-content { 
    padding: 0 1.5rem;
}

.item-price { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary); 
    margin-bottom: 1rem;
}

.item-footer { 
    padding: 0 1.5rem 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.quantity-controls { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.quantity-btn { 
    width: 2rem; 
    height: 2rem; 
    padding: 0; 
    border-radius: 0.375rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.quantity-display {
    font-weight: 600; 
    color: var(--primary); 
    min-width: 2rem; 
    text-align: center;
}

.add-btn { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.875rem;
}

/* Cart Sidebar */

.cart-overlay { 
    position: fixed; 
    inset: 0;
    background: rgba(var(--rich-brown), 0.5); 
    backdrop-filter: blur(4px); 
    z-index: 50; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition-smooth);
}

.cart-overlay.active {
    opacity: 1; 
    visibility: visible;
}

.cart-sidebar { 
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 100%; 
    max-width: 28rem; 
    height: 100vh; 
    background: var(--card); 
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); 
    z-index: 51; 
    display: flex; 
    flex-direction: column; 
    transform: translateX(100%); 
    transition: var(--transition-smooth);
}

.cart-sidebar.active { 
    transform: translateX(0);
}
.cart-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem; 
    background: var(--gradient-warm); 
    color: var(--primary-foreground); 
    border-bottom: 1px solid var(--border);
}

.cart-title { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 1.25rem; 
    font-weight: 600;
}

.cart-content { 
    flex: 1; 
    overflow-y: auto;
}

.empty-cart { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    text-align: center; 
    padding: 2rem;
}

.empty-cart-icon { 
    width: 4rem; 
    height: 4rem; 
    color: var(--muted-foreground); 
    margin-bottom: 1rem;
}

.empty-cart h3 { 
    font-size: 1.125rem; 
    font-weight: 600; 
    color: var(--muted-foreground); 
    margin-bottom: 0.5rem;
}

.empty-cart p { 
    font-size: 0.875rem; 
    color: var(--muted-foreground);
}

.cart-items { 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

.cart-item { 
    background: var(--warm-cream);
    border-radius: var(--radius); 
    padding: 1rem; 
    box-shadow: var(--shadow-warm);
}

.cart-item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 0.5rem;
}

.cart-item-name { 
    font-weight: 600; 
    color: var(--rich-brown);
}

.cart-item-description { 
    font-size: 0.875rem; 
    color: var(--muted-foreground); 
    margin-bottom: 0.75rem;
}

.cart-item-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.cart-item-price { 
    text-align: right;
}

.cart-item-price .unit-price { 
    font-size: 0.875rem; 
    color: var(--muted-foreground);
}

.cart-item-price .total-price { 
    font-weight: 700; 
    color: var(--primary);
}

.cart-footer { 
    padding: 1rem; 
    border-top: 1px solid var(--border); 
    background: var(--warm-cream);
}

.cart-total { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 1.125rem; 
    font-weight: 700;
     margin-bottom: 1rem;
}

.cart-total span:first-child { 
    color: var(--rich-brown);
}

.cart-total span:last-child {
    color: var(--primary);
}

.cart-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0.5rem; 
    margin-bottom: 1rem;
}

.cart-note { 
    font-size: 0.75rem; 
    color: var(--muted-foreground); 
    text-align: center;
}

/* Footer */

.footer { 
    background: var(--rich-brown); color: var(--warm-cream); padding: 3rem 0; text-align: center;
}

.footer h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
}

.footer > p { 
    color: rgba(var(--warm-cream), 0.8); 
    margin-bottom: 2rem;
}

.footer-content { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    justify-content: center; 
    align-items: center;
}

@media (min-width: 768px) {
.footer-content { flex-direction: row; gap: 4rem;
}
}

.footer-section h4 {
    font-weight: 600; 
    margin-bottom: 0.5rem;
}

.footer-section p { 
    color: rgba(var(--warm-cream), 0.8); 
    font-size: 0.875rem;
}

/* Toast Notification */

.toast { 
    position: fixed; 
    top: 1rem; 
    right: 1rem; 
    background: var(--gradient-warm); 
    color: var(--primary-foreground); 
    padding: 1rem 1.5rem; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-hover); 
    z-index: 100; opacity: 0; transform: 
    translateY(-100%) scale(0.95); 
    transition: var(--transition-smooth);
}

.toast.show { 
    opacity: 1; 
    transform: 
    translateY(0) scale(1);
}

/* Modal */

.modal-overlay { 
    position: fixed; 
    inset: 0;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px); 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition-smooth);
}

.modal-overlay.active { 
    opacity: 1; 
    visibility: visible;
}

.modal { 
    background: var(--card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-hover); 
    max-width: 90vw; 
    max-height: 90vh; 
    overflow: hidden; 
    transform: scale(0.95); 
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal { 
    transform: scale(1);
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem; 
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--rich-brown);
}

.modal-header button { 
    background: none;
    border: none; 
    padding: 0.5rem; 
    cursor: pointer; 
    border-radius: var(--radius); 
    transition: var(--transition-smooth);
}

.modal-header button:hover { 
    background: var(--secondary);
}

.modal-content { 
    padding: 2rem;
}

.qr-display { 
    text-align: center;
}

.qr-code-large {
    width: 12rem;
    height: 12rem; 
    background: var(--secondary); 
    border: 2px dashed var(--border); 
    border-radius: var(--radius); 
    margin: 0 auto 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    color: var(--muted-foreground);
}

.qr-display p { 
    color: var(--muted-foreground); 
    max-width: 20rem; 
    margin: 0 auto;
}

/* Responsive Design */

@media (max-width: 767px) {
.header-content { 
    flex-wrap: wrap;
     gap: 1rem;
}

.nav { 
    order: 3; 
    width: 100%; 
    justify-content: center; 
    padding-top: 1rem; 
    border-top: 1px solid var(--border);
}
.hero-title { 
    font-size: 2.5rem;
}
.hero-description { 
    font-size: 1rem;
}
.cart-sidebar { 
    max-width: 100%;
}

}




