/* Global CSS Variables */
:root {
    --primary-color: #ff9f1c;
    /* Vibrant Orange */
    --primary-dark: #e88e0c;
    --secondary-color: #2ec4b6;
    /* Teal Accent */
    --bg-body: #f8f9fa;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    --text-main: #2b2d42;
    --text-light: #8d99ae;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-main);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    font-size: 1rem;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border-radius: 25px;
    background: var(--white);
    border: 1px solid #ddd;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.food-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.food-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 159, 28, 0.2);
}

.card-img {
    height: 250px;
    /* Enhanced image height */
    overflow: hidden;
    position: relative;
    background-color: #f1f1f1;
    /* Placeholder color before load */
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-card:hover .card-img img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d4d;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.card-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.food-card:hover .card-actions {
    transform: translateY(0);
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.card-rating {
    font-size: 0.9rem;
    color: #ffd700;
}

.food-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.food-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #ccc;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: var(--text-main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

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

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-container .btn-secondary {
    border-color: var(--text-main);
    color: var(--text-main);
}

.load-more-container .btn-secondary:hover {
    background: var(--text-main);
    color: var(--white);
}


/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature span {
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form-container {
    flex: 2;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-form-container h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    background: #e0e0e0;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.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: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.cart-subtotal,
.cart-delivery,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.cart-total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}


/* Food Details Page */
.details-section {
    padding: 120px 0 80px;
    background: var(--white);
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.details-img {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: #f8f8f8;
    height: 500px;
}

.details-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-info h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.details-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1rem;
}

.details-rating {
    color: #ffd700;
    font-weight: 600;
}

.details-price-row {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.current-price-lg {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price-lg {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #ccc;
    font-weight: 500;
}

.details-short-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.8;
}

.details-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

.qty-selector button {
    padding: 12px 20px;
    background: #f8f9fa;
    transition: var(--transition);
}

.qty-selector button:hover {
    background: #e9ecef;
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.qty-selector input:focus {
    outline: none;
}

.btn-secondary.icon-only {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delivery-info {
    border-top: 1px solid #eee;
    padding-top: 25px;
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.delivery-info div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info i {
    color: var(--secondary-color);
}

/* Tabs */
.product-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 15px;
    position: relative;
    transition: var(--transition);
}

.tab-link:hover,
.tab-link.active {
    color: var(--primary-color);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    margin-bottom: 60px;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-container {
    max-width: 800px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

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

.reviewer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 700;
}

.related-products {
    margin-top: 60px;
}

.related-products h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-img {
        height: 350px;
    }
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    font-size: 1.2rem;
    color: var(--text-main);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fcfcfc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-wrapper {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero i {
        display: block;
    }

    .hero-bg .overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease forwards;
    min-width: 300px;
}

.toast.error {
    border-left-color: #ff4d4d;
}

.toast.success {
    border-left-color: #2ec4b6;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #2ec4b6;
}

.toast.error i {
    color: #ff4d4d;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}