/* ==========================================================================
   کافه چوبی - استایل اختصاصی منوی دیجیتال کافه
   Cafe Chubi - Digital Menu Stylesheet
   ========================================================================== */

/* ==================== بارگذاری کامل تمام اوزان فونت کلمه (Kalameh) ==================== */
@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 100;
    src: url('assets/fonts/KalamehWebFaNum-Thin.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Thin.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 200;
    src: url('assets/fonts/KalamehWebFaNum-ExtraLight.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-ExtraLight.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/KalamehWebFaNum-Light.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/KalamehWebFaNum-Regular.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 500;
    src: url('assets/fonts/KalamehWebFaNum-Medium.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/KalamehWebFaNum-SemiBold.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-SemiBold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/KalamehWebFaNum-Bold.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Bold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 800;
    src: url('assets/fonts/KalamehWebFaNum-ExtraBold.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-ExtraBold.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 900;
    src: url('assets/fonts/KalamehWebFaNum-Black.woff2') format('woff2'),
         url('assets/fonts/KalamehWebFaNum-Black.woff') format('woff');
    font-display: swap;
}

/* فونت پشتیبان وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -------------------- متغیرهای طراحی (پالت رنگ چوب و قهوه) -------------------- */
:root {
    --font-primary: 'Kalameh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Kalameh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    --font-body: 'Kalameh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;

    --bg-main: #f7f3ee;
    --bg-paper: #fbf8f4;
    --bg-card: #ffffff;
    --bg-card-hover: #fffdfa;
    --bg-wood-dark: #2c1a11;
    --bg-wood-medium: #4a2d1d;
    --bg-wood-light: #72472b;

    --primary-brown: #3e2415;
    --primary-caramel: #b6763e;
    --accent-amber: #d88e44;
    --accent-gold: #c98b3c;
    --accent-warm: #e3a968;
    --accent-green: #486e49;
    --accent-badge: #f4eae0;
    --accent-badge-text: #6b3e1f;

    --text-primary: #271911;
    --text-secondary: #5e4638;
    --text-muted: #8b7365;
    --text-light: #fdfaf6;

    --border-color: rgba(94, 55, 30, 0.12);
    --border-highlight: rgba(182, 118, 62, 0.35);

    --shadow-sm: 0 2px 8px rgba(60, 35, 18, 0.05);
    --shadow-md: 0 6px 20px rgba(60, 35, 18, 0.08);
    --shadow-lg: 0 14px 38px rgba(44, 26, 17, 0.12);
    --shadow-wood: 0 10px 25px rgba(35, 20, 12, 0.3);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- ریست و پایه‌ها -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.75;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(214, 169, 126, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(182, 118, 62, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* -------------------- کانتینر اصلی -------------------- */
.app-container {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 70px;
    position: relative;
}

@media (min-width: 900px) {
    .app-container {
        max-width: 860px;
    }
}

/* -------------------- هدر اصلی کافه -------------------- */
.cafe-header {
    background: linear-gradient(180deg, #361f14 0%, #29170e 100%);
    color: var(--text-light);
    padding: 38px 20px 32px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    box-shadow: var(--shadow-wood);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cafe-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.35;
    pointer-events: none;
}

.cafe-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(216, 142, 68, 0.35) 0%, transparent 70%);
    filter: blur(10px);
}

.top-bar-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.action-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #f7ebe1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.action-chip-btn:hover, .action-chip-btn:focus-visible {
    background: rgba(216, 142, 68, 0.35);
    border-color: var(--accent-amber);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-chip-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* لوگو و نام کافه چوبی */
.brand-identity {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 14px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: 1.5px dashed rgba(224, 159, 86, 0.5);
    box-shadow: 0 0 25px rgba(216, 142, 68, 0.25);
    transition: transform 0.4s ease;
}

.logo-wrapper:hover {
    transform: rotate(15deg) scale(1.05);
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
}

.brand-title-fa {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: #fbf5ee;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.brand-title-en {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-warm);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.brand-slogan-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-full);
    border: 1px solid rgba(224, 159, 86, 0.25);
}

.leaf-icon {
    width: 14px;
    height: 14px;
    fill: var(--accent-amber);
    opacity: 0.85;
}

.brand-slogan-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #f4eae0;
}

/* -------------------- نوار جستجو و دسته‌بندی استیکی -------------------- */
.nav-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 243, 238, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 16px 8px;
    margin-top: -6px;
    border-bottom: 1px solid rgba(94, 55, 30, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-sticky-wrapper.is-scrolled {
    box-shadow: 0 8px 24px rgba(44, 26, 17, 0.08);
}

/* باکس جستجو */
.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 11px 44px 11px 40px;
    background: #ffffff;
    border: 1.5px solid rgba(94, 55, 30, 0.15);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary-caramel);
    box-shadow: 0 0 0 3px rgba(182, 118, 62, 0.16);
}

.search-icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.clear-search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(94, 55, 30, 0.1);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.clear-search-btn.show {
    display: flex;
}

.clear-search-btn:hover {
    background: rgba(94, 55, 30, 0.2);
}

/* تب‌های دسته‌بندی با اسکرول افقی نرم */
.category-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.cat-tab-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0e8de;
    border: 1px solid rgba(94, 55, 30, 0.1);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-tab-btn:hover {
    background: #e8ded2;
    color: var(--primary-brown);
}

.cat-tab-btn.active {
    background: var(--primary-brown);
    color: #ffffff;
    border-color: var(--primary-brown);
    box-shadow: 0 4px 12px rgba(62, 36, 21, 0.25);
}

.cat-tab-btn .tab-count {
    display: inline-block;
    font-size: 0.75rem;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.cat-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* -------------------- محتوای منو و بخش‌ها -------------------- */
.menu-content-area {
    padding: 20px 16px;
}

.category-section {
    margin-bottom: 36px;
    scroll-margin-top: 130px;
}

.category-section-header {
    margin-bottom: 18px;
}

.category-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.category-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eadecf;
    border: 1px solid rgba(182, 118, 62, 0.3);
    color: var(--primary-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.category-icon-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.category-name-fa {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-brown);
}

.category-name-en {
    font-size: 0.8rem;
    color: var(--primary-caramel);
    font-weight: 600;
    letter-spacing: 1px;
    margin-right: auto;
}

.category-lead-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-right: 48px;
    line-height: 1.6;
}

/* بنر تصویر هدر هر دسته */
.category-hero-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 120px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.category-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

.category-hero-card:hover img {
    transform: scale(1.03);
}

.category-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(44, 26, 17, 0.8) 0%, rgba(44, 26, 17, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #ffffff;
}

.hero-quote-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* شبکه کارت‌های آیتم‌ها */
.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* طراحی هر کارت آیتم (بهینه‌سازی کامل برای موبایل با عکس و متن) */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.item-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-caramel);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.item-card:active {
    transform: scale(0.985);
    background: #fdfaf6;
}

.item-card:hover::before {
    opacity: 1;
}

/* ساختار ردیف کارت با تصویر و اطلاعات */
.item-card-main-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* کادر تصویر بندانگشتی آیتم */
.item-thumb-box {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 14px;
    overflow: hidden;
    background: #ebe2d6;
    position: relative;
    border: 1px solid rgba(94, 55, 30, 0.12);
    box-shadow: 0 3px 10px rgba(60, 35, 18, 0.06);
    flex-shrink: 0;
    align-self: flex-start;
}

.item-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item-card:hover .item-thumb-box img {
    transform: scale(1.08);
}

.thumb-star-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #d88e44, #b6763e);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
}

/* ستون مشخصات و متن */
.item-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.item-name-group {
    flex: 1;
    min-width: 0;
}

.item-title-fa {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 2px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-title-en {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-badge-pill {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--accent-badge);
    color: var(--accent-badge-text);
    border: 1px solid rgba(182, 118, 62, 0.2);
    white-space: nowrap;
}

.item-badge-pill.highlight {
    background: #fff3e6;
    color: #9c4c00;
    border-color: #ffd299;
    font-weight: 700;
}

.item-description-text {
    font-size: 0.81rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed rgba(94, 55, 30, 0.08);
    margin-top: auto;
}

.item-tags-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag-mini {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f4eee7;
    padding: 2px 6px;
    border-radius: 6px;
}

.card-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-caramel);
    background: rgba(182, 118, 62, 0.08);
    padding: 3px 9px;
    border-radius: 8px;
    transition: var(--transition);
}

.card-view-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.item-card:hover .card-view-btn {
    background: var(--primary-brown);
    color: #ffffff;
}

.item-card:hover .card-view-btn svg {
    transform: translateX(-3px);
}

/* کارت ویژه دمنوش یا آیتم‌های سیگنچر */
.item-card.is-special {
    background: linear-gradient(135deg, #fffbf7 0%, #fbf3ea 100%);
    border: 1.5px solid rgba(216, 142, 68, 0.45);
    box-shadow: 0 4px 16px rgba(182, 118, 62, 0.12);
}

.item-card.is-special::before {
    opacity: 1;
    background: linear-gradient(180deg, var(--accent-amber), var(--primary-caramel));
}

/* -------------------- پوستر و ویترین میانی کافه (Arch Section) -------------------- */
.cafe-arch-banner {
    background: #2a180f;
    background: radial-gradient(circle at top, #3a2215 0%, #1e1009 100%);
    color: #f7ede3;
    border-radius: var(--radius-lg);
    padding: 36px 20px 30px;
    margin: 40px 16px 20px;
    text-align: center;
    box-shadow: var(--shadow-wood);
    border: 1px solid rgba(216, 142, 68, 0.25);
    position: relative;
    overflow: hidden;
}

.arch-visual-frame {
    width: 120px;
    height: 160px;
    margin: 0 auto 18px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(224, 159, 86, 0.6);
    box-shadow: 0 0 25px rgba(224, 159, 86, 0.2);
}

.arch-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
}

.arch-quote-main {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff8f0;
    margin-bottom: 6px;
    line-height: 1.5;
}

.arch-quote-sub {
    font-size: 0.95rem;
    color: var(--accent-warm);
    margin-bottom: 18px;
    font-weight: 500;
}

.instagram-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c13584, #e1306c, #f56040);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
    transition: var(--transition);
}

.instagram-direct-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.45);
}

.arch-bottom-tagline {
    margin-top: 22px;
    font-size: 0.78rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

/* -------------------- پیام خالی بودن جستجو -------------------- */
.search-empty-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
}

.search-empty-state.show {
    display: block;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.empty-text-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 4px;
}

.empty-text-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* -------------------- فوتر صفحه -------------------- */
.cafe-footer {
    text-align: center;
    padding: 24px 16px 10px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-wood-pattern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-line {
    height: 1px;
    width: 60px;
    background: rgba(94, 55, 30, 0.2);
}

.footer-btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eaddce;
    color: var(--primary-brown);
    border: 1px solid rgba(94, 55, 30, 0.15);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}

.footer-btn-qr:hover {
    background: var(--primary-brown);
    color: #ffffff;
}

/* -------------------- مودال جزئیات آیتم -------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 13, 8, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

.sheet-drag-handle-bar {
    padding: 10px 0 6px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    cursor: grab;
}

.sheet-drag-handle {
    width: 44px;
    height: 5px;
    border-radius: 4px;
    background: rgba(94, 55, 30, 0.22);
}

@media (min-width: 640px) {
    .modal-card {
        border-radius: 24px;
        transform: scale(0.95) translateY(0);
    }
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

@media (min-width: 640px) {
    .modal-overlay.active .modal-card {
        transform: scale(1) translateY(0);
    }
}

.modal-photo-box {
    position: relative;
    height: 220px;
    width: 100%;
    background: #3e2415;
}

.modal-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}

.modal-body {
    padding: 22px 20px 30px;
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-title-fa {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 4px;
}

.modal-title-en {
    font-size: 0.9rem;
    color: var(--primary-caramel);
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-desc-text {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(94, 55, 30, 0.1);
}

.modal-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-feature-pill {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: #f4eee7;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
}

.modal-action-bar {
    text-align: center;
}

.modal-dismiss-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-brown);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.modal-dismiss-btn:hover {
    background: var(--bg-wood-medium);
}

/* -------------------- مودال تولید و چاپ بارکد QR میزها -------------------- */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 7, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    text-align: center;
}

.qr-stand-card {
    background: #fbf8f4;
    border: 2px dashed rgba(182, 118, 62, 0.4);
    border-radius: 18px;
    padding: 22px 16px 18px;
    margin: 16px 0;
}

.qr-stand-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 8px;
}

.qr-stand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-stand-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-brown);
    margin-bottom: 2px;
}

.qr-stand-subtitle {
    font-size: 0.8rem;
    color: var(--primary-caramel);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.qr-canvas-holder {
    background: #ffffff;
    display: inline-block;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(60, 35, 18, 0.08);
    margin-bottom: 12px;
}

.qr-canvas-holder img, .qr-canvas-holder canvas {
    display: block;
    margin: 0 auto;
}

.qr-scan-instruction {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.qr-url-edit-box {
    margin-bottom: 16px;
    text-align: right;
}

.qr-url-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.qr-url-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.82rem;
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.qr-actions-row {
    display: flex;
    gap: 10px;
}

.btn-print-qr, .btn-download-qr {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-print-qr {
    background: var(--primary-brown);
    color: #ffffff;
    border: none;
}

.btn-print-qr:hover {
    background: var(--bg-wood-medium);
}

.btn-download-qr {
    background: #f0e6dc;
    color: var(--primary-brown);
    border: 1px solid rgba(94, 55, 30, 0.15);
}

.btn-download-qr:hover {
    background: #e3d5c6;
}

/* -------------------- استایل پرینت برای چاپ استند روی میز -------------------- */
@media print {
    body * {
        visibility: hidden;
    }
    .qr-stand-card, .qr-stand-card * {
        visibility: visible;
    }
    .qr-stand-card {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        border: 2px solid #3e2415;
        box-shadow: none;
    }
}

/* -------------------- نوار ناوبری شناور مخصوص گوشی‌های موبایل -------------------- */
.mobile-floating-bar {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: rgba(44, 26, 17, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(216, 142, 68, 0.4);
    border-radius: var(--radius-full);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 950;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.mobile-floating-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-full);
    color: #fcf6ee;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.floating-bar-btn:hover, .floating-bar-btn:active {
    background: var(--accent-amber);
    color: #ffffff;
}

.floating-bar-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* -------------------- بهینه‌سازی دقیق صفحه نمایش گوشی‌های موبایل -------------------- */
@media (max-width: 600px) {
    .cafe-header {
        padding: 24px 14px 22px;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .top-bar-actions {
        margin-bottom: 14px;
    }

    .action-chip-btn {
        padding: 6px 11px;
        font-size: 0.78rem;
    }

    .logo-wrapper {
        width: 74px;
        height: 74px;
        margin-bottom: 10px;
    }

    .brand-title-fa {
        font-size: 1.75rem;
    }

    .brand-title-en {
        font-size: 0.76rem;
        letter-spacing: 3px;
        margin-bottom: 8px;
    }

    .brand-slogan-box {
        padding: 4px 14px;
    }

    .brand-slogan-text {
        font-size: 0.85rem;
    }

    .nav-sticky-wrapper {
        padding: 10px 12px 6px;
    }

    .search-input {
        font-size: 16px; /* جلوگیری از زوم ناخواسته در مرورگر سافاری آیفون */
        padding: 10px 42px 10px 38px;
    }

    .cat-tab-btn {
        padding: 7px 13px;
        font-size: 0.82rem;
    }

    .menu-content-area {
        padding: 16px 12px;
    }

    .category-section {
        margin-bottom: 28px;
        scroll-margin-top: 115px;
    }

    .category-hero-card {
        height: 100px;
        margin-bottom: 12px;
    }

    .hero-quote-text {
        font-size: 0.86rem;
    }

    .item-card {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .item-thumb-box {
        width: 74px;
        height: 74px;
        min-width: 74px;
        border-radius: 12px;
    }

    .item-title-fa {
        font-size: 1.02rem;
    }

    .item-title-en {
        font-size: 0.72rem;
    }

    .item-description-text {
        font-size: 0.78rem;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .cafe-arch-banner {
        margin: 30px 12px 16px;
        padding: 28px 16px 24px;
    }

    .arch-visual-frame {
        width: 105px;
        height: 145px;
        margin-bottom: 14px;
    }

    .arch-quote-main {
        font-size: 1.35rem;
    }

    .arch-quote-sub {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .instagram-direct-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}
