:root {
  --green-600: #0b9d63;
  --green-500: #16c172;
  --green-200: #d5f5e3;
  --dark: #0e2f2f;
  --light: #fcfffd;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.8;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
nav {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(11, 157, 99, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-600);
  text-decoration: none;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--green-600);
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--green-600);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--green-600);
}

/* استایل صفحه محصول */
.product-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

.product-breadcrumb {
  margin-bottom: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.product-breadcrumb a {
  color: var(--green-600);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thumbnail-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--green-500);
}

.product-info {
  padding: 1rem;
}

.product-title {
  color: var(--green-600);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-artist {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 1.5rem;
}

.product-description {
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--green-200);
  border-radius: 15px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.meta-value {
  color: var(--dark);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  flex: 1;
  padding: 1rem 2rem;
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--green-500);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 157, 99, 0.3);
}

.btn-secondary {
  padding: 1rem 2rem;
  background: white;
  color: var(--green-600);
  border: 2px solid var(--green-600);
  border-radius: 15px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--green-200);
  transform: translateY(-2px);
}

.product-features {
  margin-bottom: 3rem;
}

.features-title {
  color: var(--green-600);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.features-list li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: bold;
}

.related-products {
  margin-top: 4rem;
}

.section-title {
  color: var(--green-600);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(11, 157, 99, 0.08);
  border: 1px solid var(--green-200);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 157, 99, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.product-card h3 {
  color: var(--green-600);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card .price {
  color: var(--green-600);
  font-weight: 700;
  font-size: 1.3rem;
}

/* استایل فوتر */
footer {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}
.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link:hover {
  background-color: white;
  color: var(--green-600);
  transform: translateY(-3px);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}
.contact-item i {
  width: 20px;
  text-align: center;
}
.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* استایل ریسپانسیو */
@media (max-width: 1024px) {
  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
  }
  .nav-links li:last-child {
    border-bottom: none;
  }

  .product-container {
    padding: 1rem;
  }

  .main-image {
    height: 300px;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .product-price {
    font-size: 1.6rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.5rem;
  }

  .main-image {
    height: 250px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
