/*
Theme Name: فوتوگرافر (Photographer)
Version: 8.0
Author: ممبی
Description: نسخه بدون انیمیشن حرکتی (ثابت).
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* =========================================
   1. متغیرهای سیستمی
   ========================================= */
:root {
    /* رنگ‌ها */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    
    --text-main: #1e293b;
    --text-light: #94a3b8;
    
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --border-color: #e2e8f0;

    --success: #10b981;
    --danger: #ef4444;

    /* اندازه‌ها */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-pill: 8px;

    /* سایه‌ها */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --font-family: 'Vazirmatn', sans-serif;
}

/* =========================================
   2. استایل‌های پایه
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font-family); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   3. المان‌های مخفی در دسکتاپ
   ========================================= */
.mobile-controls, .hamburger, .mobile-toolbar-sticky, 
.mobile-filter-header, .mobile-filter-footer, .filter-overlay {
    display: none !important;
}

/* =========================================
   4. هدر و ناوبری
   ========================================= */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 70px; display: flex; align-items: center;
}
header .container { width: 100%; }

nav { display: flex; justify-content: flex-start; align-items: center; height: 100%; gap: 30px; }

.logo {
    font-weight: 900; font-size: 20px; color: var(--primary);
    display: flex; align-items: center; gap: 8px; z-index: 1002; flex-shrink: 0;
}

.nav-menu { display: flex; align-items: center; flex-grow: 1; justify-content: space-between; }
.nav-menu > ul { display: flex; align-items: center; gap: 25px; list-style: none; }
.nav-link { font-weight: 500; font-size: 14px; color: var(--text-main); transition: 0.2s; position: relative; }
.nav-link:hover { color: var(--primary); }
.nav-buttons { display: flex; align-items: center; gap: 10px; margin-right: auto; }

.btn-auth {
    border: 1px solid var(--primary); padding: 8px 20px; border-radius: var(--radius-pill);
    color: var(--primary); font-weight: bold; font-size: 13px; display: inline-flex;
    align-items: center; gap: 8px; background: transparent; transition: 0.3s; cursor: pointer;
}
/* حذف حرکت در هاور */
.btn-auth:hover { background: var(--primary); color: var(--bg-white); transform: none; }

.btn-auth.dark { background: var(--text-main); border-color: var(--text-main); color: var(--bg-white); }
.btn-auth.dark:hover { background: #334155; border-color: #334155; transform: none; }

/* =========================================
   5. صفحه آرشیو
   ========================================= */
.archive-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-top: 40px; padding-bottom: 60px;
    align-items: start;
}
.archive-sidebar { position: sticky; top: 90px; z-index: 900; }
.filter-box { background: var(--bg-white); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 8px; color: var(--text-main); }
.sidebar-search { position: relative; }
.sidebar-search input { width: 100%; padding: 10px 10px 10px 35px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; }
.sidebar-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--secondary); }
.form-control { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; font-family: inherit; }
.radio-buttons { display: flex; background: var(--bg-light); border-radius: var(--radius-md); padding: 4px; border: 1px solid var(--border-color); }
.radio-btn { flex: 1; margin: 0; cursor: pointer; }
.radio-btn input { display: none; }
.radio-btn span { display: block; text-align: center; padding: 8px; border-radius: var(--radius-md); font-size: 13px; color: var(--secondary); transition: 0.2s; }
.radio-btn input:checked + span { background: #fff; color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-weight: bold; }
/* استایل سوییچ نوع محتوا */
.content-type-switch { display: flex; background: var(--bg-light); border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; }
.type-btn { flex: 1; text-align: center; padding: 10px; cursor: pointer; border-radius: var(--radius-md); font-weight: bold; color: var(--text-muted); transition: 0.2s; }
.type-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.type-btn i { margin-left: 5px; }

/* استایل چک‌باکس دسته‌ها */
.cats-checkbox-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border-color); padding: 10px; border-radius: var(--radius-md); }
.checkbox-row { display: flex; align-items: center; padding: 8px 0; cursor: pointer; font-size: 13px; color: var(--text-main); }
.checkbox-row input { display: none; }
.checkmark { width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 4px; margin-left: 10px; position: relative; transition: 0.2s; }
.checkbox-row input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.checkbox-row input:checked + .checkmark::after { content: '\2713'; color: #fff; font-size: 12px; position: absolute; left: 3px; top: -1px; }

/* استایل جهت تصویر */
.orientation-grid { display: flex; gap: 5px; }
.orient-btn { flex: 1; height: 40px; border: 1px solid var(--border-color); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); font-size: 18px; }
.orient-btn:has(input:checked) { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.orient-btn input { display: none; }

/* استایل پالت رنگ */
.color-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: relative; border: 2px solid transparent; }
.color-dot input { display: none; }
.color-dot.all { background: conic-gradient(red, yellow, green, blue); }
.color-dot:has(input:checked) { transform: scale(1.1); border-color: var(--text-main); }
/* گرید عکس‌ها */
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.photo-card { 
    background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; 
    border: 1px solid var(--border-color); transition: 0.2s; display: block; 
}





/* =========================================
   استایل مدرن سبد خرید (Mini Cart)
   ========================================= */

/* نگهدارنده اصلی (برای پوزیشن دهی منوی کشویی) */
.mini-cart-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px; /* فاصله از دکمه‌های دیگر */
}

/* دکمه دایره‌ای سبد خرید */
.btn-cart-circle {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-cart-circle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* بج تعداد (Badge) */
.cart-badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- منوی کشویی (Dropdown) --- */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0; /* تراز از سمت چپ */
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1100;
    overflow: hidden;
}

/* فلش بالای منو */
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px; /* تنظیم محل فلش */
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transform: rotate(-45deg);
}

/* نمایش منو در هاور */
.mini-cart-wrapper:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* هدر مینی کارت */
.mc-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* لیست آیتم‌ها */
.mc-items {
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
}

/* اسکرول بار زیبا */
.mc-items::-webkit-scrollbar { width: 5px; }
.mc-items::-webkit-scrollbar-track { background: #f1f5f9; }
.mc-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* آیتم تکی */
.mc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}
.mc-item:hover { background: #f9fafb; }

.mc-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.mc-info { flex: 1; overflow: hidden; }
.mc-title { 
    font-size: 0.85rem; font-weight: bold; color: var(--text-main); 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
    margin-bottom: 4px;
}
.mc-price { font-size: 0.8rem; color: var(--primary); font-weight: bold; }

.mc-remove {
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.mc-remove:hover { color: var(--danger); }

/* فوتر و دکمه‌ها */
.mc-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.mc-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: bold;
}

.mc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.mc-btn.checkout {
    background: var(--text-main);
    color: #fff;
    margin-bottom: 8px;
}
.mc-btn.checkout:hover { background: #334155; }

.mc-btn.view-cart {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--secondary);
}
.mc-btn.view-cart:hover { border-color: var(--primary); color: var(--primary); }

/* حالت خالی */
.mc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}
.mc-empty i { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.5; }
/* حذف transform در هاور */
.photo-card:hover { 
    box-shadow: var(--shadow-md); 
  
    transform: none; /* حرکت حذف شد */
}
.photo-card img { 
    width: 100%; height: 200px; object-fit: cover; 
    transition: 0.3s; 
    transform: none !important; /* زوم حذف شد */
}
.photo-card:hover img { transform: none; }

.card-info { padding: 15px; }
.card-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--secondary); }

/* دکمه لود بیشتر */
.load-more-wrapper { text-align: center; margin-top: 40px; grid-column: 1 / -1; }
#loading-spinner { color: var(--primary); font-weight: bold; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); padding: 8px 20px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-main); font-family: inherit; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: none; }
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   6. صفحه اصلی (Hero & Index)
   ========================================= */
.hero { background-size: cover; background-position: center; height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; position: relative; margin-bottom: 40px; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 800px; }
.hero h1 { font-size: 36px; margin-bottom: 15px; font-weight: 800; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* باکس جستجو */
.search-box { background: var(--bg-white); padding: 5px; border-radius: var(--radius-pill); display: flex; width: 100%; max-width: 600px; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2); }
.search-box input { flex: 1; border: none; padding: 0 20px; outline: none; font-size: 14px; background: transparent; color: var(--text-main); height: 45px; }
.search-box button { background: var(--primary); color: #fff; border: none; padding: 0 25px; margin: 3px; border-radius: var(--radius-pill); cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px; height: 40px; }
.search-box button:hover { background: var(--primary-hover); transform: none; }

.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 25px; position: relative; z-index: 2; }
.cat-item { background: rgba(255,255,255,0.2); color: #fff; padding: 6px 16px; border-radius: 50px; font-size: 13px; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(5px); }
.cat-item:hover { background: var(--bg-white); color: var(--primary); transform: none; }

/* کردیت عکاس */
.hero-credit { 
    position: absolute; bottom: 20px; left: 20px; z-index: 10; 
    background: transparent; opacity: 0.5; padding: 8px 12px; 
    border-radius: var(--radius-pill); display: flex; align-items: center; 
    gap: 10px; text-decoration: none; transition: 0.3s; max-width: 250px; 
}
.hero-credit:hover { opacity: 1; background: rgba(0,0,0,0.3); transform: none; }
.hc-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.hc-info { text-align: right; color: #fff; line-height: 1.2; }
.hc-name { font-weight: 800; font-size: 13px; color: #fff; }
.hc-label { font-size: 10px; opacity: 0.8; color: #fff; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.section-header h2 { font-size: 20px; font-weight: 800; color: var(--text-main); }
.see-all { color: var(--primary); font-size: 13px; font-weight: bold; }

/* گالری‌ها */
.grid-galleries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.gallery-box { background: var(--bg-white); padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); transition: 0.3s; display: block; }
.gallery-box:hover { box-shadow: var(--shadow-hover); transform: none; }
.g-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 90px 90px; gap: 4px; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; transform: none; }
.gallery-box:hover .g-thumbs img { transform: none; }
.g-thumbs .full-cover { grid-column: span 2; grid-row: span 2; height: 184px; }

/* عکاسان برتر */
.users-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 15px 5px; scrollbar-width: none; }
.user-card { text-align: center; min-width: 120px; cursor: pointer; transition: 0.3s; display: block; background: #fff; padding: 15px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.user-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--primary); }
.user-card img { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 10px; border: 3px solid var(--bg-light); padding: 3px; object-fit: cover; }
.user-card h4 { font-size: 14px; font-weight: bold; color: var(--text-main); }

.cta-banner { margin: 60px 0; background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; padding: 40px; border-radius: var(--radius-lg); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.cta-btn { background: var(--bg-white); color: var(--text-main); padding: 12px 30px; border-radius: var(--radius-pill); font-weight: bold; transition: 0.3s; display: inline-flex; text-decoration: none; }
.cta-btn:hover { transform: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* وبلاگ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.blog-item { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; display: block; }
.blog-item:hover { transform: none; box-shadow: var(--shadow-hover); }
.blog-item img { height: 180px; width: 100%; object-fit: cover; transform: none; }
.blog-txt { padding: 20px; }
.blog-txt h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--text-main); }
.blog-txt p { font-size: 13px; color: var(--secondary); margin: 0; }

/* =========================================
   7. صفحه گالری تکی
   ========================================= */
.gallery-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    align-items: start;
}
.gallery-cover { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-md); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.gallery-buy-box {
    background: #f0fdf4; padding: 20px; border-radius: var(--radius-md);
    border: 1px solid #bbf7d0; display: flex; justify-content: space-between; align-items: center; margin-top: 30px;
}
.gallery-price { font-size: 24px; font-weight: 900; color: #15803d; }
.gallery-price small { font-size: 14px; font-weight: normal; color: #166534; }












/* =========================================
   12. استایل‌های جدید صفحه محصول و گالری (Modern UI)
   ========================================= */

/* باکس عکاس (مدرن) */
.photographer-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    transition: 0.3s;
}
.photographer-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.p-avatar-lg {
    width: 55px; height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.p-info h4 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text-main); }
.p-info span { font-size: 12px; color: var(--secondary); }

/* دکمه بوک‌مارک (جایگزین لایک) */
.bookmark-btn {
    width: 45px; height: 45px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.3s;
}
.bookmark-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
    transform: translateY(-2px);
}
/* حالت فعال (ذخیره شده) */
.bookmark-btn.active {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

/* باکس اشتراک‌گذاری */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.share-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex; align-items: center; gap: 8px;
}

/* دکمه‌های اجتماعی */
.social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.social-btn {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.sb-telegram { background: #229ED9; }
.sb-whatsapp { background: #25D366; }
.sb-twitter  { background: #000000; }
.sb-linkedin { background: #0077b5; }

/* لینک کوتاه */
.copy-box {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #e2e8f0;
}
.copy-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: monospace;
    font-size: 13px;
    padding: 0 10px;
    color: var(--secondary);
    direction: ltr;
}
.copy-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main);
    transition: 0.2s;
}
.copy-btn:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* اصلاح قیمت و واریشن */
.price-tag {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
}
.price-unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--secondary);
    margin-right: 5px;
}

/* استایل دکمه نارنجی برای آلبوم */
.btn-auth.orange {
    border-color: #f97316 !important;
    color: #c2410c !important;
    background: transparent;
}

.btn-auth.orange:hover {
    background-color: #f97316 !important;
    color: #fff !important;
    border-color: #f97316 !important;
    transform: translateY(-2px); /* حرکت ریز */
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}















/* =========================================
   18. استایل دسته‌بندی‌های دایره‌ای (Categories)
   ========================================= */
.cats-circle-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    justify-content: center; /* در دسکتاپ وسط‌چین */
    flex-wrap: wrap;
}

.cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: 0.3s;
    width: 100px; /* عرض ثابت برای نظم */
    flex-shrink: 0;
}

.cat-circle-item:hover {
    transform: translateY(-5px);
}

.cat-circle-img {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* دایره کامل */
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* سایه نرم */
    position: relative;
    transition: 0.3s;
    background: var(--bg-light);
}

/* افکت رنگی دور عکس در هاور (مثل اینستاگرام) */
.cat-circle-item:hover .cat-circle-img {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.cat-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.cat-circle-item:hover img {
    transform: scale(1.1); /* زوم ملایم */
}

.cat-circle-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

/* ریسپانسیو موبایل */
@media (max-width: 992px) {
    .cats-circle-wrapper {
        justify-content: flex-start; /* در موبایل اسکرول افقی از راست */
        flex-wrap: nowrap; /* جلوگیری از شکستن خط */
        padding-bottom: 25px; /* فضا برای اسکرول بار */
    }
    
    .cat-circle-item {
        width: 80px;
    }
    
    .cat-circle-img {
        width: 75px;
        height: 75px;
    }
    
    .cat-circle-name {
        font-size: 12px;
    }
}






/* =========================================
   8. سایر صفحات
   ========================================= */
.single-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.preview-box { background: var(--bg-white); padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.preview-box img { width: 100%; border-radius: var(--radius-md); }
.photo-meta { margin-top: 15px; display: flex; justify-content: center; gap: 20px; font-size: 12px; color: var(--secondary); }
.photo-meta i { color: var(--primary); margin-left: 5px; }

.sticky-sidebar { position: sticky; top: 90px; }
.single-title { font-size: 24px; font-weight: 900; color: var(--text-main); margin-bottom: 20px; }

.photographer-info { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.photographer-info a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; transition: 0.2s; }
.photographer-info a:hover { opacity: 0.8; }
.p-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-light); }
.p-name { font-weight: 800; font-size: 15px; display: block; color: var(--text-main); }
.p-role { font-size: 11px; color: var(--secondary); display: block; margin-top: 2px; }

.size-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; }
.size-option { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; background: var(--bg-white); transition: 0.2s; margin-bottom: 10px; }
.size-option:hover { border-color: #cbd5e1; }
.size-option:has(input:checked) { border-color: var(--primary); background: #eff6ff; }
.size-price { font-weight: 900; color: var(--primary); font-size: 16px; }

.btn-filled { background: var(--primary); color: #fff; padding: 12px 30px; border-radius: var(--radius-pill); font-weight: bold; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border:none; cursor: pointer; text-decoration: none; }
.btn-filled:hover { background: var(--primary-hover); transform: none; }

/* Profile */
.profile-hero { background: linear-gradient(135deg, var(--text-main), #0f172a); color: #fff; padding: 60px 0; margin-top: -20px; }
.ph-content { display: flex; align-items: center; gap: 30px; }
.ph-avatar-box img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.2); object-fit: cover; }
.ph-info h1 { margin: 0 0 10px 0; font-size: 2rem; }
.ph-badge { background: var(--primary); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.ph-bio { margin-top: 15px; opacity: 0.9; max-width: 600px; }
.profile-nav { display: flex; gap: 20px; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; }
.p-nav-item { padding: 15px 5px; font-weight: bold; color: var(--secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; display: flex; align-items: center; gap: 8px; }
.p-nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.empty-state { text-align: center; padding: 60px; background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }

/* Cart */



/* =========================================
   13. استایل مدرن سبد خرید (Cart V2)
   ========================================= */

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.cart-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.cart-table-modern {
    width: 100%;
    border-collapse: collapse;
}

.cart-table-modern th {
    background: #f8fafc;
    padding: 18px 20px;
    text-align: right;
    font-size: 0.9rem;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.cart-table-modern .text-center { text-align: center; }

.cart-table-modern td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.cart-table-modern tr:last-child td { border-bottom: none; }

/* آیتم محصول */
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cp-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    display: block;
}
.cp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.cp-img:hover img { transform: scale(1.1); }

.cp-info { display: flex; flex-direction: column; gap: 5px; }
.cp-title {
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
}
.cp-title:hover { color: var(--primary); }
.cp-code { font-size: 0.75rem; color: #94a3b8; font-family: monospace; }

/* قیمت و بج */
.cp-price { font-weight: 800; color: #1e293b; font-size: 1rem; }
.cp-price small { font-size: 0.75rem; color: #64748b; font-weight: normal; }

.badge-type {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold;
}
.badge-type.photo { background: #f1f5f9; color: #475569; }
.badge-type.gallery { background: #e0f2fe; color: #0369a1; }

.btn-remove {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}
.btn-remove:hover { background: #fef2f2; color: #ef4444; border-color: #fee2e2; }

/* سایدبار خلاصه */
.cart-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }

.summary-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.sb-title { margin: 0 0 15px 0; font-size: 1rem; color: #1e293b; }

/* فرم کوپن */
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: 0.2s;
}
.coupon-form input:focus { background: #fff; border-color: var(--primary); }
.coupon-form button {
    padding: 0 15px;
    background: #334155;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}
.coupon-form button:hover { background: #1e293b; }

.coupon-active {
    background: #f0fdf4;
    border: 1px dashed #16a34a;
    padding: 12px;
    border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
}
.ca-icon { color: #16a34a; font-size: 1.2rem; }
.ca-info { flex: 1; font-size: 0.85rem; color: #15803d; }
.ca-remove { color: #ef4444; cursor: pointer; opacity: 0.7; }
.ca-remove:hover { opacity: 1; }

/* بخش جمع کل */
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 0.95rem; color: #475569;
}
.summary-row.discount { color: #ef4444; }
.summary-divider { height: 1px; background: #e2e8f0; margin: 15px 0; border-top: 1px dashed #cbd5e1; }
.summary-row.total { color: #1e293b; font-weight: bold; align-items: baseline; }
.total-price { font-size: 1.4rem; color: var(--primary); }
.total-price small { font-size: 0.9rem; color: #64748b; font-weight: normal; }

.btn-checkout {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.secure-badge {
    text-align: center; margin-top: 15px; font-size: 0.8rem; color: #94a3b8;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* حالت خالی */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}
.ec-icon {
    width: 100px; height: 100px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    color: #cbd5e1; font-size: 3rem;
}
.empty-cart h3 { margin: 0 0 10px 0; color: #334155; }
.empty-cart p { color: #64748b; margin-bottom: 25px; }

/* ریسپانسیو */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-sidebar { position: static; order: -1; margin-bottom: 30px; } /* خلاصه بالا باشد */
}










/* Receipt */
.receipt-card { background: var(--bg-white); max-width: 700px; margin: 0 auto; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); text-align: center; }
.success-icon-box { font-size: 5rem; color: var(--success); margin-bottom: 20px; animation: popIn 0.5s ease; }
.receipt-title { font-size: 24px; font-weight: 900; color: var(--text-main); margin-bottom: 10px; }
.download-item { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dl-info { display: flex; align-items: center; gap: 15px; text-align: right; }
.dl-icon { width: 45px; height: 45px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--secondary); border: 1px solid var(--border-color); }
.receipt-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: center; gap: 15px; }

/* Footer */
footer { background: var(--text-main); color: var(--text-light); padding: 60px 0 20px; margin-top: 80px; font-size: 13px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.f-col h3 { color: #fff; margin-bottom: 20px; border-right: 3px solid var(--primary); padding-right: 15px; font-size: 16px; font-weight: bold; }
#back-to-top { position: fixed; bottom: 30px; left: 30px; background: var(--primary); color: #fff; width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 999; }
#back-to-top:hover { transform: none; background: var(--primary-hover); }

/* Pagination */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 50px; direction: ltr; }
.pagination { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; }
.pagination li a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 50%; color: var(--secondary); font-size: 14px; font-weight: bold; transition: 0.3s; }
.pagination li a:hover { background-color: var(--bg-light); color: var(--primary); border-color: var(--primary); transform: none; }
.pagination li.active a { background-color: var(--primary); color: #fff; border-color: var(--primary); }

@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }




/* =========================================
   10. استایل اختصاصی صفحه نوشته (Single Post)
   ========================================= */

.blog-container {
    max-width: 850px; /* عرض مناسب برای خوانایی متن */
    margin: 40px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* هدر مقاله (عنوان و متا) */
.blog-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.blog-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.4;
    margin: 15px 0;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-meta i { color: var(--primary); }

/* --- بدنه اصلی محتوا (Typography) --- */
.blog-content {
    font-size: 16px;
    line-height: 1.9; /* فاصله خطوط برای خوانایی بهتر */
    color: #334155; /* خاکستری تیره (نه مشکی مطلق) */
    text-align: justify;
}

/* پاراگراف‌ها */
.blog-content p {
    margin-bottom: 20px;
}

/* تیترهای داخلی متن */
.blog-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 15px;
    position: relative;
    padding-right: 15px;
}

/* خط تزئینی کنار تیتر h2 */
.blog-content h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.blog-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.blog-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* تصاویر داخل متن */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: var(--shadow-md);
    display: block;
}

/* لینک‌های داخل متن */
.blog-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    font-weight: 500;
    transition: 0.2s;
}
.blog-content a:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* لیست‌ها (ul, ol) */
.blog-content ul, .blog-content ol {
    margin-bottom: 25px;
    padding-right: 25px;
}

.blog-content ul li {
    list-style: disc;
    margin-bottom: 8px;
    padding-right: 5px;
}

.blog-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
    padding-right: 5px;
}

/* نقل قول (Blockquote) */
.blog-content blockquote {
    background: #f8fafc;
    border-right: 4px solid var(--primary);
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #475569;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
}

/* کدهای داخل متن */
.blog-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #ef4444;
    font-size: 0.9em;
    direction: ltr;
    display: inline-block;
}

.blog-content pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    margin-bottom: 25px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px;
        margin-top: 20px;
    }
    .blog-header h1 {
        font-size: 22px;
    }
    .blog-content {
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =========================================
   11. استایل دکمه‌های تعاملی و اشتراک‌گذاری
   ========================================= */

/* نوار ابزار زیر تصویر */
.action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

/* دکمه‌های گرد */
.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.btn-circle:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* دکمه لایک فعال */
.btn-circle.liked {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* باکس لینک کوتاه (اشتراک‌گذاری) */
.share-box-wrapper {
    position: relative;
}

.share-dropdown {
    position: absolute;
    bottom: 60px; /* بالای دکمه */
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--text-main);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    bottom: 55px;
}

/* مثلث پایین تولتیپ */
.share-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

.short-link-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.short-link-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 8px;
    width: 100%;
    font-family: monospace;
    direction: ltr;
}

.btn-copy {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}
.btn-copy:hover { background: var(--primary-hover); }

/* اصلاح گرید صفحه محصول */
.single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* تصویر بزرگتر */
    gap: 30px;
}

/* سایدبار چسبان مدرن */
.sticky-sidebar {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

/* گرید صفحه گالری */
/* =========================================
   اصلاحیه لی‌اوت گالری (Fix Gallery Layout)
   ========================================= */

.gallery-layout {
    display: grid;
    /* ستون اول (سایدبار): 320 پیکسل */
    /* ستون دوم (محتوا): بقیه فضا (با محدودیت برای جلوگیری از اسکرول افقی) */
    grid-template-columns: 320px minmax(0, 1fr); 
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: start; /* جلوگیری از کش آمدن ارتفاع سایدبار */
}

.gallery-sidebar {
    /* سایدبار سمت راست */
    width: 100%; 
}

.gallery-content {
    /* محتوای سمت چپ */
    width: 100%;
}

/* در موبایل و تبلت زیر هم شوند */
@media (max-width: 992px) {
    .gallery-layout {
        grid-template-columns: 1fr; /* تک ستونه */
    }
    
    .gallery-sidebar {
        order: -1; /* سایدبار اول نمایش داده شود */
        margin-bottom: 30px;
    }
}
@media (max-width: 992px) {
    .single-grid { grid-template-columns: 1fr; }
    .sticky-sidebar { position: static; }
}


/* =========================================
   9. ریسپانسیو و موبایل (Mobile Styles)
   ========================================= */
@media (max-width: 992px) {
    
    /* فعال‌سازی المان‌های موبایل */
    .mobile-controls, .hamburger, .mobile-toolbar-sticky { display: flex !important; }
    
    /* مخفی کردن المان‌های دسکتاپ */
    .desktop-only, .desktop-only-filter { display: none !important; }

    /* هدر موبایل (چپ چین) */
    nav { justify-content: space-between; }
    .mobile-controls { display: flex; align-items: center; gap: 15px; margin-right: auto; }
    .mob-icon { font-size: 20px; color: var(--text-main); display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: var(--bg-light); }
    .hamburger { display: block; font-size: 32px; cursor: pointer; color: var(--text-main); line-height: 1; }

    /* منوی کشویی */
    .nav-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: var(--bg-white); flex-direction: column; align-items: flex-start; padding: 80px 20px; z-index: 1001; transition: 0.3s; box-shadow: -5px 0 30px rgba(0,0,0,0.1); }
    .nav-menu.active { right: 0; }
    .nav-menu > ul { flex-direction: column; width: 100%; gap: 0; }
    .nav-item { width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-link { padding: 15px 0; width: 100%; }
    .menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
    .menu-overlay.active { display: block; }

    /* آرشیو موبایل */
    .archive-container { display: block; padding-top: 10px; }
    .mobile-toolbar-sticky { gap: 10px; margin-bottom: 15px; position: sticky; top: 75px; z-index: 800; background: var(--bg-body); padding: 10px 0; }
    .mob-search-box { flex: 1; position: relative; }
    .mob-search-box input { width: 100%; padding: 0 35px 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); height: 42px; background: #fff; }
    .mob-search-box i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--secondary); }
    .btn-filter-trigger { background: #fff; border: 1px solid var(--border-color); padding: 0 15px; border-radius: var(--radius-pill); font-weight: bold; color: var(--text-main); display: flex; align-items: center; gap: 5px; height: 42px; }

    /* سایدبار تبدیل به Bottom Sheet */
    .archive-sidebar { position: fixed; bottom: -100%; left: 0; right: 0; top: auto; width: 100%; height: auto; max-height: 85vh; background: #fff; z-index: 2000; border-radius: 20px 20px 0 0; transition: bottom 0.3s; box-shadow: 0 -5px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; }
    .archive-sidebar.active { bottom: 0; }
    .filter-box { border: none; padding: 0; height: 100%; display: flex; flex-direction: column; }
    .mobile-filter-header { display: flex !important; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
    .mobile-filter-header h3 { display: block; margin: 0; font-size: 16px; font-weight: bold; }
    .close-filter { font-size: 24px; cursor: pointer; }
    .filter-scroll-area { padding: 20px; overflow-y: auto; flex: 1; }
    .mobile-filter-footer { display: block !important; padding: 15px 20px; border-top: 1px solid var(--border-color); background: #fff; }
    .btn-block { width: 100%; }
    .filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; }
    .archive-sidebar.active + .filter-overlay { display: block; }

    /* گرید عکس‌ها: دو ستونه */
    .grid-photos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .photo-card img { height: 140px; }
    .card-info { padding: 10px; }
    .card-title { font-size: 13px; }
    .card-meta { font-size: 10px; }

    /* سایر صفحات */
    .hero { height: 350px; padding: 0 20px; }
    .hero h1 { font-size: 24px; }
    .single-grid, .gallery-hero { grid-template-columns: 1fr; }
    .gallery-cover { height: 250px; }
    .gallery-buy-box { flex-direction: column; gap: 15px; text-align: center; }
    .cart-table thead { display: none; }
    .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table td { text-align: right; padding: 10px; border-bottom: none; }
    .cart-table tr { border-bottom: 1px solid var(--border-color); margin-bottom: 15px; padding-bottom: 15px; }
    .receipt-footer { flex-direction: column; }
    .receipt-footer .btn { width: 100%; }
    .download-item { flex-direction: column; gap: 15px; align-items: flex-start; }
    .download-item .btn { width: 100%; }
}

/* =========================================
   استایل اعلان‌های سیستم (Alerts)
   ========================================= */
.site-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 90%;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.4s ease-out;
    font-family: var(--font-family);
    direction: rtl;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.close-alert {
    cursor: pointer;
    font-size: 20px;
    margin-right: 15px;
    line-height: 1;
    opacity: 0.7;
}
.close-alert:hover { opacity: 1; }

/* رنگ‌بندی */
.site-alert.alert-success {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    color: #166534;
}
.site-alert.alert-error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #991b1b;
}
.site-alert.alert-warning {
    background: #fffbeb;
    border: 1px solid #d97706;
    color: #92400e;
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}