/* --- 1. GENERAL RESET & LAYOUT --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { 
    background-color: #f8f9fa; 
    color: #333; 
    overflow-x: hidden; 
}

/* --- 2. TOP NAVIGATION BAR --- */
.mobile-nav {
    background: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 20px; }

.menu-toggle {
    font-size: 1.5rem; cursor: pointer; color: #333; transition: color 0.3s;
}
.menu-toggle:hover { color: #ffd32a; }

/* LOGO FIX */
.logo-text { 
    font-size: 1.8rem; font-weight: 800; color: #333; 
    text-transform: uppercase; letter-spacing: -1px; text-decoration: none; 
}
.logo-text span { color: #ffd32a; }

.nav-right { display: flex; align-items: center; gap: 15px; }

.btn-nav {
    background-color: #ffd32a; color: #333; padding: 10px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center;
    gap: 8px; border: none; transition: transform 0.2s, background 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px); background-color: #f1c40f;
    box-shadow: 0 4px 10px rgba(255, 211, 42, 0.4);
}

.cart-badge {
    background: #333; color: white; padding: 2px 6px; border-radius: 50%; font-size: 12px;
}

/* --- 3. LEFT SIDEBAR --- */
.sidebar {
    width: 300px; height: 100vh; background: white; position: fixed; left: -320px; top: 0;
    display: flex; flex-direction: column; justify-content: flex-start; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.05); z-index: 2000; transition: left 0.4s ease;
}
.sidebar.active { left: 0; }

.sidebar-header { padding: 20px 20px 0 20px; position: relative; }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #777; }
.close-btn:hover { color: #ffd32a; }

.profile-section { margin-bottom: 10px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.user-profile { display: flex; align-items: center; gap: 15px; margin-bottom: 0; }
.user-icon { width: 50px; height: 50px; background: #ffd32a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: #333; }
.user-info h3 { font-size: 0.9rem; color: #777; margin-bottom: 2px; }
.user-info h2 { font-size: 1.1rem; font-weight: bold; color: #333; }

.btn-sidebar-outline {
    display: block; width: 100%; margin-top: 20px; padding: 10px;
    border: 2px solid #333; text-align: center; text-decoration: none;
    color: #333; font-weight: 800; border-radius: 8px; transition: 0.3s;
}
.btn-sidebar-outline:hover { background: #333; color: white; }

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 15px; padding: 0 20px; }
.nav-links a { display: flex; align-items: center; gap: 15px; padding: 12px 15px; color: #555; text-decoration: none; font-weight: 600; border-radius: 8px; transition: all 0.3s; }
.nav-links a:hover, .nav-links a.active { background: #fff8d6; color: #e67e22; }
.nav-links i { width: 25px; text-align: center; color: #ffd32a; }

.sidebar-footer { background: #ffd32a; padding: 20px; display: flex; align-items: center; gap: 15px; font-weight: bold; color: #333; cursor: pointer; margin-top: auto; }

/* --- 4. OVERLAY --- */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; backdrop-filter: blur(2px); }
.overlay.active { display: block; }

/* --- 5. HERO CAROUSEL SECTION --- */
.hero-section { position: relative; height: 450px; width: 100%; overflow: hidden; background: #333; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); z-index: 2; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; }
.hero-content-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; padding-left: 50px; z-index: 3; }
.hero-text { max-width: 800px; }
.hero-text h1 { font-size: 4rem; color: white; text-transform: uppercase; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); line-height: 1.1; }
.hero-text span { color: #ffd32a; }
.hero-description { color: #f0f0f0; font-size: 1.1rem; max-width: 600px; margin: 20px 0 10px 0; line-height: 1.6; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    .hero-section { height: 350px; }
    .hero-content-wrapper { padding-left: 20px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-description { font-size: 0.95rem; max-width: 90%; }
}

/* --- 6. CONTAINER --- */
.container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }

/* --- 7. HOMEPAGE EXPLORE SLIDER --- */
.explore-section { padding: 40px 0; position: relative; background: #fff; }
.explore-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 0 10px; }
.explore-header h2 { font-size: 2rem; font-weight: 800; color: #333; margin: 0; }
.view-all-link { color: #ffd32a; text-decoration: none; font-weight: bold; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.view-all-link:hover { color: #333; }

.category-slider-wrapper { position: relative; padding: 0 10px; }
.category-slider { display: flex; gap: 25px; overflow-x: auto; padding: 10px 5px 40px 5px; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.category-slider::-webkit-scrollbar { display: none; }

.cat-card {
    min-width: 180px; width: 180px; height: 200px;
    background: white; border: 1px solid #f0f0f0; border-radius: 15px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); position: relative;
}
.cat-card:hover { border-color: #ffd32a; transform: translateY(-10px); box-shadow: 0 15px 30px rgba(255, 211, 42, 0.2); }
.cat-card-img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cat-card:hover .cat-card-img { transform: scale(1.08); }
.cat-name { font-size: 1rem; font-weight: 800; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }

.scroll-arrow {
    position: absolute; top: 45%; transform: translateY(-50%);
    width: 45px; height: 45px; background: white; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; 
    justify-content: center; cursor: pointer; z-index: 10; color: #333; 
    font-size: 1.2rem; transition: all 0.3s; border: 1px solid #eee;
}
.scroll-arrow:hover { background: #ffd32a; color: white; border-color: #ffd32a; transform: translateY(-50%) scale(1.1); }
.scroll-left { left: -15px; }
.scroll-right { right: -15px; }

@media (max-width: 768px) { .scroll-arrow { display: none; } }

/* --- 8. MENU PAGE STICKY NAV --- */
.sticky-cat-nav {
    position: sticky; top: 75px; background: white; z-index: 900;
    padding: 15px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 30px;
    display: flex; overflow-x: auto; gap: 15px; white-space: nowrap; scrollbar-width: none;
}
.sticky-cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-link {
    display: inline-block; padding: 10px 25px; border-radius: 50px;
    background: #f1f2f6; color: #333; font-weight: 800; text-decoration: none;
    font-size: 0.9rem; transition: all 0.3s ease; border: 1px solid transparent;
}
.cat-nav-link:hover { background: #e1e1e1; }
.cat-nav-link.active { background: #ffd32a; color: #333; transform: scale(1.05); box-shadow: 0 4px 10px rgba(255, 211, 42, 0.4); }

/* --- 9. PRODUCT/MENU GRID --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; }

.food-card {
    background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-decoration: none; color: #333; display: flex; flex-direction: column; position: relative;
    transition: transform 0.3s ease; height: 100%;
}
.food-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.food-card-img { width: 100%; height: 250px; object-fit: cover; }
.food-card-info { padding: 20px; text-align: center; border-top: 1px solid #f0f0f0; flex-grow: 1; }
.food-card-title { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; color: #333; }
.food-card-desc { color: #777; font-size: 0.9rem; margin-top: 8px; line-height: 1.4; min-height: 40px; }
.price-badge { position: absolute; top: 15px; right: 15px; background: #ffd32a; color: #333; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.95rem; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* --- 10. FORMS, LOGIN & AUTH --- */
/* Global Inputs */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%; padding: 12px; margin: 8px 0 20px 0; 
    border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box;
    font-size: 1rem; background: white;
}
input:focus { border-color: #ffd32a; outline: none; }

/* Global Buttons */
button, input[type="submit"], .btn-primary {
    background-color: #ffd32a; color: #333; padding: 12px 20px;
    border: none; border-radius: 50px; cursor: pointer;
    font-weight: 800; width: 100%; font-size: 1rem;
    transition: transform 0.2s;
}
button:hover, input[type="submit"]:hover {
    background-color: #f1c40f; transform: translateY(-2px);
}

/* Specific Login Card Styling */
.login-wrapper {
    display: flex; justify-content: center; align-items: center;
    min-height: 80vh; padding: 20px;
}
.login-card {
    background: white; padding: 40px; border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05); width: 100%; max-width: 400px;
    text-align: center; margin: 0 auto;
}
.login-card h2 { font-size: 2rem; color: #333; margin-bottom: 20px; font-weight: 800; }
.login-card h2 span { color: #ffd32a; }

/* --- 11. TOAST NOTIFICATION (POPUP) --- */
#toast {
    visibility: hidden; min-width: 250px; margin-left: -125px;
    background-color: #ffd32a; color: #333; text-align: center;
    border-radius: 50px; padding: 16px; position: fixed; z-index: 3000;
    left: 50%; bottom: 30px; font-size: 1rem; font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.5s, bottom 0.5s;
}
#toast.show { visibility: visible; opacity: 1; bottom: 50px; }

/* Smooth Scroll Fix */
html { scroll-behavior: smooth; scroll-padding-top: 140px; }

/* --- 12. STYLISH FOOTER --- */
.main-footer {
    background-color: #2d3436; /* Dark Grey Theme */
    color: #b2bec3;
    padding-top: 60px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

/* Branding Column */
.footer-logo {
    font-size: 2rem; font-weight: 800; color: white;
    text-decoration: none; text-transform: uppercase; display: block; margin-bottom: 20px;
}
.footer-logo span { color: #ffd32a; }

.footer-desc {
    line-height: 1.6; margin-bottom: 25px; color: #dfe6e9;
}

/* Social Icons */
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white; text-decoration: none; transition: all 0.3s;
}
.social-links a:hover {
    background: #ffd32a; color: #333; transform: translateY(-3px);
}

/* Headings & Links */
.footer-heading {
    color: white; font-size: 1.2rem; margin-bottom: 25px;
    position: relative; padding-bottom: 10px;
}
.footer-heading::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 50px; height: 3px; background: #ffd32a;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #b2bec3; text-decoration: none; transition: 0.3s; display: inline-block;
}
.footer-links a:hover {
    color: #ffd32a; padding-left: 5px;
}

/* Contact List */
.contact-list { list-style: none; }
.contact-list li {
    margin-bottom: 15px; display: flex; align-items: center; gap: 15px;
}
.contact-list i { color: #ffd32a; }

/* Copyright Bar */
.footer-bottom {
    background: #1e272e; text-align: center; padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p {
    margin: 0; font-size: 0.9rem;
}