/* Project: Gallery Pasha - Web App
   Style: Minimalist / Airbnb Inspired
   Framework: Atomic UI (Modular & Responsive)
*/

/* 1. تنظیمات پایه و فراخوانی آفلاین فونت وزیر */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #FF5A1F;       /* نارنجی اختصاصی گالری پاشا */
    --primary-hover: #E14D1A;
    --bg-light: #F7F7F7;      /* خاکستری بسیار روشن برای پس‌زمینه */
    --card-bg: #FFFFFF;
    --text-main: #222222;
    --text-muted: #717171;
    --border-color: #DDDDDD;
    --shadow: 0 6px 16px rgba(0,0,0,0.08); /* */
    --radius: 12px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease-in-out; /* */
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    direction: rtl;
    margin: 0;
    padding: 0;
    line-height: 1.6; /* */
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px; /* */
}

/* 2. هدر چسبنده (Sticky Header) */
header {
    background: var(--card-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* */
    top: 0;
    z-index: 1000;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFF5F1; /* نارنجی بسیار کم‌رنگ */
    border: 1px solid rgba(255, 90, 31, 0.3);
    border-radius: var(--radius);
    padding: 10px 15px;
    font-size: 0.85rem; /* */
    color: var(--primary);
    font-weight: 700;
}

/* 3. کامپوننت‌های اتمیک: اینپوت‌ها و دکمه‌ها */
.input-minimal {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: #fff; /* */
}

.input-minimal:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.btn-main {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    display: flex; /* */
    justify-content: center;
    align-items: center;
}

.btn-main:active {
    transform: scale(0.97);
}

.btn-main:disabled {
    background-color: #ccc;
    cursor: not-allowed; /* */
}

/* 4. کارت تغییر قیمت دسته جمعی */
.bulk-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color); /* */
}

.bulk-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 15px; /* */
}

/* 5. لیست محصولات (Card List) */
.product-item {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* */
}

.product-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius) var(--radius); /* */
}

.product-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0; /* */
}

.item-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-badge {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #555;
    white-space: nowrap; /* */
}

.delete-btn {
    background: #fff0f0;
    border: 1px solid #ffebeb;
    color: #ff4444;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center; /* */
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* 6. صفحه نمایش (Display Table) مخصوص مشتری */
.display-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0; /* */
}

.price-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem; /* */
}

/* 7. ریسپانسیو و موبایل */
@media (max-width: 480px) {
    .container {
        padding: 12px; /* */
    }
    .bulk-grid {
        grid-template-columns: 1fr; /* در موبایل اینپوت‌ها زیر هم می‌روند */
    }
    header h2 {
        font-size: 1.2rem; /* */
    }
}

/* 8. ابزارهای کمکی (Utilities) */
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.text-center { text-align: center; } /* */
.shadow-sm { box-shadow: var(--shadow); }