﻿/* ThemeDarkElegant.css – 2025 Updated Version (Visuals 100% Preserved) */

@font-face {
    font-family: 'IRANSansX';
    src: url('https://shangulipus.github.io/SoudConfig/IRANSansXMedium.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSansX', Tahoma, sans-serif;
}

body {
    --s: 36px;
    --c1: #1b1a18;
    --c2: #121214;
    --_g: #0000 83%, var(--c1) 85% 99%, #0000 101%;
    background: radial-gradient(27% 29% at right, var(--_g)) calc(var(--s)/ 2) var(--s), radial-gradient(27% 29% at left, var(--_g)) calc(var(--s)/-2) var(--s), radial-gradient(29% 27% at top, var(--_g)) 0 calc(var(--s)/ 2), radial-gradient(29% 27% at bottom, var(--_g)) 0 calc(var(--s)/-2) var(--c2);
    background-size: calc(2*var(--s)) calc(2*var(--s));
    color: #FEFDFF;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

.menu-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 40px;
}

/* Header – unchanged */
.menu-header {
    padding: 32px 20px;
    text-align: center;
}

.shop-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ECDFCC;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.shop-description {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 12px;
}

.shop-address {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 5px 0;
}

/* Sticky Category Navigation – unchanged look */
.category-nav {
    position: sticky;
    top: 0;
    padding: 16px 20px;
    z-index: 200;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    border-bottom: 3px solid #ECDFCC;
    background: rgba(18,18,20,0.95);
    backdrop-filter: blur(8px);
}

.category-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #1e1e24;
    color: #ECDFCC;
    border: 2px solid #ECDFCC;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-around;
}

    .category-nav-btn:hover {
        background: #ECDFCC;
        color: #1e1e24;
        transform: translateY(-4px);
    }

.category-icon-nav {
    width: 48px;
    height: 48px;
    object-fit: contain;
    /* filter: invert(89%) sepia(32%) saturate(121%) hue-rotate(
259deg) brightness(97%) contrast(90%); */
    /* filter: invert(93%) sepia(12%) saturate(362%) hue-rotate(344deg) brightness(94%) contrast(97%) invert(1); */
}

/* Collapsible Category Header */
.category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 24px;
    background: #2d2f33;
    border: 3px solid rgba(236,223,204,0.36);
    border-radius: 20px;
    cursor: pointer;
    margin: 30px auto 0;
    max-width: 500px;
    animation: catOpen 0.6s ease-out;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ECDFCC;
    padding-bottom: 6px;
    border-bottom: 3px solid #ECDFCC;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-left: 20px;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #ECDFCC;
    transition: transform 0.3s ease;
    margin-right: auto;
}

.category-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

@keyframes catOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Body – collapsible */
.category-body {
    display: none;
    max-width: 500px;
    margin: 16px auto 30px;
}

    .category-body.open {
        display: block;
        animation: fadeInDown 0.6s ease-out forwards;
    }

/* Menu Items – exactly same look */
.menu-item {
    background: #1e1e24;
    border: 3px solid rgba(236,223,204,0.36);
    border-radius: 16px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 16px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInDown 0.6s cubic-bezier(0, 0.66, 0.54, 1.83) forwards;
}

.item-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8%;
    border: 3px solid #ECDFCC;
    margin: 16px;
    flex-shrink: 0;
}

.item-info {
    padding: 20px 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-title {
    font-size: 1.35rem;
    color: #ECDFCC;
    font-weight: 600;
    margin-bottom: 8px;
}

.item-desc {
    font-size: 0.94rem;
    color: #ecdfccb5;
    line-height: 1.5;
    margin-bottom: 10px;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1e24;
    background: #ECDFCC;
    padding: 8px 14px;
    border-radius: 8px;
    align-self: flex-start;
    min-width: 80px;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NEW FOOTER – Perfectly matches the dark elegant style */
.menu-footer {
    margin-top: 60px;
    padding: 50px 30px;
    background: linear-gradient(to top, #121214, #1e1e24);
    border-top: 4px solid #ECDFCC;
    text-align: center;
}

    .menu-footer .footer-title {
        font-size: 1.6rem;
        font-weight: 800;
        color: #ECDFCC;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(236,223,204,0.4);
        display: inline-block;
    }

.footer-description-text,
.footer-address-text {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.footer-contact-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(236,223,204,0.3);
    font-size: 1.1rem;
}

.footer-contact-name {
    opacity: 0.8;
}

.footer-contact-value {
    color: #ECDFCC;
    font-weight: 700;
}

.footer-social-list {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(236,223,204,0.15);
    padding: 14px 24px;
    border-radius: 50px;
    color: #ECDFCC;
    text-decoration: none;
    border: 2px solid rgba(236,223,204,0.3);
    transition: all 0.3s ease;
}

    .footer-social-item:hover {
        background: #ECDFCC;
        color: #1e1e24;
        transform: translateY(-4px);
    }

.social-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.footer-powered {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed rgba(236,223,204,0.3);
    opacity: 0.7;
    font-size: 0.95rem;
}

    .footer-powered strong {
        color: #ECDFCC;
    }
