/* === استایل عمومی === */
body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.7;
}

/* === بنر بالای صفحه === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #eef2f3, #ffffff);
}
.hero .banner {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}
.hero .banner:hover { transform: scale(1.03); }
.hero h1 {
  font-size: 26px;
  margin: 15px 0 10px;
  font-weight: 800;
  color: #111;
}
.hero p {
  font-size: 15px;
  margin-bottom: 25px;
  color: #555;
}

/* === دکمه‌ها (سه خط) === */
.hero .categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 25px;
}
.btn {
  display: block;
  text-align: center;
  padding: 14px 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.btn.primary { background: linear-gradient(45deg,#007bff,#0056d2); color: #fff; }
.btn.primary:hover { transform: translateY(-4px) scale(1.03); }
.btn.alt { background: linear-gradient(45deg,#6c757d,#495057); color:#fff; }
.btn.alt:hover { transform: translateY(-4px) scale(1.03); }

/* === کارت محصولات حرفه‌ای‌تر === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 20px 50px;
}
.card.product {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.35s, box-shadow 0.35s;
  cursor: pointer;
}
.card.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.card.product img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
  transition: transform 0.45s ease;
}
.card.product:hover img { transform: scale(1.08); }
.card.product .title {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 6px;
  padding: 0 10px;
}
.card.product .small {
  font-size: 13px;
  color: #666;
  padding: 0 10px;
}
.card.product .price {
  font-size: 16px;
  font-weight: bold;
  margin: 12px 0;
  padding: 0 10px;
  color: #007bff;
}
.card.product .actions {
  display: flex;
  gap: 10px;
  margin: 15px 10px 12px;
}
.card.product .actions .btn {
  flex: 1;
  font-size: 14px;
  border-radius: 12px;
}

/* === فوتر سه‌ستونه مدرن === */
footer {
  background: #0d1117;
  color: #ddd;
  padding: 40px 20px;
}
footer .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 25px;
  text-align: center;
}
footer h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}
footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer .footer-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
footer .footer-links a:hover { color: #007bff; }
footer .socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}
footer .socials a {
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}
footer .socials a:hover { color: #1da1f2; }
footer p {
  grid-column: 1/-1;
  font-size: 13px;
  margin-top: 25px;
  color: #999;
  text-align: center;
}

/* === ریسپانسیو موبایل === */
@media(max-width:768px){
  .hero h1 { font-size: 22px; }
  .hero .categories { grid-template-columns: 1fr; }
  .card.product .title { font-size: 15px; }
  footer .footer-container { grid-template-columns: 1fr; }
}
