@font-face {
  font-family: 'Vazirmatn';
  src: url('../assests/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assests/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assests/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assests/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
:root {
  --bg-base: #0a77ca;  
  --glass-bg: rgba(15, 23, 42, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --accent: #e11d48;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --gold: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.bg-pattern {
  position: fixed;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url('../assests/cat.png'); /* آدرس عکس گربه */
  background-size: 150px;
  opacity: 0.04;
  animation: panPattern 100s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: 20%; left: 50%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(2,6,23,0) 70%);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

@keyframes panPattern {
  0% { transform: rotate(-10deg) translate3d(0, 0, 0); }
  100% { transform: rotate(-10deg) translate3d(200px, 200px, 0); }
}


.main-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 120px auto 60px;
  padding: 0 20px;
  flex: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero-section {
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 32px; padding: 80px 40px;
  text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -50%; left: 50%; width: 100%; height: 100%;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.2), transparent 70%);
  transform: translateX(-50%); pointer-events: none;
}
.hero-title { font-size: 3rem; font-weight: 900; color: #fff; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero-title .highlight { color: var(--primary); }
.hero-subtitle { font-size: 1.15rem; line-height: 2; color: #cbd5e1; max-width: 800px; margin: 0 auto 40px; }
.hero-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; position: relative; z-index: 2; }
.btn-primary {
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
  padding: 15px 35px; border-radius: 16px; box-shadow: 0 10px 25px var(--primary-glow); transition: 0.3s;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 15px 35px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: 0.3s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: #cfe0ff;
  transform: translateY(-3px);
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.feature-card {
  background:rgba(8, 104, 221, 0.3); border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 30px; text-align: center; transition: 0.3s; backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); border-color: rgba(59,130,246,0.3); }
.feature-icon {
  width: 70px; height: 70px; background: rgba(59, 130, 246, 0.1); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; color: var(--primary); margin: 0 auto 20px;
}
.feature-title { font-size: 1.2rem; font-weight: bold; color: #fff; margin-bottom: 10px; }
.feature-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }

.section-header { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 30px; padding-bottom: 15px; 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.section-title { font-size: 1.8rem; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 10px; }
.view-all-link { 
  background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; 
  font-weight: bold; font-size: 0.9rem; padding: 8px 20px; 
  border-radius: 50px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); 
}
.view-all-link:hover { background: var(--primary); border-color: var(--primary); }

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 700px;
  margin: -14px 0 25px;
}

.products-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
  gap: 30px; 
}

.product-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.7)); 
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px; 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  text-decoration: none; 
  color: inherit; 
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover { 
  transform: translateY(-10px); 
  border-color: rgba(59, 130, 246, 0.4); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(59, 130, 246, 0.15); 
}

.pc-img-box { 
  width: 100%; 
  aspect-ratio: 16/11; 
  position: relative; 
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}

.pc-img-box img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease;
}

.product-card:hover .pc-img-box img {
  transform: scale(1.08);
}

.pc-badge { 
  position: absolute; 
  top: 15px; right: 15px; 
  background: var(--accent); 
  color: #fff; 
  font-weight: 800; 
  padding: 6px 12px; 
  border-radius: 12px; 
  font-size: 0.85rem; 
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  z-index: 2;
}

.pc-badge.out-badge {
  background: #475569;
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4);
}

.pc-info { 
  padding: 24px 20px; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pc-title { 
  font-size: 1.15rem; 
  font-weight: 800; 
  color: #f8fafc; 
  margin-bottom: 8px;
  line-height: 1.5;
}

.pc-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stars-outer {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.15);
  direction: ltr;
  unicode-bidi: bidi-override;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-count.no-rate {
  font-style: italic;
  opacity: 0.7;
}

.pc-price { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap;
  gap: 10px; 
  margin-top: auto;
}

.pc-price del { 
  font-size: 0.95rem; 
  color: var(--text-muted); 
  text-decoration: line-through; 
}

.pc-price ins { 
  font-size: 1.25rem; 
  font-weight: 900; 
  color: var(--primary); 
  text-decoration: none; 
}

.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock:hover {
  transform: translateY(-5px); 
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card.out-of-stock .pc-img-box img {
  filter: grayscale(100%) opacity(0.8);
}

.unavailable-text {
  color: #94a3b8;
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.testimonial-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px; padding: 30px; position: relative;
}
.quote-icon { position: absolute; top: 20px; left: 20px; opacity: 0.1; color: #fff; }
.test-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.test-avatar { width: 50px; height: 50px; border-radius: 16px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; color: #fff; }
.test-user h4 { font-size: 1.1rem; color: #fff; margin-bottom: 5px; }
.test-stars { color: var(--gold); font-size: 0.85rem; }
.test-text { color: #cbd5e1; font-size: 0.95rem; line-height: 1.9; font-style: italic; }
.test-product { margin-top: 15px; font-size: 0.8rem; color: var(--text-muted); border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 12px; }

@media (max-width: 768px) {
  .hero-section { padding: 40px 20px; }
  .hero-title { font-size: 2rem; }
  .section-header { flex-direction: column; gap: 15px; align-items: flex-start; }
}