/* ====================== */
/* استایل دسکتاپ (کلی) */
/* ====================== */

body {
  font-family: 'Vazirmatn', sans-serif;
  margin: 0;
  background-color: #f3f4f6;
  color: #333;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* هدر */
.header {
  background-color: #000;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.header nav {
  margin-top: 0.5rem;
}

.header nav a {
  color: #e2e8f0;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: #00f846;
}

/* بخش محصول */
.product {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 4rem;
  align-items: center;
  animation: fadeInUp 1s ease;
}

.product-info {
  flex: 1;
}

.product-info h2 {
  font-size: 2rem;
  color: #0bc22c;
}

.product-info ul {
  padding-right: 1.2rem;
  color: #a30000;
}

.product-info li {
  margin-bottom: 0.5rem;
}

.buy-button {
  background-color: #22c55e;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  display: inline-block;
  width: 50%;
  max-width: 150px;
  text-align: center;
}

.buy-button:hover {
  background-color: #16a34a;
}

.product-image img {
  width: 800px;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ویژگی‌ها */
.features {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'Lalezar', cursive;
  font-size: 20px;
}

.feature-box {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box img {
  width: 80px;
  margin-bottom: 0.5rem;
  margin-top: 30px;
}

/* اسلایدر */
.slider {
  margin-top: 3rem;
  text-align: center;
}

.slider-img img {
  width: 100%;
  max-width: 800px;
  border-radius: 1rem;
  animation: fadeIn 2s ease;
}

/* فوتر */
.custom-footer {
  background: linear-gradient(90deg, #1b0033, #3d0066);
  color: #fff;
  padding: 25px 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  margin-top: 50px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in;
  border-radius: 0 0 15px 15px;
}

.custom-footer a {
  color: #ffbbff;
  font-weight: bold;
  text-decoration: none;
}

.custom-footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff00ff;
}

/* live-counter */
.live-counter {
  text-align: center;
  font-size: 1.3rem;
  margin: 5rem auto 5.5rem auto;
  color: #2d2d2d;
  background: linear-gradient(135deg, #eeffed, #d6ffd5);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(82, 251, 60, 0.2);
  width: fit-content;
  max-width: 90%;
  animation: fadeInUp 1s ease-out;
  transition: all 0.3s ease-in-out;
}

.live-counter:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(63, 251, 60, 0.35);
}

.live-counter strong {
  font-weight: 900;
  background: linear-gradient(to right, #55fb3c, #4ff916);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin: 0 0.4rem;
  animation: pulse 1.8s infinite ease-in-out;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ====================== */
/* استایل موبایل */
/* ====================== */

@media (max-width: 768px) {
  html,
  body {
    padding: 0;
    margin: 0;
    height: 100%;
    background: #f5f7fa;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  main.main-content {
    flex: 1;
  }

  .header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
  }

  .product {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .product-image {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .product-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 1rem;
    margin-top: 3rem;
  }

  .product-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .product-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .product-info p,
  .product-info ul {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
  }

  .buy-button {
    width: 100%;
    max-width: 220px;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    margin: 1rem auto 0;
    display: block;
    text-align: center;
    border-radius: 0.75rem;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-top: 2rem;
  }

  .feature-box {
    background: #fff;
    padding: 0.8rem;
    font-size: 0.8rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
  }

  .feature-box img {
    width: 48px;
    margin-bottom: 0.5rem;
  }

  .live-counter {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    max-width: 95%;
    margin: 3rem auto 4rem auto;
  }

  .live-counter strong {
    font-size: 1.1rem;
    margin: 0 0.14rem;
  }

  .custom-footer {
    margin-top: auto;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    border-radius: 0;
  }
}
