/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #f8f9fb, #eef1f6);
    color: #333;
}

/* =========================
   CONTAINER
========================= */

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* =========================
   HEADER
========================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ff5722;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: #ff5722;
}

.nav-links a.active {
    color: #ff5722;
}

/* =========================
   HERO
========================= */

.hero-simple {
    width: 100%;
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
    position: relative;
    overflow: hidden;
}

.hero-simple::after {
    content: "";
    position: absolute;
    bottom: -30px;
    width: 100%;
    height: 70px;
    background: #f4f6fb;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.hero-inner {
    padding: 55px 20px;
    text-align: center;
    color: #fff;
}

.hero-inner h1 {
    font-size: 34px;
    font-weight: 700;
}

.hero-inner p {
    margin-top: 8px;
}

/* =========================
   SEARCH
========================= */

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    width: 500px;
    max-width: 92%;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 14px;
    border: none;
    outline: none;
    border-radius: 50px;
}

.search-box button {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

.search-box button:hover {
    background: #333;
}

/* =========================
   SECTION
========================= */

section {
    padding: 60px 0;
}

/* =========================
   SLIDER
========================= */

.slider-wrapper {
    position: relative;
}

.slider-wrapper::before,
.slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f4f6fb, transparent);
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f4f6fb, transparent);
}

.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
}

.slider-btn:hover {
    background: #ff5722;
    color: #fff;
}

.slider-btn.left { left: -10px; }
.slider-btn.right { right: -10px; }

/* =========================
   CATEGORY CARD
========================= */

.category-card {
    min-width: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    flex: 0 0 auto;
}

.category-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255,61,0,0.25);
}

.category-card p {
    padding: 12px;
    font-weight: 600;
}

/* =========================
   CATEGORY NAV
========================= */

.category-nav-wrapper {
    position: sticky;
    top: 70px;
    z-index: 999;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.category-nav {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 12px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-nav-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    background: #f1f1f1;
    cursor: pointer;
    white-space: nowrap;
}

.cat-nav-btn.active {
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
    color: #fff;
}

/* =========================
   MENU GRID
========================= */

.menu-section {
    padding: 30px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* CARD */

.menu-card {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.menu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(255,61,0,0.2);
}

.menu-card h6 {
    font-weight: 600;
    margin-top: 10px;
}

/* PRICE */

.price {
    color: #ff3d00;
    font-weight: bold;
}

/* BUTTON */

.btn-success {
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
    border-radius: 30px;
    padding: 12px;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-success:hover {
    transform: scale(1.05);
}

/* =========================
   OFFER CARD
========================= */

.offer-card {
    min-width: 220px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.offer-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.offers-section {
    padding: 50px 20px;
    background: #f8f9fb;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 40px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* CARD */
.offer-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
}

/* IMAGE */
.offer-image {
    position: relative;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.4s;
}

.offer-card:hover img {
    transform: scale(1.1);
}

/* BADGE */
.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3d00;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    z-index: 2;
}

/* OVERLAY */
.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.offer-card:hover .offer-overlay {
    opacity: 1;
}

/* BUTTON */
.apply-btn {
    background: #ff5722;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.apply-btn:hover {
    background: #e64a19;
}

/* CONTENT */
.offer-content {
    padding: 15px;
    text-align: center;
}

.offer-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.offer-desc {
    font-size: 14px;
    color: #777;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        flex-direction: column;
        padding: 10px;
    }

    .search-box button {
        width: 100%;
    }

    .slider-btn {
        display: none;
    }
}

@media (max-width: 480px) {

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner h1 {
        font-size: 22px;
    }
}

/* =========================
   BANNER
========================= */
.menu-banner {
    background: linear-gradient(135deg, #ff6a00, #ff3c00);
    color: #fff;
    text-align: center;
    padding: 50px;
    border-radius: 0 0 30px 30px;
}

/* =========================
   CATEGORY
========================= */
.category-title {
    margin: 40px 0 20px;
    font-weight: 700;
    color: #333;
}

/* HERO */
.menu-banner {
    background: linear-gradient(135deg, #ff6a00, #ff3c00);
    color: #fff;
    text-align: center;
    padding: 50px;
    border-radius: 0 0 30px 30px;
}

/* TABS */
.menu-tabs {
    display: flex;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    background: #eee;
    cursor: pointer;
}

.tab-btn.active {
    background: #ff4d00;
    color: #fff;
}

/* FOOD CARD */
.menu-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.menu-filter input,
.menu-filter select {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.food-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.food-card img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.food-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    margin-bottom: 5px;
}

.food-badge.veg {
    background: green;
}

.food-badge.nonveg {
    background: red;
}

.price {
    color: #ff4d00;
    font-weight: 600;
}

.btn-add {
    background: #ff4d00 !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    transition: 0.3s;
}

.btn-add:hover {
    background: #e63e00 !important;
    transform: scale(1.05);
}

/* CATEGORY NAV FIX */
.cat-nav-btn {
    padding: 8px 16px;
    border-radius: 25px;
    background: #f1f1f1;
    margin: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.cat-nav-btn:hover {
    background: #ff4d00;
    color: #fff;
    transform: scale(1.05);
}
/* ACTIVE STATE */
.cat-nav-btn.active {
    background: #ff4d00;
    color: #fff;
}

/* NAV CONTAINER */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-simple {
    padding-bottom: 40px; /* reduce from large */
}
.hero-simple {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.category-nav-wrapper {
    margin-top: -40px; /* pull up */
    padding: 10px 0;
    background: transparent;
}
.category-nav {
    background: #fff;
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.cart-summary {
    overflow: visible !important;
}

/* =====================
   CART SIDEBAR MODERN UI (FIXED)
===================== */

#cartSidebar {
    width: 360px;
    background: #fff;
    position: fixed;
    right: -400px;
    top: 0;
    height: 100%;
    z-index: 99999; /* 🔥 increased */
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

#cartSidebar.active {
    right: 0;
}

/* HEADER */
.cart-header {
    background: #ff4d00;
    color: white;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
}

/* =====================
   SCROLL AREA
===================== */
#cartItems {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f8f8;
    position: relative;
    z-index: 1;
}


/* =========================
   TRENDING SECTION
========================= */

.trending-section {
    padding: 50px 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-btn {
    color: #ff5722;
    font-weight: 600;
    text-decoration: none;
}

/* GRID */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* CARD */
.food-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.food-card:hover {
    transform: translateY(-5px);
}

/* IMAGE */
.food-img {
    position: relative;
}

.food-img img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

/* BADGE */
.food-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.food-badge.veg {
    background: green;
}

.food-badge.nonveg {
    background: red;
}

/* CONTENT */
.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 110px;
}

.food-title {
    font-size: 16px;
    font-weight: 600;
}

/* RATING */
.rating {
    font-size: 14px;
    margin: 5px 0;
}

/* 🔥 ALIGNMENT FIX */
.price-cart {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PRICE */
.price {
    font-weight: bold;
    color: #ff5722;
}

/* BUTTON */
.addToCartBtn {
    background: #ff5722;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
}


/* =========================
   CARD FIX
========================= */

/* CARD */
.food-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    align-items: flex-start;
}

.food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* IMAGE */
.food-img img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
}

/* CONTENT */
.food-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔥 IMPORTANT */
    height: 100%;
}

/* TITLE */
.food-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;

    line-height: 1.4;
    min-height: 40px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RATING */
.rating {
    font-size: 14px;
    margin: 6px 0;
}

/* PRICE + BUTTON */
.price-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px; /* 🔥 FIX SPACE */
    margin-top: auto;
}

/* PRICE */
.price {
    font-weight: 600;
    color: #ff5722;
    font-size: 16px;

    min-width: 85px; /* 🔥 ALIGN ALL */
}

/* BUTTON */
.addToCartBtn {
    background: #ff5722;
    color: #fff;
    border: none;

    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;

    min-width: 80px; /* 🔥 SAME SIZE */
    text-align: center;

    transition: 0.3s;
}

.addToCartBtn:hover {
    background: #e64a19;
}

/* =========================
   POPUP OVERLAY
========================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: none; /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =========================
   POPUP BOX
========================= */

.popup-box {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 360px;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    animation: popupScale 0.4s ease;
}

/* =========================
   IMAGE
========================= */

.popup-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* =========================
   CLOSE BUTTON
========================= */

.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: #000;
}

/* =========================
   TITLE & TEXT
========================= */

.popup-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.popup-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* =========================
   BUTTON
========================= */

.popup-btn {
    background: linear-gradient(135deg, #ff5722, #ff3d00);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.popup-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e64a19, #d84315);
}

/* =========================
   ANIMATION
========================= */

@keyframes popupScale {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {

    .popup-box {
        padding: 15px;
    }

    .popup-img {
        height: 140px;
    }

    .popup-box h3 {
        font-size: 18px;
    }

    .popup-btn {
        width: 100%;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .food-card {
        flex-direction: column;
        text-align: center;
    }

    .food-img img {
        width: 100%;
        height: 180px;
    }

    .food-info {
        height: auto;
    }

    .price-cart {
        justify-content: center;
        gap: 15px;
    }
}
/* =====================
   CART CARD
===================== */
.cart-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.cart-card:hover {
    transform: translateY(-3px);
}

/* TEXT */
.cart-title {
    font-size: 15px;
    font-weight: 600;
}

.cart-price {
    font-size: 14px;
    color: #777;
}

/* =====================
   QTY CONTROLS
===================== */
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-box button {
    border: none;
    background: #eee;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.qty-box button:hover {
    background: #ff4d00;
    color: #fff;
}

.qty-box span {
    font-weight: bold;
}

/* =====================
   REMOVE BUTTON
===================== */
.remove-btn,
.removeBtn {
    background: #ffe5e5;
    border: none;
    color: red;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-btn:hover,
.removeBtn:hover {
    background: red;
    color: white;
}

/* =====================
   FOOTER (🔥 FIXED)
===================== */
.cart-footer {
    position: sticky; /* 🔥 KEY FIX */
    bottom: 0;
    z-index: 10;
    background: #fff;
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* TOTAL */
.cart-total {
    font-size: 18px;
    font-weight: bold;
}

/* =====================
   CHECKOUT BUTTON (🔥 FIXED)
===================== */
.checkout-btn {
    display: block;
    width: 100%;
    background: #ff4d00;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 10px;

    position: relative;
    z-index: 9999; /* 🔥 ensures click */
    pointer-events: auto;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #e04300;
}

/* =====================
   SAFETY FIX (PREVENT BLOCKING)
===================== */
#cartSidebar * {
    pointer-events: auto;
}

