/* ---------- Estedad Font ---------- */
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ---------- Theme ---------- */
:root {
    --bg:         #ede6d6;
    --nav-bg:     #9baf4e;
    --btn:        #7a3c5e;
    --text:       #2b2b2b;
    --card-bg:    #ffffff;
}

/* ---------- Reset ---------- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Estedad', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

/* ---------- Layout ---------- */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--bg);
}

.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* ---------- Header Logo ---------- */
.app-logo-container {
    margin-top: 30px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border: 2px solid var(--btn);
    border-radius: 24px;
    background-color: transparent;
    box-shadow: 0 8px 20px rgba(122, 60, 94, 0.12);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---------- App Subtitle ---------- */
.app-subtitle-container {
    width: 100%;
    text-align: center;
    margin-bottom: 28px;
}

.app-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
}

/* ---------- Sandwich Card ---------- */
.sandwich-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(122, 60, 94, 0.08);
    border: 1px solid rgba(201, 138, 58, 0.2);
    animation: cardFadeIn 0.3s ease-out;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sandwich-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--btn);
}

.sandwich-meta {
    display: flex;
    justify-content: flex-start;
}

.calories {
    background: rgba(122, 60, 94, 0.08);
    color: var(--btn);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.card-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.card-body h2 {
    font-size: 16px;
    margin: 0 0 16px;
    font-weight: 700;
    color: #444;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ingredients-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.bullet {
    color: var(--nav-bg);
    font-size: 22px;
    line-height: 0;
}

/* ---------- Floating Bottom Nav (Telegram Style) ---------- */
.floating-bottom-nav {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    display: flex;
    gap: 20px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 100;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: #8e8e93;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-tab-btn.active {
    color: var(--btn);
    background: rgba(122, 60, 94, 0.1);
}

.nav-icon {
    width: 26px;
    height: 26px;
}

/* ---------- Floating Call Button ---------- */
.floating-call-btn {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px; /* در سمت چپ صفحه قرار می‌گیرد */
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* دکمه خالی */
    color: var(--btn); /* رنگ آیکون */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    text-decoration: none;
}

/* افکت لمس شدن (فشرده شدن) دکمه */
.floating-call-btn:active {
    transform: scale(0.9);
    background: rgba(122, 60, 94, 0.1); /* یک هاله ملایم هنگام کلیک */
}

.call-icon {
    width: 28px;
    height: 28px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ---------- Home Order CTA ---------- */
.order-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 400px;
    margin: 6px 0 20px;
    padding: 20px 22px;
    background: var(--btn);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(122, 60, 94, 0.25);
    transition: filter 0.15s ease, transform 0.08s ease;
}

.order-cta:hover  { filter: brightness(1.08); }
.order-cta:active { transform: scale(0.98); }

.order-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.order-cta-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.order-cta-date {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.order-cta-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.9;
}