/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

/* Variables */
:root {
    /* Colors */
    --primary: #ffc107;
    --primary-hover: #e0a800;
    --secondary: #222;
    --accent: #e63946;
    --text: #333;
    --text-light: #666;
    --bg-light: #fcfcfc;
    --bg-white: #fff;
    --border: #eaeaea;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
.main-header {
    background-color: #1a1a1a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Increased size */
    width: auto;
    border-radius: 50%;
    /* Optional: Makes it circular if square, or just rounded */
    object-fit: cover;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

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

.nav-links a {
    color: #ddd;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-real-final-v4.png') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Grid */
.features {
    padding: 60px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: auto;
}

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

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

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

.social-icon {
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Card Style (Shared) */
.card-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
}

/* --- MENU PAGE STYLES --- */

/* Layout */
.menu-container {
    display: flex;
    gap: 30px;
    max-width: var(--container-width);
    margin: 30px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.menu-area {
    flex: 3;
}

.cart-area {
    flex: 1;
    min-width: 300px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    margin: 40px 0 20px;
    padding-bottom: 5px;
    color: var(--secondary);
}

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

/* Item Card */
.item-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.card-header,
.card-body,
.card-footer {
    padding: 15px;
}

.card-header {
    border-bottom: 1px solid var(--border);
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
}

.launch-badge {
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.item-diet {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 5px;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.4;
}

.card-body {
    background: #fdfdfd;
    flex-grow: 1;
}

.control-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.click-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    cursor: pointer;
}

.card-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dynamic-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.add-btn {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: #000;
    transform: scale(1.05);
}

/* Cart & Checkout */
.cart-box {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
    /* Adjusted for sticky header */
}

.cart-items {
    max-height: 60vh;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.cart-controls button {
    width: 25px;
    height: 25px;
    border: none;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.pay-btn {
    width: 100%;
    background: var(--primary);
    color: #000;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.pay-btn:hover {
    background: var(--primary-hover);
}

/* Mobile Cart Overlays */
.mobile-cart-btn {
    display: none;
    /* Default hidden on desktop */
}

@media (max-width: 900px) {
    .menu-container {
        flex-direction: column;
    }

    .cart-area {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 3000;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: flex-end;
    }

    .cart-area.open {
        display: flex;
    }

    .cart-box {
        width: 100%;
        max-width: 500px;
        border-radius: 15px 15px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        top: 0;
        animation: slideUp 0.3s ease-out;
    }

    .mobile-cart-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: 20px;
        background: var(--secondary);
        color: #fff;
        padding: 15px 25px;
        border-radius: 50px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        z-index: 2000;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.1rem;
    }
}

.close-cart {
    display: none;
}

@media (max-width: 900px) {
    .close-cart {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
        background: none;
        border: none;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Toast */
#toast {
    visibility: hidden;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 90px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 90px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Bank Modal & Trust Bridge */
.bank-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.bank-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.bank-option {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bank-option:hover {
    border-color: var(--primary);
    background: #fffdf5;
    transform: scale(1.03);
}

.bank-icon {
    width: 40px;
    height: 40px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
}

.bank-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.bank-search-container {
    margin: 20px 0;
    position: relative;
}

.bank-search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.bank-search-input:focus {
    border-color: var(--primary);
}

.bank-scroll-area {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
}

.bank-section-label {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 15px 0 10px;
    font-weight: bold;
}

.bridge-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bridge-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.secure-badge {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}