/* ========================================
   Academic Product Catalog Design
   روانشناسی رنگ: آرامش، اعتماد، تمرکز
   ======================================== */

/* Base Colors - Academic Psychology */
:root {
  /* Primary - آبی آکادمیک (اعتماد، علم، آرامش) */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-soft: #dbeafe;
  --primary-ultra-soft: #eff6ff;
  
  /* Success - سبز رشد (یادگیری، موفقیت) */
  --success: #10b981;
  --success-dark: #059669;
  --success-soft: #d1fae5;
  
  /* Neutral - خنثی و آرام‌بخش */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Backgrounds - سفید و فضای خالی */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  
  /* Borders - ملایم */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Shadows - نرم و حرفه‌ای */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body Styles */
.products-body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Vazir', Tahoma, sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

.products-header .navbar-brand {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.products-footer {
  border-top: 1px solid var(--border-light);
}

/* Typography - خوانا و آکادمیک */
html, body {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ========================================
   HEADER - حرفه‌ای و تمیز
   ======================================== */

.premium-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.premium-header .top-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.premium-header .link-muted {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.premium-header .link-muted:hover {
  color: var(--primary);
}

.premium-header .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.premium-header .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.premium-header .nav-link:hover {
  color: var(--primary);
}

.premium-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 1rem;
  left: 1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.premium-header .nav-link:hover::after {
  transform: scaleX(1);
}

.premium-header .header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

/* ========================================
   HERO SECTION - ساده و الهام‌بخش
   ======================================== */

.catalog-hero {
  background: linear-gradient(135deg, var(--primary-ultra-soft) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.text-hero {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* ========================================
   SEARCH SECTION - تمیز و ساده
   ======================================== */

.search-filter-section {
  margin-bottom: var(--spacing-xl);
}

.search-form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.search-container {
  display: flex;
  gap: var(--spacing-md);
  align-items: stretch;
  max-width: 100%;
}

.search-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-light);
  transition: all var(--transition-base);
  overflow: hidden;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-icon {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  z-index: 2;
  transition: color var(--transition-fast);
  pointer-events: none;
}

.search-input-group:focus-within .search-icon {
  color: var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 0.9375rem;
  outline: none;
  font-weight: 500;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.search-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  white-space: nowrap;
}

.search-button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}

/* ========================================
   PRODUCT CARDS - Premium و حرفه‌ای
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: var(--spacing-2xl);
  padding: 0.5rem;
}

.product-card-material {
  background: var(--bg-card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-material:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Product Image */
.product-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card-material:hover .product-image {
  transform: scale(1.03);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card-material:hover .product-overlay {
  opacity: 1;
}

.view-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.view-button:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  border-color: var(--primary);
}

.view-button svg {
  transition: transform var(--transition-base);
}

.view-button:hover svg {
  transform: scale(1.1);
}

/* Product Badges - بالای تصویر */
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all var(--transition-base);
}

.product-card-material:hover .product-badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product-badge.free {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.product-badge.paid {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.product-badge svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Product Content */
.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.product-title-container {
  flex: 1;
  min-height: 3rem;
}

.product-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.product-card-material:hover .product-title {
  color: var(--primary);
}

/* ========================================
   PRODUCT PRICING - حرفه‌ای و زیبا
   ======================================== */

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

/* قیمت رایگان */
.price-container-free {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #6ee7b7;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  position: relative;
  overflow: hidden;
}

.price-container-free::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
}

.price-badge.free {
  font-weight: 700;
  font-size: 1rem;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

/* قیمت عادی (بدون تخفیف) */
.price-container-normal {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  position: relative;
  overflow: hidden;
}

.price-container-normal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
}

.price-badge.paid {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.price-badge.paid .currency {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
  margin-right: 0.25rem;
}

/* قیمت با تخفیف */
.price-container-discount {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  position: relative;
  overflow: hidden;
}

.price-container-discount::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
}

.price-original {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.price-original-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #78716c;
  text-decoration: line-through;
  opacity: 0.7;
}

.discount-percentage {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.price-discounted {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.price-badge.discounted {
  font-weight: 700;
  font-size: 1.25rem;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.price-badge.discounted .currency {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.8;
  margin-right: 0.25rem;
}

/* Discount Badge Effect */
.discount-percentage svg {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

/* ========================================
   EMPTY STATE - دلسوزانه و راهنما
   ======================================== */

.empty-state {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.empty-icon {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.empty-state .h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ========================================
   PAGINATION - تمیز و قابل استفاده
   ======================================== */

.pagination-container {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.pagination-material {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(.disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 var(--spacing-sm);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pagination-number:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-soft);
}

.pagination-number.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ========================================
   PRODUCT DETAILS PAGE - مدرن و حرفه‌ای
   روانشناسی رنگ برای محصولات آموزشی
   ======================================== */

/* Container اصلی */
.product-details-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-2xl);
}

/* Breadcrumb - مسیر صفحه */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: var(--spacing-lg);
  font-size: 0.9375rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-light);
  font-weight: 600;
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========================================
   بخش تصویر محصول - بهبود یافته
   ======================================== */

.product-image-section {
  margin-bottom: var(--spacing-xl);
}

.main-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  margin-bottom: var(--spacing-md);
}

.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.main-image-container:hover .main-product-image {
  transform: scale(1.02);
}

/* Badges روی تصویر - مشابه Index با آیکون */
.discount-badge,
.featured-badge {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: white;
}

.discount-badge {
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.featured-badge {
  left: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* گالری تصاویر - با عنوان */
.image-gallery {
  margin-top: var(--spacing-lg);
}

.gallery-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.gallery-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) var(--bg-subtle);
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.gallery-thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.gallery-thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ========================================
   بخش اطلاعات محصول - بهبود یافته
   ======================================== */

.product-info-section {
  padding: 0;
}

.product-header {
  margin-bottom: var(--spacing-lg);
}

.product-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--spacing-sm);
}

.category-badge {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-ultra-soft) 100%);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--primary-soft);
}

.product-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Meta Bar - امتیاز و کد محصول */
.product-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: var(--spacing-lg);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  font-size: 1.125rem;
  color: var(--border-medium);
  transition: color var(--transition-fast);
}

.star.filled {
  color: #fbbf24;
}

.rating-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.rating-text strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.product-code {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-code svg {
  color: var(--text-light);
}

/* ========================================
   کارت قیمت و خرید - Sticky و حرفه‌ای
   ======================================== */

.price-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
  position: sticky;
  top: 1rem;
}

.price-section {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
}

.price-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* قیمت رایگان - سبز */
.price-free-large {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* قیمت با تخفیف */
.price-with-discount {
  gap: var(--spacing-xs);
}

.price-original-strike {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.7;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-save {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  width: fit-content;
}

/* دکمه‌های خرید */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.purchased-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.btn-large {
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-lg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--spacing-sm) !important;
  transition: all var(--transition-base) !important;
}

.btn-large:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Trust Indicators - روانشناسی اعتماد */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
  padding: var(--spacing-sm);
}

.trust-item svg {
  color: var(--success);
}

.trust-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* ========================================
   مشخصات فنی - با آیکون
   ======================================== */

.product-specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.specs-card-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-light);
}

.specs-card-title svg {
  color: var(--primary);
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.spec-item-new {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.spec-item-new:hover {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.spec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.spec-icon svg {
  color: var(--primary);
}

.spec-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.spec-item-new .spec-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.spec-item-new .spec-value {
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ========================================
   دکمه‌های عملیاتی
   ======================================== */

.product-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.btn-download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: none;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   تگ‌ها - بهبود یافته
   ======================================== */

.product-tags-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.tags-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag {
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tag:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ========================================
   تب‌های محصول - با آیکون و مدرن
   ======================================== */

.product-tabs {
  margin-top: var(--spacing-2xl);
}

.nav-tabs {
  border-bottom: 2px solid var(--border-light);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-tabs .nav-item {
  margin-bottom: -2px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-base);
  position: relative;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-tabs .nav-link svg {
  transition: transform var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--primary);
  background: transparent;
}

.nav-tabs .nav-link:hover svg {
  transform: scale(1.1);
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  background: transparent;
  border-color: transparent;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 2px 2px 0 0;
}

/* Tab Badge - شمارنده */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  margin-right: 0.25rem;
}

.tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tab-content-body {
  padding: var(--spacing-2xl);
}

/* ========================================
   محتوای تب‌ها
   ======================================== */

/* توضیحات محصول */
.product-description {
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1rem;
}

/* جدول مشخصات */
.specifications-table {
  margin-top: var(--spacing-md);
}

.specifications-table .table {
  border: none;
  margin: 0;
}

.specifications-table .table td {
  padding: var(--spacing-md);
  border: none;
  border-bottom: 1px solid var(--border-light);
}

.specifications-table .table tr:last-child td {
  border-bottom: none;
}

.specifications-table .spec-label {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-primary);
  width: 40%;
}

.specifications-table .spec-value {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========================================
   نظرات - با Avatar و مدرن
   ======================================== */

.reviews-list-new {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.review-card {
  display: flex;
  gap: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

/* Avatar Circle */
.review-avatar {
  flex-shrink: 0;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-sm);
}

.review-body {
  flex: 1;
  min-width: 0;
}

.review-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  gap: var(--spacing-md);
}

.reviewer-details {
  flex: 1;
  min-width: 0;
}

.reviewer-name {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.review-rating {
  display: flex;
  gap: 0.125rem;
}

.review-date-new {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  flex-shrink: 0;
}

.review-date-new svg {
  color: var(--text-light);
}

.review-comment {
  margin-top: var(--spacing-sm);
}

.review-comment p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Empty State - نظرات خالی */
.no-reviews-new {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-state-icon {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  opacity: 0.5;
}

.no-reviews-new h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.no-reviews-new p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ========================================
   محصولات مرتبط - مشابه Index
   ======================================== */

.related-products {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 2px solid var(--border-light);
}

.related-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.related-product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  border-color: rgba(37, 99, 235, 0.2);
}

.related-product-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-product-card:hover .related-product-image img {
  transform: scale(1.05);
}

.related-product-info {
  padding: var(--spacing-md);
}

.related-product-title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-product-title a:hover {
  color: var(--primary);
}

.related-product-price {
  margin-top: var(--spacing-sm);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .product-details-container {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .product-title {
    font-size: 1.5rem;
  }

  /* کارت قیمت - غیرفعال کردن sticky در موبایل */
  .price-action-card {
    position: relative;
    top: 0;
  }

  .price-amount {
    font-size: 1.875rem;
  }

  /* Meta Bar */
  .product-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  /* Trust Indicators */
  .trust-indicators {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .trust-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
    gap: var(--spacing-sm);
  }

  /* مشخصات فنی */
  .spec-item-new {
    gap: var(--spacing-sm);
  }

  .spec-icon {
    width: 32px;
    height: 32px;
  }

  /* تب‌ها */
  .nav-tabs {
    padding: 0 var(--spacing-sm);
  }

  .nav-tabs .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
  }

  .nav-tabs .nav-link span {
    display: none;
  }

  .nav-tabs .nav-link svg {
    margin: 0;
  }

  .tab-content-body {
    padding: var(--spacing-md);
  }

  /* نظرات */
  .review-card {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .review-header-new {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  /* گالری */
  .gallery-thumbnails {
    justify-content: center;
  }

  /* محصولات مرتبط */
  .related-products-grid {
    grid-template-columns: 1fr;
  }

  /* لینک‌های دانلود */
  .download-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .download-link-action {
    margin-right: 0;
    width: 100%;
  }

  .download-link-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   FOOTER - حرفه‌ای و مدرن
   ======================================== */

.premium-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  margin-top: var(--spacing-2xl);
  padding-top: 0;
}

.footer-top {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.footer-brand {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.footer-description {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: #f8fafc;
  transform: translateX(-2px);
}

.newsletter-form {
  margin-bottom: var(--spacing-md);
}

.newsletter-input-group {
  display: flex;
  gap: var(--spacing-sm);
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  background: #1e293b;
  color: #e2e8f0;
  outline: none;
  transition: all var(--transition-base);
  font-size: 0.9375rem;
}

.newsletter-input:focus {
  border-color: var(--primary);
  background: #0f172a;
}

.newsletter-input::placeholder {
  color: #64748b;
}

.newsletter-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  font-size: 0.9375rem;
}

.newsletter-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.newsletter-note {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid #334155;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.footer-copyright,
.footer-tech {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   بخش لینک‌های دانلود - کارت‌های مدرن
   ======================================== */

.download-section {
  margin-bottom: var(--spacing-xl);
}

.download-section-title {
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.download-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.download-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.download-link-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.download-link-item.disabled {
  opacity: 0.65;
  background: var(--bg-subtle);
}

.download-link-item.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-light);
}

.download-link-info {
  flex: 1;
}

.download-link-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.download-link-description {
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

.download-link-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.download-count {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.download-expiry {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.download-link-action {
  margin-right: var(--spacing-md);
}

.no-downloads {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  color: var(--text-muted);
}

.no-downloads i {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

/* ========================================
   RESPONSIVE DESIGN - موبایل فرست
   ======================================== */

/* Tablet & Small Desktop - 992px و پایین‌تر */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.25rem;
  }
  
  .catalog-hero {
    padding: var(--spacing-xl);
  }
  
  .hero-content .h4 {
    font-size: 1.25rem;
  }
  
  .product-card-material {
    border-radius: 1rem;
  }
  
  .product-content {
    padding: 1.25rem;
  }
}

/* Tablet - 768px و پایین‌تر */
@media (max-width: 768px) {
  /* Base */
  html, body {
    font-size: 14px;
  }
  
  /* Header */
  .premium-header .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .premium-header .nav-link::after {
    display: none;
  }
  
  /* Hero */
  .catalog-hero {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-content .h4 {
    font-size: 1.125rem;
  }
  
  .text-hero {
    font-size: 0.875rem;
  }
  
  /* Search */
  .search-form {
    padding: var(--spacing-md);
  }
  
  .search-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .search-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Products Grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
  }
  
  .product-card-material {
    border-radius: 1rem;
  }
  
  .product-card-material:hover {
    transform: translateY(-3px);
  }
  
  .product-content {
    padding: 1.25rem;
  }
  
  .product-title {
    font-size: 1rem;
  }
  
  .product-title-container {
    min-height: 2.5rem;
  }
  
  /* قیمت‌ها برای موبایل */
  .price-container-free,
  .price-container-normal,
  .price-container-discount {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }
  
  .price-badge.free {
    font-size: 0.9375rem;
  }
  
  .price-badge.paid {
    font-size: 1rem;
  }
  
  .price-badge.discounted {
    font-size: 1.125rem;
  }
  
  .discount-percentage {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
  }
  
  .price-original-value {
    font-size: 0.875rem;
  }
  
  /* Pagination */
  .pagination-material {
    gap: var(--spacing-sm);
  }
  
  .pagination-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .pagination-number {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
  
  /* Footer */
  .footer-top {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }
  
  .footer-brand {
    font-size: 1.25rem;
  }
  
  .newsletter-input-group {
    flex-direction: column;
  }
  
  .newsletter-button {
    width: 100%;
  }
  
  .footer-bottom .container > div {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  /* Product Details */
  .product-details-container {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .product-title {
    font-size: 1.25rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn-download,
  .btn-outline-primary {
    width: 100%;
    justify-content: center;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .related-products-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-thumbnails {
    justify-content: center;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .download-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .download-link-action {
    margin-left: 0;
    width: 100%;
  }
  
  .download-link-action .btn {
    width: 100%;
  }
}

/* Mobile - 480px و پایین‌تر */
@media (max-width: 480px) {
  /* Base */
  :root {
    --spacing-xl: 1.25rem;
    --spacing-2xl: 2rem;
  }
  
  /* Hero */
  .catalog-hero {
    padding: var(--spacing-md);
  }
  
  .catalog-hero::before {
    width: 200px;
    height: 200px;
  }
  
  /* Search */
  .search-input {
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    font-size: 0.875rem;
  }
  
  .search-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  /* Cards */
  .products-grid {
    gap: 1rem;
  }
  
  .product-card-material {
    border-radius: 0.875rem;
  }
  
  .product-content {
    padding: 1rem;
  }
  
  .product-title {
    font-size: 0.9375rem;
  }
  
  .product-title-container {
    min-height: 2.25rem;
  }
  
  /* قیمت‌ها برای موبایل کوچک */
  .price-container-free,
  .price-container-normal,
  .price-container-discount {
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
  }
  
  .price-badge.free {
    font-size: 0.875rem;
  }
  
  .price-badge.paid {
    font-size: 0.9375rem;
  }
  
  .price-badge.discounted {
    font-size: 1rem;
  }
  
  .discount-percentage {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
  }
  
  .price-original-value {
    font-size: 0.8125rem;
  }
  
  .product-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }
  
  .product-badge svg {
    width: 14px;
    height: 14px;
  }
  
  /* Empty State */
  .empty-state {
    padding: var(--spacing-xl);
  }
  
  /* Pagination - ساده‌تر برای موبایل */
  .pagination-numbers {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }
  
  .pagination-btn span {
    display: none;
  }
  
  .pagination-btn svg {
    margin: 0;
  }
}