/* ====================
   RESET & BASE STYLES
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================
   HEADER
==================== */
.header {
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: #007aff;
  margin-bottom: 5px;
}

.logo p {
  font-size: 14px;
  color: #666;
}

.main-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #f0f7ff;
  color: #007aff;
}

.btn-call {
  background: linear-gradient(135deg, #34c759, #2aa44f);
  color: white !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 15px rgba(52,199,89,0.2);
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52,199,89,0.3);
}

/* ====================
   MAIN CONTENT
==================== */
.main {
  min-height: calc(100vh - 200px);
}

/* ====================
   HERO SECTION
==================== */
.hero {
  background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 25px;
  margin: 30px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(150px, -150px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  transform: translate(-100px, 100px);
}

.hero h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* ====================
   PRODUCTS SECTION
==================== */
.products-section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #1d1d1f;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #007aff, #34c759);
  margin: 15px auto;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* ====================
   PRODUCT CARD
==================== */
.product {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.product:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #007aff;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff9500, #ff5e3a);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255,149,0,0.3);
}

.product-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #34c759;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-price.free {
  color: #ff9500;
}

.product-description {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-details {
  background: linear-gradient(135deg, #007aff, #0056cc);
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-grow: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,122,255,0.2);
}

.btn-details:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,122,255,0.3);
}

.btn-order {
  background: linear-gradient(135deg, #34c759, #2aa44f);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(52,199,89,0.2);
}

.btn-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52,199,89,0.3);
}

/* ====================
   FOOTER
==================== */
.footer {
  background: #1d1d1f;
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #007aff;
  margin-bottom: 15px;
}

.footer-info p {
  color: #aaa;
  margin-bottom: 10px;
}

.contact-info {
  color: #34c759 !important;
  font-weight: 600;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-link {
  color: #ddd;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link:hover {
  color: #007aff;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #888;
  font-size: 14px;
}

/* ====================
   RESPONSIVE DESIGN
==================== */

/* تبلت */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .hero {
    padding: 40px 15px;
    margin: 20px 15px;
    border-radius: 20px;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .products-section {
    padding: 40px 15px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .product {
    max-width: 100%;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn-details, .btn-order {
    width: 100%;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 30px 15px;
    margin: 15px 10px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .product-content {
    padding: 20px;
  }
  
  .product-title {
    font-size: 20px;
  }
  
  .product-price {
    font-size: 18px;
  }
  
  .footer {
    padding: 30px 0 20px;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* استایل برای لودینگ */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* بهبود اسکرول‌بار */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007aff, #34c759);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056cc, #2aa44f);
}

/* استایل‌های کمکی */
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.rounded-lg { border-radius: 20px; }
.shadow-lg { box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
