/* ===== تم روشن فست فود ===== */
:root {
    --bg-body: #FFF9F0;
    --bg-card: #FFFFFF;
    --text-primary: #2D1B11;
    --text-secondary: #7A5A4A;
    --border: #FFE0B5;
    --accent: #E63946;        /* قرمز تند */
    --accent-dark: #C1121F;
    --accent-light: #FFB4A2;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
    --header-bg: #FFFFFF;
}

/* ===== تم تیره فست فود ===== */
body.dark {
    --bg-body: #121212;
    --bg-card: #1E1E1E;
    --text-primary: #F5F5F5;
    --text-secondary: #D4A373;
    --border: #2C2C2C;
    --accent: #F25C54;
    --accent-dark: #D6453D;
    --accent-light: #FF8A75;
    --shadow: 0 8px 20px rgba(0,0,0,0.3);
    --header-bg: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.5;
}

.fastfood-screen {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-body);
}

/* ========== هدر ========== */
.fastfood-header {
    background: var(--header-bg);
    padding: 16px 20px;
    border-bottom: 3px solid var(--accent);
    text-align: center;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.header-text {
    text-align: right;
}
.header-text h1 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
    color: var(--text-primary);
}
.header-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}
@media (max-width: 380px) {
    .header-logo { width: 50px; height: 50px; }
    .header-text h1 { font-size: 1.1rem; }
}

/* ========== جستجو ========== */
.fastfood-search {
    margin: 16px;
    position: relative;
}
.fastfood-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
}
.fastfood-search input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
}
.fastfood-search input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ========== پروموشن ========== */
.fastfood-promo-card {
    margin: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: white;
}
.promo-text { flex: 1; }
.promo-text h3 { font-size: 1rem; margin-bottom: 6px; }
.promo-text p { font-size: 0.8rem; margin-bottom: 12px; opacity: 0.9; }
.promo-btn {
    background: white;
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}
.promo-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 12px;
    border: 2px solid white;
}

/* ========== دسته‌بندی به صورت گرید ========== */
.fastfood-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    margin-bottom: 8px;
}
.category-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid var(--border);
}
.category-card.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.category-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}
.category-card span {
    font-weight: 600;
    font-size: 0.8rem;
}
@media (max-width: 380px) {
    .fastfood-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== لیست محصولات (عمودی) ========== */
.fastfood-products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}
.product-row {
    background: var(--bg-card);
    border-radius: 28px;
    display: flex;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.product-row:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.product-row-img {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.product-row-info {
    flex: 1;
}
.product-row-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.product-row-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-row-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.order-btn {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 6px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.order-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}
.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    display: none;
}

/* ========== فوتر ========== */
.fastfood-footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 2px solid var(--border);
    margin-top: 24px;
}
.fastfood-footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ========== مودال جزئیات (اختیاری) ========== */
.fastfood-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-card);
    max-width: 90%;
    width: 350px;
    border-radius: 28px;
    padding: 20px;
    position: relative;
}
.modal-close {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}
.modal-content img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 16px;
}
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}
.share-buttons button, .share-buttons a {
    background: var(--bg-body);
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

/* ========== پرلودر ========== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.loader-burger {
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E63946"><path d="M2 19h20l-2-4H4l-2 4zm4-6h12l2-4H4l2 4zM12 3l-4 4h8l-4-4z"/></svg>') no-repeat center;
    background-size: contain;
    animation: bounce 0.6s infinite alternate;
}
@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}
.loader-box { text-align: center; }
.loader-logo { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 16px; }
#preloader.hide { opacity: 0; visibility: hidden; }
/* دکمه جزئیات (هماهنگ با قالب) */
.details-btn {
    background: var(--accent);
    border: none;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: 8px;
}
.details-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

/* ========== هدر ========== */
.fastfood-header {
    background: var(--header-bg);
    padding: 16px 20px;
    border-bottom: 3px solid var(--accent);
    text-align: center;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* لوگو در راست، متن در چپ (در RTL برعکس) */
    gap: 14px;
    flex-wrap: wrap;
}
.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}
.header-text {
    text-align: right;
    flex: 1;
}
.header-text h1 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
    color: var(--text-primary);
}
.header-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 4px 0 0;
}
@media (max-width: 380px) {
    .header-logo {
        width: 50px;
        height: 50px;
    }
    .header-text h1 {
        font-size: 1.1rem;
    }
    .header-text p {
        font-size: 0.7rem;
    }
}
