* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #111;
}

body.modal-open {
    overflow: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */

.site-header {
    background: #000;
    padding: 18px 0;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 24px;
    font-weight: 600;
}

.nav a.active {
    color: #ff5a0a;
}

/* HERO */

.menu-hero,
.page-hero,
.contact-hero {
    background: linear-gradient(90deg,#0f172a,#1e293b,#ea580c) !important;
    color:#fff;
    padding:80px 0;
    text-align:center;
}

.menu-hero h1 {
    margin: 0 0 10px;
    font-size: 48px;
}

.menu-hero p {
    margin: 0;
    color: #ddd;
}

/* SECTION */

.menu-section {
    padding: 50px 0 70px;
}

.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111;
    text-transform: capitalize;
}

/* GRID */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
    gap: 24px;
    justify-content: start;
}

/* CARD */

.menu-card {
    width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.25s;
}

.menu-card:hover {
    transform: translateY(-4px);
}

.menu-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.menu-thumb {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-info {
    flex: 1;
    min-width: 0;
}

.menu-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.ingredients-preview {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.more-link {
    background: none;
    border: none;
    color: #ff5a0a;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
}

/* CARD FOOTER */

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #ff5a0a;
}

.add-cart-btn,
.details-btn,
.close-btn {
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.add-cart-btn {
    background: #ff5a0a;
}

.details-btn {
    background: #222;
}

.close-btn {
    background: #777;
}

.add-cart-btn:hover,
.details-btn:hover,
.close-btn:hover {
    opacity: 0.92;
}

.empty-state {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ========================= */
/* MODAL (PREMIUM VERSION 🔥) */
/* ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-radius: 22px;
    position: relative;
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    animation: scaleIn 0.22s ease;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    background: #ff5a0a;
    color: #fff;
    transform: rotate(90deg);
}

.modal-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.modal-image-wrap {
    width: 180px;
    height: 180px;
    min-width: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: #f2f2f2;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.modal-price {
    color: #ff5a0a;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal-block {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* QTY */

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f8f8;
    font-size: 22px;
    cursor: pointer;
}

#modalQty {
    width: 64px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

/* ANIMATIONS */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* MOBILE */

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        width: 100%;
    }

    .modal-top {
        flex-direction: column;
    }

    .modal-image-wrap {
        width: 130px;
        height: 130px;
    }
}