/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111;
}

.nav-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.nav-links a:hover {
    color: #000;
}

/* Hero Section */
.hero {
    background: url('hero.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #e64a19;
}

/* Menu Section */
.menu-preview {
    padding: 2rem 1rem;
    text-align: center;
}

.menu-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-card {
    background-color: #fafafa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.menu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.menu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.menu-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Order Section */
.order-cta {
    padding: 2rem 1rem;
    background-color: #fbe9e7;
    text-align: center;
}

.order-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.order-cta p {
    margin-bottom: 1rem;
    color: #444;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #fff3e0;
    font-size: 0.85rem;
    color: #555;
    margin-top: 2rem;
}

/* Responsive */
@media (min-width: 600px) {
    .menu-items {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-card {
        width: 30%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    color: #333;
}

a {
    text-decoration: none;
    color: #ff5722;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    margin: 2rem 1rem 1rem;
    text-align: center;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 100px;
    }

    .button-container {
        padding-inline: 100px !important;
    }
}

/* Food Card */
.food-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.food-card:hover {
    transform: scale(1.02);
}

.food-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.food-info {
    padding: 1rem;
}

.food-info h2 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.food-info p {
    color: #777;
    font-size: 0.95rem;
}

/* Custom Checkbox Style */
.food-card input[type="checkbox"] {
    display: none;
}

.checkmark {
    background: #eee;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: background 0.3s;
    border-top: 1px solid #ddd;
}

.food-card input[type="checkbox"]:checked+.checkmark {
    background: #ff5722;
    color: #fff;
}

/* Button */
.cta-button {
    background: #ff5722;
    color: #fff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    text-align: center;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e64a19;
}

.full-width {
    grid-column: span 1;
}

@media (min-width: 600px) {
    .full-width {
        grid-column: span 2;
        /* Span both columns */
    }
}


.thankyou {
    text-align: center;
    margin-top: 4rem;
}

/* Cart Icon & Badge */
.cart-nav {
    position: relative;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    display: none;
    /* hidden by default */
    line-height: 1;
    pointer-events: none;
    user-select: none;
}


/* Show badge when any .cart-check is checked */
.cart-check:checked~.cart-badge {
    display: inline-block;
}

/* Checkout / Receipt */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.receipt-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.receipt-items {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

.receipt-summary {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.total-row {
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Cart Page Layout */
.cart-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.cart-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-items {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
}

.item-price {
    color: #555;
}

/* Cart Total */
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Checkout Button */
.full-width {
    width: 100%;
    display: block;
}

.half-width {
    width: 50%;
    display: block;
    justify-self: center;
}

.button-container {
    padding-inline: 20px;
}

.order {
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.order h3 {
    margin: 0 0 10px;
}

.items {
    margin-left: 20px;
}

.items li {
    margin-bottom: 5px;
}

.status {
    font-weight: bold;
    margin-top: 10px;
}

button:disabled {
    opacity: 0.5;
}

.cts-button {
    background: #2289ff;
    color: #fff;
    padding: 0.2rem 0.5rem 0.2rem 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.cts-button:hover {
    background: #3589ff;
}