:root {
    --bg-primary: #0e0e11;
    --bg-card: rgba(26, 26, 33, 0.7);
    --bg-card-hover: rgba(35, 35, 45, 0.9);
    --gold: #cfa853;
    --gold-glow: rgba(207, 168, 83, 0.25);
    --text-main: #f4f4f6;
    --text-muted: #9595a2;
    --border-subtle: rgba(207, 168, 83, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(207, 168, 83, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}
.nav-pill-custom img
{
    width: 20px;
}
.brand-serif { font-family: 'Cormorant Garamond', serif; letter-spacing: 2px; }

/* Header */
.top-bar { padding: 30px 15px 15px; text-align: center; }
.brand-name { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.brand-tagline { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 3px; }

/* Sticky Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(14, 14, 17, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 0;
}
.nav-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.nav-pill-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: all 0.25s ease;
}
.nav-pill-custom:hover, .nav-pill-custom.active {
    color: #0e0e11;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* Section Title */
.category-header { text-align: center; padding: 40px 0 20px; scroll-margin-top: 60px; }
.category-header h2 { font-size: 1.8rem; font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.category-header h2::before, .category-header h2::after { content: ""; width: 35px; height: 1px; background: var(--gold); }
.category-header span { display: block; font-size: 0.8rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; font-family: 'Cormorant Garamond', serif; }

/* Dish Card */
.dish-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}
.dish-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
    transform: translateY(-2px);
}
.dish-thumb-box {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(207, 168, 83, 0.25);
    background: #141418;
}
.dish-thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.dish-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dish-name-fa {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dish-name-en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    color: #92929e;
    margin-bottom: 4px;
    line-height: 1.1;
}
.dish-desc-fa {
    font-size: 0.78rem;
    color: #b5b5be;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ستون قیمت‌ها (عمودی و هماهنگ) */
.dish-price-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-width: 78px;
    padding-inline-start: 6px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.05);
}
.dish-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}
.dish-price-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.dish-price-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
}

/* Modal */
.modal-content {
    background: #15151c;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    color: var(--text-main);
}
.modal-dish-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

/* ردیف‌های یکدست قیمت داخل مودال */
.modal-price-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(207, 168, 83, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
}
.modal-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.modal-price-item:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
    background: #09090c;
    border-top: 1px solid rgba(207, 168, 83, 0.15);
    margin-top: 60px;
    padding: 35px 0 20px;
}
.footer-link { color: var(--text-muted); text-decoration: none; }
.footer-link:hover { color: var(--gold); }

@media (max-width: 576px) {
    .dish-thumb-box { width: 75px; height: 75px; min-width: 75px; }
    .brand-name { font-size: 2rem; }
    .dish-price-column { min-width: 70px; }
    .dish-price-val { font-size: 0.85rem; }
}

.dish-card.is-soldout {
    opacity: 0.65;
    filter: grayscale(40%);
    position: relative;
}
.dish-card.is-soldout .dish-thumb-box::after {
    content: "ناموجود";
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.dish-soldout-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}
.sticky-nav .nav-track {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sticky-nav .nav-track::-webkit-scrollbar {
    display: none;
}
.nav-pill-custom {
    scroll-margin-inline: 16px;
}
.service-alert {
    background: linear-gradient(135deg, rgba(23, 23, 29, 0.9), rgba(30, 30, 38, 0.9));
    border: 1px solid var(--border-subtle);
    border-right: 4px solid var(--gold);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 20, 0.95) 40%, #0d0d0f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.extra-small {
    font-size: 0.75rem;
}

.ltr-text {
    direction: ltr;
    display: inline-block;
}

.footer-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease-in-out;
}

.footer-interactive:hover {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.35);
    transform: translateY(-2px);
}

.footer-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
    color: var(--gold, #eab308);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.instagram-pill-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-pill-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(138, 153, 166) !important;
}
.modal-header .btn-close
{
    position: absolute;
    left: 10px;
}
/* تنظیم ابعاد لوگو و هدر در دسکتاپ و موبایل */
.brand-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.brand-name {
    font-size: 1.45rem;
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 0.8rem;
    opacity: 0.75;
}

@media (min-width: 768px) {
    .brand-logo-img {
        width: 64px;
        height: 64px;
    }
    .brand-name {
        font-size: 2rem;
    }
    .brand-tagline {
        font-size: 0.9rem;
    }
}
