@font-face {
    font-family: 'bykan';
    src: url('fonts/BYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'irsw';
    src: url('fonts/irsw.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iran';
    src: url('fonts/Iranian-Sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --sky-blue: #0ea5e9;
    --sky-blue-dark: #0284c7;
    --dark-orange: #ea580c;
    --dark-orange-dark: #c2410c;
    --dark-green: #2CC01B;
    --dark-green-dark: #129603;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --primary: #0ea5e9;
    --primary-dark: #35BAFD;
    --secondary: #ea580c;
    --dark: #0f172a;
    --gray: #475569;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "iran", "bykan", "Tahoma", sans-serif;
}

a, a:hover, a:focus {
    text-decoration: none;
}

body {
    font-family: "iran", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, #D7DDE4 100%);
    color: var(--gray-800);
    line-height: 1.6;
    padding: 20px 0;
    padding-top: 0;
    min-height: 100vh;
}

/* ============================================
   هدر و نوار بالایی
============================================ */
.top-bar {
    background: linear-gradient(135deg, #38B6FF, #0073BA);
    color: white;
    padding: 8px 0;
    font-size: 9px;
    position: relative;
    z-index: 999;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.sticky-header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-info i {
    color: #fff;
}

.top-links a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
}

.top-links a:hover {
    color: var(--primary);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    width: 40px;
}

.logo a {
    font-family: "irsw";
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 8px;
    color: var(--gray);
    display: block;
}

.search-form {
    flex: 1;
    max-width: 400px;
}

.search-box {
    display: flex;
    background: var(--light);
    border-radius: 48px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    font-size: 13px;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    color: white;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-actions a {
    color: var(--dark);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

.user-actions a:hover {
    color: var(--primary);
}

.hamber {
    display: none;
}

.logg {
    display: block;
}

/* ============================================
   منوی دسکتاپ
============================================ */
.desktop-nav {
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
    border-radius: 40px;
}

.main-menu > li > a:hover {
    background: var(--primary);
    color: white;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(-90deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
    border: 1px solid var(--border);
}

.has-dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--gray);
    font-size: 12px;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background: var(--light);
    color: var(--primary);
}

.sub-menu .sub-menu {
    top: 0;
    right: 100%;
    margin: 0;
}

/* ============================================
   فوتر موبایل (Bottom Navigation)
============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid var(--border);
    padding: 8px 0 12px;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray);
    font-size: 7px;
    transition: all 0.2s;
    padding: 6px 12px;
}

.bottom-nav-item i {
    font-size: 22px;
}

.bottom-nav-item.active {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

.bottom-nav-item:hover {
    color: var(--primary);
    background: var(--light);
}

/* ============================================
   منوی اسلایدر موبایل
============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px 0 80px 0;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 1003;
}

.mobile-menu-close:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-search {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 50px;
    margin-bottom: 10px;
}

.mobile-menu-search-box {
    display: flex;
    background: #f1f5f9;
    border-radius: 48px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.mobile-menu-search-box input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
}

.mobile-menu-search-box input:focus {
    outline: none;
}

.mobile-menu-search-box button {
    background: var(--primary);
    border: none;
    padding: 0 9px;
    cursor: pointer;
    color: white;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
}

.mobile-menu-item {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.mobile-menu-link a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    flex: 1;
}

.mobile-menu-link a i {
    font-size: 16px;
    width: 24px;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-submenu-toggle:hover {
    background: #f1f5f9;
}

.mobile-submenu {
    display: none;
    background: #f8fafc;
    padding-right: 20px;
}

.mobile-menu-item.open > .mobile-submenu {
    display: block;
}

.mobile-submenu .mobile-menu-link {
    padding: 10px 20px 10px 35px;
}

.mobile-submenu .mobile-menu-link a {
    font-size: 13px;
}

/* ============================================
   اسلایدر اصلی
============================================ */
.hero-slider {
    background: linear-gradient(135deg, #EA580C, #667eea, #0284C7);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite; /* انیمیشن نرم برای پویایی بنر */
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.3; }
}

.hero-slider h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.hero-slider p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: white;
    color: #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
    background: #ea580c;
}

/* ============================================
   آمار باکس‌ها
============================================ */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 30px 20px;
    background: white;
    margin: -25px 20px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.stat-box {
    text-align: center;
    padding: 10px 20px;
    min-width: 100px;
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

.stat-circle i {
    font-size: 26px;
    color: white;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* ============================================
   تخفیف ویژه
============================================ */
.discount-banner {
    /* گرادینت مدرن و جذاب با کنتراست بالا */
    background: linear-gradient(135deg, #4A3D4A, #B93D13, #F57A38);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite; /* انیمیشن نرم برای پویایی بنر */
    margin: 20px auto;
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* انیمیشن بک‌گراند برای جذابیت بیشتر */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.discount-banner h2 {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    /* سایه متن حرفه‌ای برای افکت سه بعدی ملایم */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    /* استایل شیشه‌ای (Glassmorphism) پیشرفته */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 8px 28px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.discount-banner p {
    font-size: 18px;
    color: #f3f4f6; /* رنگ سفید استخوانی مایل به طوسی برای خسته نشدن چشم */
    margin-bottom: 25px;
    line-height: 1.8;
    font-weight: 400;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.discount-btn {
    background: linear-gradient(135deg, #ffedd5, #ffffff);
    color: #ea580c;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* انیمیشن نرم رفت و برگشت */
    border: 2px solid transparent;
}

/* افکت فوق‌العاده جذاب هنگام قرار گرفتن موس روی دکمه */
.discount-btn:hover {
    transform: translateY(-4px) scale(1.03); /* کمی بالا آمدن و بزرگ شدن دکمه */
    background: #ea580c;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.4);
}

/* افکت هنگام کلیک کردن */
.discount-btn:active {
    transform: translateY(-1px) scale(1);
}

/* ============================================
   فیلترها
============================================ */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 20px 25px;
}

.filter-btn {
    padding: 6px 20px;
    border-radius: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* ============================================
   محصولات
============================================ */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 20px;
    padding-right: 12px;
    border-right: 3px solid #0ea5e9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f1f5f9;
}

.product-info {
    padding: 12px;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.5;
    padding: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E4EBF1;
    padding-top: 10px;
}

.price {
    font-weight: 700;
    color: #ea580c;
    font-size: 13px;
    padding: 5px 0;
}

.btn-buy1 {
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    transition: all 0.25s ease;
}

.btn-buy1:hover {
    color: white;
    transform: translateX(-2px);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, var(--dark-green-dark), #259913);
}

/* ============================================
   صفحه‌بندی
============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 25px 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.page-link.active,
.page-link:hover {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.loading {
    text-align: center;
    padding: 30px;
    display: none;
}

.loading i {
    font-size: 30px;
    color: #0ea5e9;
}

/* ============================================
   دانلود ویژه
============================================ */
.featured-download {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    margin: 30px 20px;
    padding: 40px 25px;
    border-radius: 25px;
    text-align: center;
    color: white;
}

.featured-download h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.featured-download p {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.featured-download .featured-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f59e0b;
    margin: 12px 0;
}

.featured-btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* ============================================
   صفحه دسته‌بندی (Category)
============================================ */
.category-hero {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    padding: 50px 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.category-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-hero p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px 20px;
    background: white;
    margin: 0 20px 20px;
    border-radius: 50px;
    font-size: 12px;
}

.breadcrumb a {
    color: #0ea5e9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #cbd5e1;
    font-size: 10px;
}

.breadcrumb .current {
    color: #475569;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 20px 30px;
}

.subcat-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subcat-btn:hover,
.subcat-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* ============================================
   صفحه جستجو
============================================ */
.search-header {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.search-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.search-header .query {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-header .result-count {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

.search-box-container {
    background: white;
    margin: -25px 20px 25px;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.search-box-container::-webkit-scrollbar {
    height: 4px;
}

.search-box-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.search-box-container::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 10px;
}

.search-box-container::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

.results-container {
    padding: 0 20px;
    min-height: 400px;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    border: 1px solid #eef2f6;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #0ea5e9;
}

.result-title mark,
.result-desc mark {
    background: #fef3c7;
    color: #d97706;
    padding: 0 4px;
    border-radius: 4px;
}

.result-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 14px;
}

.result-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #94a3b8;
    align-items: center;
}

.result-meta i {
    margin-left: 5px;
    font-size: 13px;
}

.badge-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.empty-results {
    width: 100%;
    text-align: center;
}

.empty-results i {
    font-size: 72px;
    margin-bottom: 40px;
    opacity: 0.5;
}

/* ============================================
   صفحه محصول
============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}

.product-left {
    flex: 1;
    min-width: 280px;
}

.product-right {
    flex: 1.5;
    min-width: 300px;
    padding: 0 15px;
}

.product-gallery {
    text-align: center;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.main-img {
    width: 100%;
    max-width: 100%;
    height: 320px;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.main-img:hover {
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.15);
}

.gallery-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-hint:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.gallery-hint:hover i {
    color: #fff;
}

.gallery-hint i {
    color: var(--sky-blue);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-buy {
    background: linear-gradient(135deg, var(--dark-green), var(--dark-green-dark));
    color: white;
    padding: 15px 10px;
    border-radius: 48px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 156, 12, 0.25);
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--dark-green-dark), #259913);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 88, 12, 0.35);
    color: #fff;
}

.btn-like {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 48px;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-like i.icofont-heart-alt {
    font-size: 26px;
    transition: all 0.2s;
    color: #94a3b8;
}

.btn-like.liked i.icofont-heart-alt {
    color: #ea580c;
}

.btn-like:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.btn-like .like-count {
    font-weight: 500;
    color: #475569;
}

.product-right h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--sky-blue-dark);
    letter-spacing: -0.02em;
    padding: 8px;
    line-height: 2;
}

.description-box {
    padding: 1.25rem;
    border-radius: 8px;
    max-height: 100%;
    overflow-y: auto;
    line-height: 1.9;
    font-size: 13px;
    color: var(--gray-700);
    text-align: justify;
}

.description-box::-webkit-scrollbar {
    width: 5px;
}

.description-box::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.description-box::-webkit-scrollbar-thumb {
    background: var(--sky-blue);
    border-radius: 10px;
}

.related-section {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, var(--gray-50));
    border-top: 1px solid var(--gray-200);
}

.related-section h3 {
    font-size: 13px;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.5;
}

.related-section h3 i {
    color: var(--sky-blue);
    font-size: 23px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: row;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
    border-color: var(--sky-blue);
}

.related-img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--gray-100);
}

.related-info {
    padding: 5px;
}

.related-title {
    font-size: 11px;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-orange);
    margin-top: 10px;
}

.comments-section {
    padding: 10px 5px;
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
}

.comments-section h3 {
    font-size: 13px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-900);
}

.comments-section h3 i {
    color: var(--sky-blue);
    font-size: 23px;
}

.comment-card {
    background: var(--gray-50);
    padding: 10px;
    border-radius: 16px;
    margin: 1rem 0;
    border: 1px solid var(--gray-200);
    transition: 0.2s;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--gray-600);
}

.comment-header strong {
    color: var(--sky-blue-dark);
    font-weight: 700;
    font-size: 10px;
}

.comment-header strong i {
    color: #777;
}

.comment-card p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
}

.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    font-size: 13px;
    resize: vertical;
    transition: 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.comment-form button {
    background: var(--gray-900);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.comment-form button:hover {
    background: var(--sky-blue);
}

.login-prompt {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: 40px;
    font-size: 13px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.login-prompt a {
    color: var(--sky-blue);
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    color: var(--dark-orange);
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--dark-orange);
    transform: scale(1.1);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.nav-btn:hover {
    background: var(--dark-orange);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    right: 20px;
}

.next-btn {
    left: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.8rem;
}

.pc {
    display: block;
    padding: 20px 0 0 0;
}

.pc span {
    font-size: 12px;
    color: #777;
}

.mobile {
    display: none;
}

.category-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #0ea5e9;
    text-decoration: none;
    margin-left: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.category-badge:hover {
    background: #0ea5e9;
    color: white;
}

.footer {
    background: white;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #eef2f6;
}

.enamad {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.enamad img {
    height: 110px;
    opacity: 0.7;
}

.enamad .img1 {
    height: 60px;
    opacity: 0.7;
}
/* رنگ فایل ها */
        .badge-post { background: #FFF4CA; color: #AA971D; }
        .badge-pdf { background: #fee2e2; color: #dc2626; }
            .badge-pptx { background: #fef3c7; color: #d97706; }
            .badge-docx { background: #e0f2fe; color: #0284c7; }
            .badge-xlsx { background: #dcfce7; color: #16a34a; }
            .badge-video { background: #fce7f3; color: #db2777; }
            .badge-audio { background: #f3e8ff; color: #9333ea; }

.pc .add{width: 100%; margin: 3px 0; display: inline-block;}
.pc .add img{width: 100%;border-radius: 20px;}
.pc .card, .mobile .card{width: 100%;padding: 10px 10px; text-align:  center;display: inline-block;}

/* ============================================
   واکنش‌گرایی (حفظ شده و مرتب شده)
============================================ */
@media (max-width: 992px) {
.mobile .add{width: 100%;margin-bottom: 15px; display: inline-block;}
.mobile .add img{width: 100%;border-radius: 20px;}
    .desktop-nav {
        display: none;
    }
    .mobile-bottom-nav {
        display: block;
    }
    body {
        padding: 20px 0 70px 0;
    }
    .mobile-nav-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .search-form, .top-info {
        display: none;
    }
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .sticky-header {
        position: sticky;
    }
    .hamber {
        display: block;
    }
    .logg {
        display: none;
    }
    .product-main {
        flex-direction: column;
        padding: 5px 0;
        gap: 1.25rem;
    }
    .main-img {
        border-radius: 0;
    }
    .product-left {
        min-width: auto;
    }
    .price {
        font-size: 1.4rem;
    }
    .product-right h1 {
        font-size: 16px;
    }
    .description-box {
        max-height: 100%;
        font-size: 13px;
        background: none;
        border: none;
        text-align: justify;
    }
    .action-buttons {
        flex-direction: row;
    }
    .btn-buy, .btn-like {
        flex: 1;
    }
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .related-section, .comments-section {
        padding: 1.25rem;
    }
    .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.3rem;
    }
    .close-modal {
        top: 10px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .hero-slider h1 {
        font-size: 1.4rem;
    }
    .hero-slider {
        padding: 40px 15px;
    }
    .stats-container {
        gap: 10px;
        margin-top: -15px;
    }
    .stat-box {
        padding: 8px 12px;
        min-width: 80px;
    }
    .stat-circle {
        width: 45px;
        height: 45px;
    }
    .stat-circle i {
        font-size: 20px;
    }
    .stat-number {
        font-size: 16px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    .discount-banner h2 {
        font-size: 18px;
    }
    .featured-download h2 {
        font-size: 1.2rem;
    }
    .featured-download .featured-price {
        font-size: 1.3rem;
    }
    .category-hero h1 {
        font-size: 1.4rem;
    }
    .stats-container {
        gap: 10px;
    }
    .stat-box {
        padding: 5px 12px;
        min-width: 70px;
    }
    .stat-circle {
        width: 38px;
        height: 38px;
    }
    .stat-circle i {
        font-size: 18px;
    }
    .stat-number {
        font-size: 14px;
    }
    .subcat-btn {
        padding: 5px 14px;
        font-size: 11px;
    }
    .search-header h1 {
        font-size: 1.4rem;
    }
    .search-box-container {
        margin: -20px 15px 20px;
        padding: 15px;
        white-space: nowrap;
    }
    .filter-btn {
        padding: 5px 16px;
        font-size: 11px;
    }
    .result-card {
        padding: 16px;
    }
    .result-title {
        font-size: 15px;
    }
    .result-desc {
        font-size: 12px;
    }
    .result-meta {
        gap: 12px;
    }
    .mobile .add{width: 100%;margin-bottom: 15px; display: inline-block;}
.mobile .add img{width: 100%;border-radius: 20px;}
}

@media (max-width: 480px) {
    body {
        padding: 0px;
    }
    .product-main {
        padding: 0;
    }
    .action-buttons {
        flex-direction: row;
    }
    .main-img {
        border-radius: 0;
    }
    .btn-buy, .btn-like {
        flex: 1;
        margin: 0 5px 5px 5px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .price {
        font-size: 15px;
        margin: 0 10px 10px 10px;
    }
    .pc {
        display: none;
    }
    .mobile {
        margin: 0 20px 10px 20px;
        display: block;
        padding: 0;
        border: 1px solid #ddd;
        background: rgba(0, 200, 255, 0.05);
        border-radius: 16px;
    }
    .mobile p {
        display: block;
        padding: 10px 15px;
        background: var(--sky-blue-dark);
        font-size: 18px;
        color: #fff;
        margin-bottom: 10px;
    }
    .mobile span {
        font-size: 13px;
        color: #777;
    }
        .mobile .add{width: 100%; margin-bottom: 15px;display: inline-block;}
.mobile .add img{width: 100%;border-radius: 20px;}
    .hamber {
        display: block;
    }
    .logg {
        display: none;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        padding: 4px 14px;
        font-size: 11px;
    }
    .section-title {
        font-size: 1rem;
    }
    .breadcrumb {
        font-size: 10px;
        padding: 10px 15px;
    }
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   انیمیشن‌ها
============================================ */
@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadein 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

html {
    scroll-behavior: smooth;
}