/* فونت فارسی */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* تنظیمات عمومی */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazir', sans-serif;
  scroll-behavior: smooth;
}

body, html {
  background-color: #222;
  color: #eee;
  direction: rtl;
  text-align: right;
  width: 100%;
  overflow-x: hidden;
}

/* استایل هدر */
header {
  background-color: #181818;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid gold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* کانتینر هدر */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* لوگو */
.logo a {
  text-decoration: none;
  color: goldenrod;
  font-size: 1.8em;
  font-weight: bold;
}

/* منو */
.home a {
  text-decoration: none;
  color: gold;
  margin: 0 10px;
  transition: color 0.3s;
}

.home a:hover {
  color: white;
}

/* آیکون شبکه‌های اجتماعی */
.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* دکمه شناور هوم */
.fixed-home-btn {
  position: fixed;
  bottom: 50px;
  right: 50px;
  background: gold;
  color: black;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  opacity: 0.8;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 9999;
}

.fixed-home-btn:hover {
  background: #b8860b;
}
.location {
  width: 100%;
  margin: 10px;
  padding: 10px;
}
.location a {
  text-decoration: none;
  opacity: 100%;
  color: white;
}
.location a:hover {
  color: gold;
}

/* عنوان محصولات */
.header-h1 {
  text-align: center;
  color: white;
  font-size: 2em;
  margin-top: 20px;
}

/* کارت محصول */
.product-container {
  width: 400px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  text-align: center;
  transition: transform 0.3s;
}

.product-container:hover {
  transform: translateY(-5px);
}

.product-container a {
  text-decoration: none;
  color: red;
}

.product-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* مشخصات محصول */
.product-container h1 {
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;
  color: #333;
}

.product-category {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.product-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* دکمه‌های اشتراک گذاری */
.share-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }
.instagram { background: #E4405F; }

/* امتیازدهی */
.rating span {
  font-size: 24px;
  color: gold;
}

/* بخش نظرات */
.comments-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  resize: none;
}

/* دکمه ارسال */
button {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #218838;
}

/* استایل فوتر */
footer {
  background-color: #181818;
  color: white;
  padding: 40px 20px;
  margin-top: 10px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  width: 30%;
  padding: 10px;
  text-align: right;
}

.footer-column h3 {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 5px;
}

.footer-column ul li a {
  opacity: 50%;
  margin-right: 10px;
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: #FFD700;
}
.footer-column p {
  opacity: 50%;
}
.footer-column a {
  text-decoration: none;
  color: white;
}

.footer-column a:hover {
  color: #f1d04b;
}
.footer-container {
  display: flex;
  justify-content: space-between; /* فاصله‌ی مساوی بین بخش‌ها */
  align-items: flex-start; /* تراز عمودی */
  flex-wrap: wrap; /* اگر صفحه کوچک شد، اجزا بشکنند */
}

.footer-container form {
  width: 300px;
  text-align: right;
  direction: rtl ;
  margin-left: auto;
  margin-right: 0;
  display: block;
}

.footer-container form input,
.footer-container form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
}

.footer-container form button {
  width: 100%;
  background-color: red;
  border-radius: 30px;
  color: black;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.footer-container form button:hover {
  background-color: #FFD700; /* تغییر رنگ هنگام هاور */
  transition: 0.3s;
}

/* نسخه موبایل */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }
  .product-container {
    width: 90%;
  }
  .fixed-home-btn {
    right: 20px;
    bottom: 20px;
    padding: 10px 15px;
  }
}
