﻿/* CLEAN MODERN THEME – Collapsible Categories + New Footer + Zero Lag */
/* Fixed gradient background + smooth collapse + fast rendering */

:root {
    --bg-0: #0f0d0c;
    --bg-1: #1b1615;
    --card-bg: #201d1c;
    --card-weak: #2a2726;
    --muted: #bfb6b0;
    --accent: #E43636;
    --cream: #FAF3E0;
    --radius: 16px;
    --gap: 20px;
    --max-card-width: 380px;
    --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Font */
@font-face {
    font-family: 'IRANSansX';
    src: url('https://meniew.storage.c2.liara.space/Fonts/Dirooz-FD.ttf') format('truetype');
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    color: var(--card-bg);
    background: radial-gradient(900px 360px at 8% 8%, rgba(255,255,255,0.03), transparent 6%), linear-gradient(180deg, var( --bg-1), var(--bg-0)) fixed;
    background-attachment: fixed;
    line-height: 1.5;
}

/* Container */
.menu-container {
    max-width: 1240px;
    margin: auto;
    padding: 20px;
}

/* Header */
.menu-header {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 32px;
}

.shop-name {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--cream);
    margin: 0 0 12px;
}

.shop-description, .shop-address {
    margin: 10px 0;
    color: var(--muted);
    font-size: 1rem;
}

/* Category Navigation Bar */
.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 16px 8px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.04);
}

    .category-nav::-webkit-scrollbar {
        display: none;
    }

.category-nav-btn {
    white-space: nowrap;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--card-bg);
    background: var(--cream);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: var( --transition);
    font-family: 'IRANSansX', Tahoma, sans-serif;
    /* flex: revert; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

    .category-nav-btn:hover {
        transform: translateY(-2px);
    }

/* ================== COLLAPSIBLE CATEGORY HEADER ================== */
.category-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: 16px 24px;
    margin: 32px 0 16px;
    background: rgb(209 203 187);
    border-radius: 20px;
    border: 1px solid rgb(231 225 208 / 42%);
    cursor: pointer;
    transition: var(--transition);
}

.category-header-open {
    border-radius: 20px 20px 0 0;
}

.category-header:hover {
    transform: translateY(-2px);
}

.category-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--card-bg);
    margin: 0;
}

.toggle-icon {
    font-size: 1.4rem;
    color: var(--card-bg);
    transition: transform 0.3s ease;
    /* left: 0; */
    /* position: relative; */
    margin-right: auto;
}

.category-header[aria-expanded="true"] .toggle-icon,
.category-header .open ~ .toggle-icon {
    transform: rotate(180deg);
}

/* ================== CATEGORY BODY – COLLAPSIBLE ================== */
.category-body {
    display: none;
    overflow: hidden;
    padding: 0 8px;
    animation: collapse 0.4s ease forwards;
    /* justify-content: center; */
    /* flex: revert; */
}

    .category-body.open {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--gap);
        animation: expand 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        align-content: center;
    }

@keyframes expand {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

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

@keyframes collapse {
    from {
        opacity: 1;
        max-height: 3000px;
    }

    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Menu Item Card – Super Fast */
.menu-item {
    max-width: 250px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

    .menu-item:hover {
        transform: translateY(-8px);
    }

.item-image {
    width: 250px;
    /* height: 220px; */
    object-fit: cover;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.item-info {
    padding: 18px;
    background: rgba(0,0,0,0.25);
    border-radius: 0 0 var(--radius) var(--radius);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    margin: 0;
}

.item-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.item-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--card-bg);
    margin-top: auto;
    background-color: var(--cream);
    padding: 6 0 2;
    text-align: center;
    border-radius: 100px;
}

/* ================== NEW FOOTER – FULLY STYLED ================== */
.menu-footer {
    margin-top: 80px;
    padding: 50px 30px;
    background: rgba(0,0,0,0.35);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    font-size: 0.98rem;
}

.footer-section {
    padding: 8px 0;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream);
    display: inline-block;
}

.footer-description-text,
.footer-address-text {
    color: var(--muted);
    line-height: 1.8;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.footer-contact-name {
    color: var(--muted);
}

.footer-contact-value {
    color: var(--cream);
    font-weight: 600;
}

.footer-social-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
}

    .footer-social-item:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-3px);
    }

.social-icon {
    /* width: 26px; */
    height: 26px;
    filter: brightness(0) invert(1);
    /* fill: red; */
    /* Force the SVG to inherit the text color */
    /* fill: currentColor; */ /* for <svg><path fill="..."> */
    /* stroke: currentColor; */ /* if it uses stroke instead */
    /* Very important – removes any hardcoded color inside the SVG file */
    /* filter: brightness(0) invert(1); */ /* turns black → white */
    /* Or use this instead if you want a specific color */
    /* color: #E4405F; */ /* Instagram pink, for example */
}

.footer-powered {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255,255,255,0.18);
    color: var(--muted);
    font-size: 0.92rem;
}

    .footer-powered strong {
        color: var(--accent);
    }

/* Mobile */
@media (max-width: 640px) {
    .menu-footer {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .category-header {
        padding: 14px 20px;
    }

    .shop-name {
        font-size: 2.2rem;
    }
}



.category-icon {
    width: 44px;
    /* height: 20px; */
    margin-left: 6px;
    display: inline-block;
    /* color: #201d1c; */
    filter: invert(1);
}

.category-icon-nav {
    width: 44px;
    /* height: 20px; */
    margin-left: 6px;
    display: inline-block;
    /* color: #201d1c; */
    filter: invert(1);
    margin: auto;
    margin-bottom: 10px;
}
