/* style.css - نسخه نهایی با هدر و منوی سیال */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root {
    --primary-color: #ff9800; 
    --secondary-color: #5d4037;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- تنظیمات صفحات --- */
.view-section {
    min-height: 100vh;
    width: 100%;
    padding: 15px;
    padding-bottom: 100px; /* فضای خالی بیشتر برای منوی شناور */
}

/* --- هدر بالای صفحه --- */
.app-header {
    background-color: transparent; /* یا سفید اگر دوست دارید */
    /* اگر می‌خواهید هدر هم فیکس شود، این خطوط را فعال کنید: */
    /* position: sticky; top: 0; z-index: 900; background: #f8f9fa; padding-top: 10px; */
}

/* --- استایل کارت ورود و ثبت نام --- */
.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    margin: 8vh auto; /* وسط‌چین عمودی */
}

/* --- استایل محصولات --- */
.card-product {
    border: none;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    background: white;
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
}
.card-product:hover {
    transform: translateY(-3px);
}
.card-product-img-wrapper {
    height: 150px;
    width: 100%;
}
.card-product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-add-cart {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* --- دکمه‌ها و اینپوت‌ها --- */
.form-control {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #eee;
    background-color: #fff;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

/* --- منوی پایین سیال (Glassmorphism) --- */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    
    /* افکت شیشه‌ای و سیال */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    
    /* گرد کردن گوشه‌های بالا */
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.nav-item-mobile {
    text-align: center;
    color: #b0bec5;
    text-decoration: none;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item-mobile i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.nav-item-mobile.active {
    color: var(--primary-color);
}
.nav-item-mobile.active i {
    transform: translateY(-2px);
}
/* دایره کوچک زیر آیتم فعال (اختیاری برای زیبایی) */
.nav-item-mobile.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* --- وضعیت‌ها --- */
.status-pending { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-baking { background-color: #fff0e6; color: #fd7e14; border: 1px solid #ffe0d1; }
.status-ready_for_delivery { background-color: #e6fcf5; color: #0ca678; border: 1px solid #c3fae8; }
.status-delivering { background-color: #e7f5ff; color: #0d6efd; border: 1px solid #d0ebff; }
.status-completed { background-color: #d1e7dd; color: #0f5132; }

.letter-spacing-2 { letter-spacing: 10px; font-weight: bold; color: var(--secondary-color); }