/*
Theme Name: فوتوکا (Photoka)
Theme URI: https://photoka.ir
Author: ممبی
Description: قالب حرفه‌ای شبیه شاتر استوک (نسخه کامل)
Version: 2.0
*/

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* =========================================
   1. تنظیمات پایه و متغیرها
   ========================================= */
:root {
    --mp-primary: #6ac847;       
    --mp-primary-hover: #5cbd38; 
    --mp-accent: #ffb931;
    --mp-dark: #474b53;
    --mp-gray: #85878d;
    --mp-light-bg: #f8f9fa;
    --mp-white: #ffffff;
    --mp-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    --mp-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --radius-md: 18px;
    --radius-full: 50px;
    --sidebar-width: 280px;
}





@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'VazirMatn';
    src: url('assets/fonts/VazirMatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}





* { margin: 0; padding: 0; box-sizing: border-box; outline: none; font-family: 'Vazirmatn', sans-serif; -webkit-tap-highlight-color: transparent; }

body { 
    background-color: var(--mp-light-bg); 
    color: var(--mp-dark); 
    line-height: 1.7; 
    overflow-x: hidden; 
    font-size: 13.5px;
    direction: rtl;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* دکمه‌ها */
.btn {
    background-color: var(--mp-primary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(106, 200, 71, 0.25);
    transition: 0.3s;
}
.btn:hover {
    background-color: var(--mp-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 200, 71, 0.4);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #ddd;
    color: #555 !important;
    box-shadow: none;
    padding: 7px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center; gap: 8px;
    cursor: pointer; transition: 0.3s;
}
.btn-outline:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary) !important;
    background: #fff;
}

.btn-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--mp-dark);
    border: 1px solid #eee;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}
.btn-icon:hover { background: #f0f0f0; color: var(--mp-primary); border-color: var(--mp-primary); }
.badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--mp-accent); color: #000;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* تایتل بخش‌ها */
.section-header { text-align: center; margin-bottom: 40px; margin-top: 70px; }
.section-header h2 { font-size: 24px; font-weight: 800; color: var(--mp-dark); margin-bottom: 8px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--mp-primary); border-radius: 10px; margin: 8px auto 0; }
.section-header p { color: var(--mp-gray); font-size: 13px; }

/* =========================================
   2. هدر (Header)
   ========================================= */
header {
    background-color: var(--mp-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 20px; font-weight: 900; color: var(--mp-dark); display: flex; align-items: center; gap: 8px; z-index: 1001; }
.logo i { color: var(--mp-primary); font-size: 26px; }

.main-nav ul { display: flex; gap: 25px; }
.main-nav a { font-weight: 500; font-size: 13px; color: var(--mp-dark); position: relative; }
.main-nav a:hover { color: var(--mp-primary); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* بخش‌های مخصوص موبایل */
.mobile-actions { display: none; align-items: center; gap: 15px; }
.hamburger { font-size: 22px; cursor: pointer; color: var(--mp-dark); display: flex; align-items: center; }

/* عکس پروفایل موبایل */
.mobile-profile-img {
    width: 35px; height: 35px; border-radius: 50%;
    object-fit: cover; border: 2px solid #eee;
    cursor: pointer;
}

/* =========================================
   3. منوهای کشویی (Sidebar & Cart)
   ========================================= */
/* لایه تاریک پشت */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(3px);
}
.overlay.active { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; bottom: 0;
    width: var(--sidebar-width); background: #fff;
    z-index: 2001; padding: 25px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu-sidebar { right: 0; transform: translateX(100%); }
.mobile-menu-sidebar.active { transform: translateX(0); }

.cart-sidebar { left: 0; transform: translateX(-100%); width: 320px; }
.cart-sidebar.active { transform: translateX(0); }

.mm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.close-btn { font-size: 20px; color: #888; cursor: pointer; transition: 0.3s; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.close-btn:hover { background: #f0f0f0; color: #ff4757; }

.mm-links li { margin-bottom: 5px; }
.mm-links a { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: #444; padding: 12px; border-radius: 10px; transition: 0.2s; }
.mm-links a:hover { background: #eafbea; color: var(--mp-primary); }
.mm-links i { width: 20px; color: var(--mp-gray); text-align: center; }
.mm-links a:hover i { color: var(--mp-primary); }

.mm-auth { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #eee; padding-top: 20px; }
.mm-auth .btn, .mm-auth .btn-outline { width: 100%; justify-content: center; }

.cart-item { display: flex; gap: 12px; margin-bottom: 15px; border-bottom: 1px solid #f9f9f9; padding-bottom: 15px; }
.cart-img { width: 65px; height: 65px; border-radius: 12px; object-fit: cover; }
.cart-info { flex-grow: 1; }
.cart-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.cart-info .price { font-size: 12px; color: var(--mp-primary); font-weight: 800; display: block; margin-bottom: 4px; }
.cart-remove { color: #ff6b6b; font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cart-footer { margin-top: auto; padding-top: 20px; border-top: 2px dashed #eee; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 20px; color: var(--mp-dark); }

/* =========================================
   4. هیرو (Hero)
   ========================================= */
/* =========================================
   استایل‌های بخش هیرو (Hero Section)
   ========================================= */

.hero-section {
    position: relative;
    height: 550px; /* ارتفاع مناسب برای دسکتاپ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    border-radius: 0 0 40px 40px; /* گرد کردن پایین */
    overflow: hidden;
}

/* لایه تاریک روی عکس برای خوانایی متن */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* گرادینت از تیره به رنگ برند با شفافیت */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4), rgba(37, 99, 235, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* عنوان اصلی */
.hero-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.3;
}

/* زیرعنوان */
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* باکس جستجو */
.hero-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15); /* شیشه‌ای */
    padding: 8px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-search-input {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 50px;
    padding: 0 60px 0 25px; /* فضای دکمه */
    font-size: 16px;
    background: #fff;
    color: var(--mp-dark);
    font-family: inherit;
    transition: 0.3s;
}

.hero-search-input:focus {
    box-shadow: inset 0 0 0 2px var(--mp-primary);
}

.hero-search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mp-primary);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(106, 200, 71, 0.4);
}

.hero-search-btn:hover {
    background: var(--mp-primary-hover);
    transform: translateY(-50%) scale(1.05);
}

/* تگ‌های محبوب */
.hero-tags {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.hero-tag {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    text-decoration: none;
}

.hero-tag:hover {
    background: #fff;
    color: var(--mp-primary);
}

/* کردیت عکاس (پایین سمت چپ) */
.hero-credit {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    text-decoration: none;
    max-width: 280px;
}

.hero-credit:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(5px);
}

.hc-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.hc-info {
    text-align: right;
    line-height: 1.3;
}

.hc-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.hc-name {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* انیمیشن */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-section {
        height: 450px;
        border-radius: 0 0 25px 25px;
        padding: 80px 0;
    }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 30px; }
    .hero-search-input { font-size: 14px; padding-left: 50px; }
    .hero-credit { bottom: 15px; left: 15px; padding: 6px 12px; }
    .hc-avatar img { width: 30px; height: 30px; }
}
/* =========================================
   5. کارت‌ها و گریدها
   ========================================= */
/* دسته‌بندی */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.cat-item { background: #fff; padding: 15px; border-radius: 15px; text-align: center; box-shadow: var(--mp-shadow); transition: 0.3s; display: block; }
.cat-item:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.cat-icon { font-size: 24px; color: var(--mp-primary); margin-bottom: 8px; background: #eafbea; width: 50px; height: 50px; line-height: 50px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-title { font-weight: 700; color: var(--mp-dark); font-size: 13px; }

/* عکس‌ها */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.photo-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--mp-shadow); transition: 0.4s; position: relative; border: 1px solid transparent; display: block; }
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.pc-image { height: 200px; position: relative; overflow: hidden; }
.pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.photo-card:hover .pc-image img { transform: scale(1.1); }
.pc-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: 0.3s; }
.photo-card:hover .pc-overlay { opacity: 1; }
.overlay-btn { background: #fff; color: var(--mp-dark); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; font-size: 14px; }
.overlay-btn:hover { background: var(--mp-primary); color: #fff; }
.pc-info { padding: 15px; }
.pc-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mp-dark); }
.pc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mp-gray); }
.pc-author { display: flex; align-items: center; gap: 6px; }
.pc-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pc-price { background: #eafbea; color: var(--mp-primary); padding: 2px 8px; border-radius: 8px; font-weight: 800; font-size: 12px; }

/* پروفایل‌ها (گالری‌ها) */
.gallery-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
.profile-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--mp-shadow); transition: all 0.3s ease; position: relative; display: block; }
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.profile-header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 15px; }
.profile-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #f0f0f0; padding: 2px; }
.profile-details { display: flex; flex-direction: column; text-align: right; }
.profile-name { font-size: 14px; font-weight: 800; color: var(--mp-dark); line-height: 1.2; }
.profile-role { font-size: 11px; color: var(--mp-gray); margin-top: 2px; }
.profile-thumbs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 15px; }
.p-thumb { height: 85px; width: 100%; border-radius: 10px; object-fit: cover; background: #f5f5f5; }
.profile-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #f0f0f0; padding-top: 12px; }
.pf-title { font-size: 13px; font-weight: 700; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pf-price { font-size: 13px; font-weight: 800; color: #3f51b5; }
.pf-buy-btn { font-size: 11px; color: var(--mp-primary); background: #eafbea; padding: 3px 10px; border-radius: 5px; font-weight: 700; }

/* پرفروش‌ها */
.bestseller-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bs-card { position: relative; border-radius: 15px; overflow: hidden; height: 280px; box-shadow: var(--mp-shadow); transition: 0.4s; cursor: pointer; display: block; }
.bs-card:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.bs-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.bs-card:hover .bs-image { transform: scale(1.1); }
.bs-badge { position: absolute; top: 15px; right: 15px; background: #ffb931; color: #000; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; box-shadow: 0 5px 10px rgba(0,0,0,0.2); z-index: 2; }
.bs-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); padding: 30px 15px 15px; color: #fff; transform: translateY(50px); transition: 0.4s; }
.bs-card:hover .bs-overlay { transform: translateY(0); }
.bs-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.bs-sales { font-size: 11px; opacity: 0.8; margin-bottom: 12px; display: block; }
.bs-btn { background: var(--mp-primary); color: #fff; padding: 6px 0; width: 100%; border-radius: 8px; text-align: center; display: block; font-size: 12px; font-weight: 700; }

/* عکاسان */
.photographer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.photographer-card { background: #fff; padding: 25px; border-radius: 20px; text-align: center; border: 1px solid transparent; transition: 0.3s; box-shadow: var(--mp-shadow); display: block; }
.photographer-card:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.ph-avatar { width: 85px; height: 85px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; border: 3px solid #f8f9fa; object-fit: cover; }
.ph-rank { color: var(--mp-accent); margin-bottom: 5px; font-size: 12px; }
.ph-name { font-size: 15px; font-weight: 800; color: var(--mp-dark); margin-bottom: 4px; }
.ph-sales { font-size: 12px; color: var(--mp-gray); margin-bottom: 15px; display: block; }
.ph-link { font-size: 12px; color: var(--mp-primary); border: 1px solid #f0f0f0; padding: 5px 15px; border-radius: 50px; font-weight: 600; display: inline-block; }
.ph-link:hover { background: #eafbea; border-color: #eafbea; }

/* CTA */
.cta-section { margin-top: 60px; }
.cta-box { background: var(--mp-dark); border-radius: 30px; padding: 50px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-box h2 { font-size: 28px; font-weight: 900; margin-bottom: 15px; position: relative; z-index: 2; }
.cta-box p { font-size: 14px; opacity: 0.85; max-width: 600px; margin: 0 auto 30px; position: relative; z-index: 2; line-height: 1.8; }
.cta-bg-icon { position: absolute; bottom: -20px; left: -20px; font-size: 180px; color: rgba(255,255,255,0.03); transform: rotate(15deg); z-index: 1; }

/* بلاگ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: var(--mp-shadow); transition: 0.3s; display: block; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--mp-shadow-hover); }
.blog-img { height: 180px; width: 100%; object-fit: cover; }
.blog-content { padding: 20px; }
.blog-meta { font-size: 11px; color: var(--mp-gray); margin-bottom: 8px; display: flex; gap: 10px; }
.blog-meta i { color: var(--mp-primary); }
.blog-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; line-height: 1.5; color: var(--mp-dark); }
.blog-excerpt { font-size: 13px; color: #777; line-height: 1.8; margin-bottom: 15px; }
.blog-link { color: var(--mp-primary); font-weight: 700; font-size: 12px; display: flex; align-items: center; gap: 5px; }

/* فوتر */
footer { background: #fff; padding-top: 50px; border-top: 1px solid #eee; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-about h3 { color: var(--mp-primary); margin-bottom: 15px; font-weight: 900; font-size: 18px; }
.footer-about p { font-size: 13px; color: #777; line-height: 2; text-align: justify; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; font-weight: 800; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #666; font-size: 13px; }
.footer-col a:hover { color: var(--mp-primary); padding-right: 5px; }
.footer-bottom { background: #f9f9f9; padding: 15px 0; text-align: center; border-top: 1px solid #eee; font-size: 12px; color: #888; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #f0f0f0; color: #555;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: 0.3s;
}
.social-btn:hover { background: var(--mp-primary); color: #fff; transform: translateY(-3px); }



/* =========================================
   استایل‌های اختصاصی صفحه تکی (Single Photo)
   ========================================= */
.sp-container { padding-top: 30px; padding-bottom: 60px; }

/* گرید اصلی */
.sp-grid {
    display: grid;
    grid-template-columns: 1fr 380px; /* تصویر بزرگتر، سایدبار فیکس */
    gap: 30px;
    align-items: start;
}

/* بخش تصویر */
.sp-preview-col {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--mp-shadow);
    border: 1px solid #f0f0f0;
}

.sp-image-wrapper {
    position: relative;
    background-color: #f3f4f6;
    background-image: 
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%), 
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.sp-image-wrapper img {
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* بخش اطلاعات پایین تصویر */
.sp-description {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.sp-desc-title { font-weight: 800; color: var(--mp-dark); font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sp-desc-text { color: var(--mp-gray); line-height: 1.8; font-size: 14px; }

/* مشخصات فنی (EXIF) */
.sp-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}
.spec-item { display: flex; flex-direction: column; gap: 5px; }
.spec-label { font-size: 11px; color: var(--mp-gray); display: flex; align-items: center; gap: 5px; }
.spec-value { font-size: 13px; font-weight: 700; color: var(--mp-dark); direction: ltr; text-align: right; }

/* سایدبار چسبان */
.sp-sidebar {
    position: sticky;
    top: 90px;
}

/* باکس خرید */
.buy-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--mp-shadow);
    border: 1px solid #f0f0f0;
}

.sp-title { font-size: 20px; font-weight: 900; color: var(--mp-dark); margin-bottom: 15px; line-height: 1.4; }

.sp-meta-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    font-size: 12px; color: var(--mp-gray);
}
.sp-id { font-family: monospace; letter-spacing: 1px; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }

/* انتخابگر سایز */
.size-selector { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.size-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.size-option:hover { border-color: #cbd5e1; }
.size-option.active { border-color: var(--mp-primary); background-color: #f0fdf4; }
.size-option input { display: none; }

.so-info { display: flex; flex-direction: column; }
.so-name { font-weight: 700; font-size: 13px; color: var(--mp-dark); }
.so-dim { font-size: 11px; color: var(--mp-gray); margin-top: 2px; }
.so-price { font-weight: 800; color: var(--mp-primary); font-size: 14px; }

/* دکمه‌ها */
.sp-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-buy { width: 100%; padding: 14px; font-size: 15px; justify-content: center; }
.btn-action { 
    width: 45px; height: 45px; border-radius: 12px; border: 1px solid #e2e8f0; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--mp-gray); cursor: pointer; transition: 0.2s; background: #fff;
    font-size: 18px;
}
.btn-action:hover { border-color: var(--mp-dark); color: var(--mp-dark); }
.btn-action.liked { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

/* اطلاعات عکاس */
.sp-author {
    display: flex; align-items: center; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px dashed #eee;
}
.sp-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sp-author-info h4 { font-size: 14px; font-weight: 800; color: var(--mp-dark); margin: 0; }
.sp-author-info span { font-size: 11px; color: var(--mp-gray); }
.btn-follow { margin-right: auto; font-size: 11px; padding: 5px 12px; }

/* باکس اشتراک گذاری */
.share-box { margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.share-input { flex: 1; border: none; background: transparent; font-family: monospace; font-size: 12px; color: var(--mp-gray); direction: ltr; }
.share-copy { color: var(--mp-primary); font-weight: bold; cursor: pointer; font-size: 12px; }

/* استایل مودال گزارش */
.custom-modal { 
    display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:9999; 
    align-items:center; justify-content:center; backdrop-filter:blur(5px); animation: fadeIn 0.3s;
}
.modal-box { 
    background:#fff; width:90%; max-width:400px; border-radius:16px; overflow:hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: translateY(0);
}
.modal-head { 
    padding:15px 20px; border-bottom:1px solid #eee; display:flex; 
    justify-content:space-between; align-items:center; background: #f8f9fa;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--mp-dark); }
.close-m { font-size:24px; cursor:pointer; color: #888; }
.modal-body { padding:20px; }

/* ریسپانسیو */
@media (max-width: 992px) {
    .sp-grid { grid-template-columns: 1fr; }
    .sp-sidebar { position: static; order: -1; margin-bottom: 30px; }
    .sp-image-wrapper { min-height: 300px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* =========================================
   RESPONSIVE MEDIA QUERIES (اصلاح شده)
   ========================================= */
@media (max-width: 992px) {
    /* تنظیمات گرید اصلی */
    .sp-grid { 
        grid-template-columns: 1fr; /* تک ستونه */
        display: flex;
        flex-direction: column;
    }

    /* ترتیب نمایش در موبایل: اول عکس، دوم سایدبار */
    .sp-preview-col { 
        order: 1; 
        width: 100%;
    }
    
    .sp-sidebar { 
        position: static; 
        order: 2; 
        width: 100%;
        margin-bottom: 30px;
    }

    .sp-image-wrapper { 
        min-height: 300px; 
    }

    /* سایر گریدها */
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .bestseller-grid, .footer-grid, .blog-grid, .gallery-profile-grid, .photographer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* تنظیمات موبایل کوچک */
    .hero-title { font-size: 26px; }
    .main-nav, .header-actions { display: none !important; }
    .mobile-actions { display: flex; }
    
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-profile-grid, .footer-grid { grid-template-columns: 1fr; }
    
    .photo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    
    /* استایل کارت در موبایل */
    .photo-card .pc-title { font-size: 12px; }
    .photo-card .pc-image { height: 140px; }
    .photo-card .pc-info { padding: 10px; }
    .photo-card .pc-author span { display: none; }
    .photo-card .pc-author img { width: 20px; height: 20px; }

    .bestseller-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    
    /* اسلایدرها */
    .blog-grid, .photographer-grid {
        display: flex !important; overflow-x: auto; gap: 15px;
        padding-bottom: 20px; scroll-snap-type: x mandatory;
        margin-right: -20px; padding-right: 20px;
    }
    .blog-grid::-webkit-scrollbar, .photographer-grid::-webkit-scrollbar { display: none; }
    .blog-card, .photographer-card { min-width: 240px; scroll-snap-align: start; }

    .section-header { margin-top: 50px; margin-bottom: 30px; }
    .section-header h2 { font-size: 20px; }
}

/* =========================================
   استایل‌های تکمیلی صفحه گالری (Single Gallery)
   ========================================= */

/* کاور گالری */
.sp-gallery-cover-height {
    min-height: 300px;
    max-height: 500px;
}

/* بج تعداد عکس روی کاور */
.sp-count-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    font-weight: 500;
}

/* هدر لیست محتویات */
.sp-content-header {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: right;
}
.sp-content-header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 800;
    color: var(--mp-dark);
}
.sp-content-header p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--mp-gray);
}

/* گرید عکس‌های داخل گالری (کوچکتر از حالت عادی) */
.photo-card-mini .pc-image {
    height: 160px;
}
.photo-card-mini .pc-title {
    font-size: 12px;
}
.photo-card-mini .pc-meta span {
    font-size: 11px;
}

/* باکس قیمت کل در سایدبار */
.sp-total-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}
.sp-total-label {
    display: block;
    font-size: 12px;
    color: var(--mp-gray);
    margin-bottom: 5px;
}
.sp-total-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--mp-dark);
}
.sp-total-unit {
    font-size: 14px;
    font-weight: normal;
    color: #888;
}
.sp-avg-price {
    font-size: 11px;
    color: var(--mp-primary);
    margin-top: 5px;
    font-weight: bold;
}

/* متن اطمینان زیر دکمه خرید */
.sp-trust-text {
    margin-top: 10px;
    font-size: 11px;
    color: var(--mp-gray);
    text-align: center;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
/* =========================================
   استایل‌های جدید (باکس قیمت و اشتراک‌گذاری)
   ========================================= */

/* استایل مدرن باکس قیمت گالری */
.sp-price-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
}

.sp-price-header {
    background: #f8fafc;
    padding: 15px;
    text-align: center;
    border-bottom: 1px dashed #e2e8f0;
}

.sp-total-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.sp-big-price {
    font-size: 26px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -1px;
}

.sp-currency {
    font-size: 14px;
    font-weight: normal;
    color: #94a3b8;
    margin-right: 3px;
}

.sp-price-footer {
    padding: 12px;
    background: #f0fdf4; /* سبز خیلی روشن */
    color: #166534;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border-top: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* دکمه‌های اشتراک‌گذاری رنگی */
.sp-social-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.sp-social-title {
    font-size: 12px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.s-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.s-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.s-telegram { background: #229ED9; }
.s-whatsapp { background: #25D366; }
.s-twitter  { background: #000000; }
.s-linkedin { background: #0077b5; }

/* =========================================
   استایل‌های صفحه سبد خرید (Cart Page)
   ========================================= */
.cart-page-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.cart-header-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--mp-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-header-title i { color: var(--mp-primary); }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* لیست آیتم‌ها */
.cart-items-box {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: var(--mp-shadow);
}

.cart-row {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
    position: relative;
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background-color: #fcfcfc; }

.c-img-box {
    width: 90px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
}
.c-img-box img { width: 100%; height: 100%; object-fit: cover; }
.c-img-box i { font-size: 24px; color: #cbd5e1; }

.c-details {
    flex: 1;
    padding: 0 20px;
}

.c-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--mp-dark);
    margin-bottom: 5px;
    display: block;
    line-height: 1.4;
}
.c-title:hover { color: var(--mp-primary); }

.c-meta {
    font-size: 12px;
    color: var(--mp-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}
.c-badge {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
}
.c-badge.gallery { background: #e0f2fe; color: #0369a1; }

.c-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--mp-dark);
    margin-left: 20px;
    white-space: nowrap;
}

.c-remove {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.c-remove:hover { background: #ef4444; color: #fff; }

/* سایدبار فاکتور */
.cart-summary-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--mp-shadow);
    position: sticky;
    top: 90px;
}

.cs-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--mp-gray);
}
.cs-row.total {
    border-top: 2px dashed #eee;
    padding-top: 15px;
    margin-top: 15px;
    color: var(--mp-dark);
    font-weight: 800;
    font-size: 16px;
    align-items: center;
}
.cs-big-price {
    font-size: 22px;
    color: var(--mp-primary);
}
.cs-discount { color: #ef4444; }

/* فرم کوپن */
.coupon-box {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.coupon-form { display: flex; gap: 8px; }
.coupon-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}
.coupon-btn {
    background: var(--mp-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 12px;
    cursor: pointer;
}
.coupon-active {
    display: flex; align-items: center; justify-content: space-between;
    color: #15803d; font-size: 13px; font-weight: bold;
}
.coupon-remove { color: #ef4444; cursor: pointer; font-size: 16px; }

/* حالت خالی */
.empty-cart-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}
.ec-icon { font-size: 60px; color: #cbd5e1; margin-bottom: 20px; }
.ec-title { font-size: 20px; font-weight: 800; color: var(--mp-dark); margin-bottom: 10px; }

@media (max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary-box { position: static; order: -1; } /* در موبایل اول فاکتور دیده شود */
}



/* =========================================
   استایل‌های اختصاصی صفحه آرشیو (Archive)
   ========================================= */

/* لی‌اوت اصلی */
.archive-container { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 30px; 
    padding-top: 30px; 
    padding-bottom: 60px; 
}

/* سایدبار فیلترها */
.archive-sidebar {
    /* در دسکتاپ چسبان است */
    position: sticky; 
    top: 90px; 
    z-index: 900;
    height: fit-content;
}

.filter-box { 
    background: #fff; 
    border-radius: 20px; 
    padding: 25px; 
    border: 1px solid #e2e8f0; 
    box-shadow: var(--mp-shadow);
}

.filter-group { 
    margin-bottom: 25px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #f1f5f9; 
}
.filter-group:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
    padding-bottom: 0; 
}

.filter-group label { 
    display: block; 
    font-weight: 800; 
    font-size: 14px; 
    margin-bottom: 15px; 
    color: var(--mp-dark); 
}

/* اینپوت جستجو در سایدبار */
.sidebar-search { position: relative; }
.sidebar-search input { 
    width: 100%; 
    padding: 12px 15px 12px 40px; 
    border-radius: 10px; 
    border: 1px solid #ddd; 
    background: #f9f9f9; 
    transition: 0.2s;
}
.sidebar-search input:focus {
    background: #fff;
    border-color: var(--mp-primary);
}
.sidebar-search button { 
    position: absolute; 
    left: 8px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: #999; 
    cursor: pointer; 
}

/* چک‌باکس‌های دسته‌بندی */
.cats-list { 
    max-height: 250px; 
    overflow-y: auto; 
    padding-left: 5px; /* برای اسکرول بار */
}
/* اسکرول بار باریک */
.cats-list::-webkit-scrollbar { width: 4px; }
.cats-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.checkbox-row { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    cursor: pointer; 
    font-size: 13px; 
    color: #555; 
    font-weight: normal !important; /* خنثی کردن بولد لیبل والد */
    transition: 0.2s;
}
.checkbox-row:hover { color: var(--mp-primary); }
.checkbox-row input { display: none; }

.checkmark { 
    width: 18px; 
    height: 18px; 
    border: 2px solid #ddd; 
    border-radius: 5px; 
    margin-left: 10px; 
    position: relative; 
    transition: 0.2s; 
    flex-shrink: 0;
}

.checkbox-row input:checked + .checkmark { 
    background: var(--mp-primary); 
    border-color: var(--mp-primary); 
}
.checkbox-row input:checked + .checkmark::after { 
    content: '\f00c'; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    color: #fff; 
    font-size: 10px; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
}

/* سوییچ رادیویی (نوع محتوا و قیمت) */
.toggle-type {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}
.type-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: normal !important;
    margin: 0 !important;
}
.type-option input { display: none; }
.type-option:has(input:checked) {
    background: #fff;
    color: var(--mp-primary);
    font-weight: bold !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-row { 
    display: flex; align-items: center; cursor: pointer; font-size: 13px; color: #555; font-weight: normal !important; margin: 0 !important; 
}
.radio-row input { display: none; }
.radio-mark {
    width: 16px; height: 16px; border: 2px solid #ddd; border-radius: 50%; margin-left: 10px; position: relative;
}
.radio-row input:checked + .radio-mark { border-color: var(--mp-primary); }
.radio-row input:checked + .radio-mark::after {
    content: ''; width: 8px; height: 8px; background: var(--mp-primary); border-radius: 50%; 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* پالت رنگ */
.color-palette { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot { 
    width: 30px; height: 30px; border-radius: 50%; 
    cursor: pointer; position: relative; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
    border: 2px solid transparent; 
    transition: 0.2s;
}
.color-dot input { display: none; }
.color-dot.all { background: linear-gradient(135deg, #ef4444, #3b82f6, #22c55e, #eab308); }
.color-dot:hover { transform: scale(1.1); }
/* وقتی انتخاب شد */
.color-dot:has(input:checked) { 
    transform: scale(1.1); 
    border-color: #333; 
}

/* شبکه جهت تصویر (Orientation) */
.orientation-grid { 
    display: flex; 
    background: #f1f5f9; 
    padding: 5px; 
    border-radius: 12px; 
    gap: 5px;
}
.orient-btn { 
    flex: 1; 
    text-align: center; 
    padding: 8px 0; 
    cursor: pointer; 
    border-radius: 8px; 
    color: #94a3b8; 
    font-size: 18px; 
    transition: 0.2s; 
    margin: 0 !important;
}
.orient-btn:hover { color: var(--mp-primary); background: rgba(255,255,255,0.5); }
.orient-btn:has(input:checked) { 
    background: #fff; 
    color: var(--mp-primary); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}
.orient-btn input { display: none; }

/* هدر صفحه آرشیو */
.archive-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
}
.archive-header h1 { 
    font-size: 22px; 
    font-weight: 900; 
    color: var(--mp-dark); 
    margin: 0; 
}
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666; }
.sort-box select { 
    padding: 8px 15px; 
    border-radius: 10px; 
    border: 1px solid #ddd; 
    background: #fff; 
    font-size: 13px; 
    color: var(--mp-dark); 
    cursor: pointer; 
    outline: none;
}

/* لودینگ و دکمه‌ها */
.loading-area { text-align: center; margin-top: 40px; padding-bottom: 20px; }

/* المان‌های موبایل (پیش‌فرض مخفی) */
.mobile-filter-bar { display: none; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-header-mobile, .mobile-filter-apply { display: none; }

/* ریسپانسیو (موبایل و تبلت) */
@media(max-width: 992px) {
    .archive-container { 
        display: block; /* حذف گرید */
    }
    
    /* سایدبار تبدیل به منوی کشویی می‌شود */
    .archive-sidebar { 
        position: fixed; 
        top: 0; 
        right: -320px; /* مخفی در راست */
        width: 300px; 
        height: 100vh; 
        background: #fff; 
        z-index: 2005; 
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        padding: 0; 
        box-shadow: -5px 0 30px rgba(0,0,0,0.15); 
        overflow-y: auto;
    }
    .archive-sidebar.active { right: 0; }
    
    /* تغییرات استایل باکس فیلتر در موبایل */
    .filter-box { 
        border: none; 
        border-radius: 0; 
        padding: 20px; 
        box-shadow: none; 
        position: static; 
        min-height: 100%;
    }
    
    .mobile-filter-bar { display: flex; }
    
    .filter-header-mobile { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        margin-bottom: 25px; 
        padding-bottom: 15px; 
        border-bottom: 1px solid #eee; 
    }
    .filter-header-mobile h3 { margin: 0; font-size: 18px; font-weight: 800; }
    
    .close-filter { 
        font-size: 24px; 
        cursor: pointer; 
        width: 35px; height: 35px; 
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        background: #f1f5f9;
    }

    .mobile-filter-apply { 
        display: block; 
        margin-top: 30px; 
        border-top: 1px solid #eee; 
        padding-top: 20px; 
    }
}



/* =========================================
   استایل‌های صفحه رسید پرداخت (Receipt)
   ========================================= */

.receipt-page-container {
    padding-top: 50px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
}

.receipt-card {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

/* نوار رنگی بالای کارت */
.receipt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--mp-primary), #3b82f6);
}

/* هدر رسید */
.rc-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.rc-icon-box {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.2);
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rc-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--mp-dark);
    margin-bottom: 10px;
}

.rc-subtitle {
    color: var(--mp-gray);
    font-size: 14px;
}

.rc-order-id {
    display: inline-block;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 5px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    color: #334155;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* گرید اطلاعات کلی */
.rc-info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.rc-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rc-info-item:not(:last-child) {
    border-left: 1px solid #e2e8f0;
}

.rc-label { font-size: 12px; color: #94a3b8; font-weight: bold; }
.rc-value { font-size: 15px; font-weight: 800; color: var(--mp-dark); }
.rc-value.price { color: var(--mp-primary); }

/* لیست دانلودها */
.rc-downloads-section {
    padding: 30px;
}

.rc-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rc-section-title::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    transition: 0.3s;
}
.dl-card:hover {
    border-color: var(--mp-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.dl-file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dl-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
}

.dl-meta h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--mp-dark);
}

.dl-badges {
    display: flex;
    gap: 8px;
    font-size: 11px;
}

.badge-type {
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: bold;
}
.badge-type.photo { background: #eff6ff; color: #3b82f6; }
.badge-type.gallery { background: #fdf2f8; color: #db2777; }
.badge-size { background: #f1f5f9; color: #64748b; padding: 3px 8px; border-radius: 6px; }

/* فوتر کارت */
.rc-footer {
    background: #f8fafc;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
}

/* انیمیشن پاپ */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .rc-info-bar { grid-template-columns: 1fr; gap: 20px; text-align: right; }
    .rc-info-item { flex-direction: row; justify-content: space-between; border-left: none !important; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px; }
    .rc-info-item:last-child { border-bottom: none; padding-bottom: 0; }
    
    .dl-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .dl-file-info { width: 100%; }
    .dl-card .btn { width: 100%; justify-content: center; }
    
    .rc-footer { flex-direction: column; }
    .rc-footer .btn, .rc-footer .btn-outline { width: 100%; justify-content: center; }
}
/* =========================================
   استایل‌های صفحه مقاله و سایدبار وبلاگ
   ========================================= */

.blog-page-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* محتوا + سایدبار */
    gap: 40px;
    align-items: start;
}

/* محتوای اصلی مقاله */
.blog-main-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--mp-shadow);
}

.blog-main-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.blog-title-lg {
    font-size: 26px;
    font-weight: 900;
    color: var(--mp-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-meta-row {
    display: flex;
    gap: 20px;
    color: var(--mp-gray);
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.blog-meta-row i { color: var(--mp-primary); margin-left: 5px; }

.entry-content {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}
.entry-content p { margin-bottom: 20px; }
.entry-content h2, .entry-content h3 { color: var(--mp-dark); margin-top: 30px; margin-bottom: 15px; font-weight: 800; }
.entry-content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.entry-content blockquote { border-right: 4px solid var(--mp-primary); background: #f8fafc; padding: 15px 20px; margin: 20px 0; font-style: italic; color: #555; border-radius: 8px 0 0 8px; }

/* سایدبار وبلاگ */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

.widget-box {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    box-shadow: var(--mp-shadow);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--mp-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -1px; right: 0; width: 40px; height: 2px; background: var(--mp-primary);
}

/* کارت‌های کوچک (Mini Card) در سایدبار */
.mini-card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}
.mini-card:hover .mc-title { color: var(--mp-primary); }

.mc-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.mc-details {
    flex: 1;
    overflow: hidden;
}

.mc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mp-dark);
    margin-bottom: 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s;
}

.mc-meta {
    font-size: 11px;
    color: var(--mp-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mc-price {
    color: var(--mp-primary);
    font-weight: 800;
    font-size: 12px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 30px; }
}


/* =========================================
   استایل‌های صفحه پروفایل (Profile Page)
   ========================================= */

.profile-page-container {
    padding-bottom: 80px;
}

/* هدر پروفایل */
.pp-header-wrapper {
    position: relative;
    margin-bottom: 40px;
}

/* کاور پس‌زمینه (بلور شده) */
.pp-cover-bg {
    height: 200px;
    background: linear-gradient(135deg, var(--mp-dark), #1f2937);
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}
.pp-cover-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,...'); /* پترن اختیاری */
    opacity: 0.1;
}

/* کارت اطلاعات عکاس */
.pp-info-card {
    background: #fff;
    max-width: 900px;
    margin: -100px auto 0;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    padding: 30px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -80px; /* کشیدن به سمت بالا */
    background: #f1f5f9;
}

.pp-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--mp-dark);
    margin-top: 15px;
    margin-bottom: 5px;
}

.pp-username {
    font-size: 13px;
    color: var(--mp-gray);
    font-family: monospace;
    letter-spacing: 1px;
    direction: ltr;
}

.pp-bio {
    margin-top: 15px;
    font-size: 14px;
    color: #475569;
    max-width: 600px;
    line-height: 1.8;
}

.pp-meta-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.pp-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pp-badge i { color: var(--mp-primary); }

/* آمار (تعداد عکس و...) */
.pp-stats-row {
    display: flex;
    gap: 40px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
    justify-content: center;
}

.pp-stat-item {
    text-align: center;
}
.pp-stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--mp-dark);
}
.pp-stat-label {
    font-size: 12px;
    color: var(--mp-gray);
}

/* تب‌ها */
.pp-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.pp-tab {
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 700;
    color: var(--mp-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pp-tab:hover { color: var(--mp-dark); }
.pp-tab.active {
    color: var(--mp-primary);
    border-bottom-color: var(--mp-primary);
}

/* حالت خالی */
.pp-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    color: #94a3b8;
}
.pp-empty-icon { font-size: 50px; margin-bottom: 15px; opacity: 0.5; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .pp-cover-bg { height: 150px; }
    .pp-info-card { padding: 20px; margin-top: -60px; width: 90%; }
    .pp-avatar { width: 100px; height: 100px; margin-top: -70px; }
    .pp-stats-row { gap: 20px; }
    .pp-tab { padding: 15px 15px; font-size: 13px; }
}
/* =========================================
   استایل دکمه‌های هاور آرشیو (Archive Overlay Buttons)
   ========================================= */

.pc-overlay {
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.4); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; /* فاصله بین دکمه‌ها */
    opacity: 0; 
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.photo-card:hover .pc-overlay { 
    opacity: 1; 
}

.overlay-btn { 
    background: #fff; 
    color: var(--mp-dark); 
    width: 40px; 
    height: 40px; 
    border-radius: 12px; /* کمی گوشه‌دار */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.overlay-btn:hover { 
    background: var(--mp-primary); 
    color: #fff; 
    transform: translateY(-3px);
}

/* رنگ مخصوص لایک فعال */
.overlay-btn.liked {
    background: #ef4444; /* قرمز */
    color: #fff;
}
.overlay-btn.liked:hover {
    background: #dc2626;
}

/* رنگ مخصوص سبد خرید */
.overlay-btn.cart-add:hover {
    background: var(--mp-dark);
}
/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .bestseller-grid, .footer-grid, .blog-grid, .gallery-profile-grid, .photographer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 26px; }
    .main-nav, .header-actions { display: none !important; }
    .mobile-actions { display: flex; }
    
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-profile-grid, .footer-grid { grid-template-columns: 1fr; }
    
    .photo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .photo-card .pc-title { font-size: 12px; }
    .photo-card .pc-image { height: 140px; }
    .photo-card .pc-info { padding: 10px; }
    .photo-card .pc-author span { display: none; }
    .photo-card .pc-author img { width: 20px; height: 20px; }

    .bestseller-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .bs-card { height: 220px; }
    .bs-overlay { padding: 10px; }
    .bs-title { font-size: 12px; }
    .bs-sales { font-size: 10px; margin-bottom: 5px; }
    .bs-btn { font-size: 11px; padding: 4px 0; }
    .bs-badge { width: 25px; height: 25px; font-size: 12px; top: 10px; right: 10px; }

    .blog-grid {
        display: flex !important; overflow-x: auto; gap: 15px;
        padding-bottom: 20px; scroll-snap-type: x mandatory;
        margin-right: -20px; padding-right: 20px;
    }
    .blog-grid::-webkit-scrollbar { display: none; }
    .blog-card { min-width: 260px; scroll-snap-align: start; border: 1px solid #f0f0f0; }

    .photographer-grid {
        display: flex !important; overflow-x: auto; gap: 15px;
        padding-bottom: 20px; scroll-snap-type: x mandatory;
        margin-right: -20px; padding-right: 20px;
    }
    .photographer-grid::-webkit-scrollbar { display: none; }
    .photographer-card { min-width: 220px; scroll-snap-align: start; }

    .section-header { margin-top: 50px; margin-bottom: 30px; }
    .section-header h2 { font-size: 20px; }
}