:root {
  /* پالت رنگی جدید: دارک‌تر و اسپرت‌تر */
  --primary-color: #ffd700; /* زرد طلایی اصلی */
  --primary-dark: #d4b200; /* زرد تیره برای هاور */
  --secondary-color: #000000; /* مشکی خالص */
  --background-color: #1a1a1a; /* پس‌زمینه خیلی تیره */
  --card-color: #252525; /* رنگ کارت‌ها */
  --text-color: #ffffff; /* سفید */
  --text-gray: #b0b0b0; /* خاکستری متن‌ها */
  --light-gray: #333333; /* جایگزین خاکستری روشن قبلی با تیره */
  --border-color: #444444;
  --accent-color: #ffa500;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --transition: all 0.6s ease; /* انیمیشن نرم */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazir", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.shop-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  direction: rtl;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

span {
  color: var(--text-gray); /* اصلاح شده با متغیر جدید */
}

.included-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.included-footer {
  width: 100%;
  bottom: 0;
  z-index: 1000;
}

/* --- استایل‌های قدیمی هیرو (نگه داشته شده محض احتیاط) --- */
.shop-hero-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  padding: 60px 20px;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 40px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.shop-hero-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-family: "lalezar", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.shop-hero-header p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 25px;
  opacity: 0.9;
}
.shop-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* --- استایل بلوک‌های قدیمی --- */
.appear-block-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
  padding: 20px;
  overflow-x: hidden;
  overflow: visible;
}

.first-block,
.second-block,
.third-block {
  display: flex;
  align-items: center;
  width: 80%;
  background: var(--light-gray);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
  opacity: 0;
  animation: slideIn both;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
}

.first-block {
  animation-name: slideFromLeft;
}
.second-block {
  animation-name: slideFromLeft;
}
.third-block {
  animation-name: slideFromRight;
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.image-block {
  width: 40%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
}
.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-block {
  width: 60%;
  padding: 20px;
  text-align: right;
  color: var(--text-color);
  font-family: "Vazir", sans-serif;
  font-size: 1.1rem;
}
.text-block h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  text-align: center;
  font-family: "lalezar", sans-serif;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  font-family: "lalezar", sans-serif;
}
.stat-label {
  font-size: 1rem;
  color: var(--secondary-color);
  opacity: 0.8;
}

/* --- هدر قدیمی فروشگاه --- */
.shop-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-color);
  margin: 20px auto;
  border-radius: 15px;
  max-width: 1200px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.shop-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: "lalezar", sans-serif;
}
.shop-header p {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

/* --- کنترل‌ها --- */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--light-gray); /* بروز شده با رنگ تیره */
  border-radius: 8px;
  padding: 10px 15px;
  flex-grow: 1;
  max-width: 400px;
  border: 1px solid var(--border-color);
}
.search-box svg {
  width: 25px;
  height: 25px;
  color: var(--primary-color);
  margin-left: 10px;
}
.search-box input {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
  outline: none;
}
.search-box input::placeholder {
  color: #888888;
}

.sort-options select {
  background: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}
.sort-options select option {
  background: var(--card-color);
  color: var(--text-color);
}

/* --- فیلترها --- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* tuning categories grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin: 20px 0 40px;
}
.cat-item a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--card-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  color: var(--text-color);

  svg {
    width: 60px;
    height: 60px;
  }
}
.cat-item.active a {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.category-filter-banner {
  height: max-content;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  color: var(--text-gray);
}
.category-filter-banner strong {
  color: var(--primary-color);
}
.clear-filter,
.category-filter-banner a {
  margin-left: 10px;
  color: var(--primary-color);
  text-decoration: underline;
}

.no-products-message {
  padding: 18px;
  margin: 12px 0 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  text-align: center;
  color: var(--text-gray);
  font-weight: bold;
}
.filter-btn {
  background: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

/* --- لیست محصولات (Basic Layout) --- */
.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--card-color);
  border-radius: 15px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
  border-color: var(--primary-color);
}

.product-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-attribute {
  margin-bottom: 10px;
}
.unique-product {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
}

.product-Category {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
}
.product-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color);
  line-height: 1.4;
}
.product-desc {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-stock {
  font-size: 0.85rem;
  margin-bottom: 15px;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  width: fit-content;
}
.product-stock.in-stock {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}
.product-stock.low-stock {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning-color);
}
.product-stock.out-of-stock {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}

.product-price-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}
.product-discount {
  background: var(--danger-color);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.shop-details-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s;
  margin-top: auto;

  svg {
    width: 24px;
    height: 24px;
  }
}
.shop-details-btn:hover {
  background: var(--accent-color);
}

/* --- صفحه جزئیات محصول (Product Details) - حفظ شده --- */
.product-details-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  direction: rtl;
}
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 0;
  color: #cccccc;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--accent-color);
}
.breadcrumb svg {
  width: 20px;
  height: 20px;
  margin: 0 10px;
  font-size: 0.8rem;
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  background: var(--card-color);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid var(--border-color);
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.main-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.mainProductImage {
  transition: opacity 0.3s ease-in-out;
}

.imageGalleryForProducts {
  /* width: 100%; */
  border-radius: 12px;
  /* height: auto; */
  /* overflow: hidden; */
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: row;
}

.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 20px 20px;
}
.product-header {
  margin-bottom: 20px;
}
.product-category {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}
.product-description {
  margin-bottom: 25px;
}
.product-description p {
  color: #cccccc;
  line-height: 1.6;
  text-align: justify;
}
.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;

  svg {
    width: 24px;
    height: 24px;
  }
}
.stock-info.in-stock {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}
.stock-info.low-stock {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning-color);
}
.stock-info.out-of-stock {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
}
.product-code {
  padding: 8px 15px;
  background: var(--light-gray);
  border-radius: 8px;
  font-size: 0.9rem;
}
.pricing {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.original-total-price {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.original-price {
  text-decoration: line-through;
  color: #888888;
  font-size: 1rem;
}
.final-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}
.discount-badge {
  background: var(--danger-color);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}
.product-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.action-buttons {
  display: flex;
  gap: 15px;
  flex-grow: 1;
}
.add-to-cart-btn,
.buy-now-btn,
.out-of-stock-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  font-size: 1rem;
}
.add-to-cart-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.add-to-cart-btn svg {
  width: 35px;
  height: 35px;
}
.add-to-cart-btn:hover {
  background: var(--accent-color);
}
.buy-now-btn {
  background: var(--success-color);
  color: white;
}
.buy-now-btn:hover {
  background: #218838;
}
.out-of-stock-btn {
  background: var(--danger-color);
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--light-gray);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.feature svg {
  width: 25px;
  height: 25px;
  color: var(--primary-color);
}

/* --- تب‌ها و نظرات (Tabs & Comments) - حفظ شده --- */
.product-tabs {
  margin-bottom: 50px;
  background: var(--card-color);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.tab-header {
  background: transparent;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  color: #cccccc;
  font-size: 1rem;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.tab-header:hover {
  color: var(--primary-color);
  background: rgba(255, 215, 0, 0.1);
}
.tab-header.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(255, 215, 0, 0.1);
}
.tab-contents {
  padding: 30px;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-row {
  display: flex;
  padding: 12px 15px;
  background: var(--light-gray);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.spec-name {
  flex: 1;
  font-weight: bold;
  color: var(--primary-color);
}
.spec-value {
  flex: 2;
  color: var(--text-color);
}

.shipping-info {
  width: 100%;
  height: max-content;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 20px;

  h3 {
    font-size: 1.5rem;
  }

  ul li {
    font-size: 1rem;
    color: var(--text-gray);
  }
}

.comments-section {
  margin-top: 30px;
  padding: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  h3 {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.5rem;
  }
}
.container {
  max-width: 600px;
  margin: 50px auto;
  background: var(--card-color);
  border: 2px solid var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.showApprovedComments {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h2 {
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  /* border: 1px solid #ddd; */
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #4caf50;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.rating {
  display: flex;
  justify-content: start;
  gap: 10px;
  margin: 10px 0;
}

.rating input {
  display: none;
}

.rating label {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
  color: #ffd700;
}

.submit-btn {
  background-color: #4caf50;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
  transition: background-color 0.3s;
}

.showApprovedComments {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-right: 3px solid var(--success-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--text-color);
}

.comment-author {
  font-weight: bold;
  color: var(--secondary-color);
}

.comment-date {
  color: var(--text-color);
  font-size: 0.9rem;
}

.comment-rating {
  margin-bottom: 10px;
  color: var(--text-gray);
}

.comment-rating .star {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-left: 2px;
}

.comment-rating .star.filled {
  color: #ffc107;
}

.comment-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--secondary-color);
}

.no-comments {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 8px;
  color: #666;
}

.submit-btn:hover {
  background-color: #45a049;
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.related-products {
  margin-bottom: 50px;
  padding: 0px 20px;
}
.related-products h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-align: center;
}

.related-products h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 10px auto 0;
}

.related-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}
.related-product-card {
  background: var(--card-color);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
  border-color: var(--primary-color);
}
.view-product-btn {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
  margin-top: 15px;
}
.view-product-btn:hover {
  background: var(--accent-color);
}

.error-message {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--danger-color);
  margin: 30px 0;
}
.customize-section {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}
.customize-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.customize-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.customize-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.customize-option label {
  color: var(--text-color);
  font-weight: 500;
}
.customize-option select,
.customize-option input {
  padding: 10px 15px;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
}
.customize-preview {
  margin-top: 20px;
  padding: 20px;
  background: var(--card-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.customize-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.shop-header.tuning-hero {
  /* تنظیم تصویر پس‌زمینه (مسیر تصویر را چک کنید) */
  background: url("../sorce/image/slider-image5.webp") center/cover no-repeat
    fixed;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 0 40px 0;
  border-radius: 0;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 100%; /* تمام عرض */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    var(--background-color)
  );
  z-index: 1;
}

.overlay-hover svg {
  width: 20px;
  height: 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.shop-header.tuning-hero h1 {
  font-size: 3.5rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  margin-bottom: 10px;
}

.cta-button {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px;

  svg {
    width: 20px;
    height: 32px;
  }
}

.cta-button:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-color);
}

/* --- بخش دسته‌بندی‌ها (Categories) --- */
.tuning-categories {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-title {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background: var(--primary-color);
  margin: 10px auto 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-column: auto;
  gap: 20px;
}

.cat-item {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.cat-item a {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  text-decoration: none;
}

.cat-item svg {
  width: 30px;
  width: 30px;
  color: var(--text-gray);
  transition: var(--transition);
}

.cat-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.cat-item:hover i {
  color: var(--primary-color);
}

/* --- بنر تبلیغاتی (Promo Banner) --- */
.tuning-promo-banner {
  width: 100%;
  background: linear-gradient(90deg, #000 0%, #333 100%);
  padding: 40px;
  margin: 40px 0;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-content h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  font-family: "lalezar", sans-serif;
}

.promo-btn {
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--primary-color);
  border: none;
  font-weight: bold;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  transition: transform 0.2s;
  a {
    color: #000;
    text-decoration: none;
  }
}

.promo-btn:hover {
  transform: scale(1.05);
  background: #fff;
}

/* --- تغییرات ظاهری کارت محصولات (Overrides) --- */
.product-card {
  /* افزودن سایه و استایل جدید روی کارت‌های موجود */
  background: linear-gradient(145deg, #2a2a2a, #222);
}

.product-image-container {
  background: #fff; /* برای بهتر دیده شدن عکس محصولات */
}

.product-image-container .badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger-color);
  color: #fff;
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;
}

.product-image-container .overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .overlay-hover {
  opacity: 1;
}

.quick-view {
  color: #fff;
  font-size: 1.5rem;
  background: var(--primary-color);
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.product-meta-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

/* استایل بلوک‌های توضیحات (Tuning Style) */
.tuning-card {
  border-right: 4px solid var(--primary-color);
  background: var(--card-color);
}

.tuning-list {
  list-style: none;
  text-align: right;
  margin-top: 15px;
}

.tuning-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  position: relative;
}

.tuning-list svg {
  position: absolute;
  width: 25px;
  color: var(--primary-color);
  right: -30px;
}

/* برای ریسپانسیو شدن بلاک دوم به صورت معکوس */
@media (min-width: 769px) {
  .second-block.reverse {
    flex-direction: row-reverse;
  }
}

@media (max-width: 768px) {
  .product-details {
    grid-template-columns: 1fr;
  }
  .shop-hero-header h1 {
    font-size: 2.2rem;
  }
  .shop-hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .products-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .action-buttons {
    flex-direction: column;
  }
  .tab-headers {
    flex-direction: column;
  }
  .tab-header {
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
  }
  .tab-header.active {
    border-bottom-color: var(--border-color);
    border-left-color: var(--primary-color);
  }
}

@media (max-width: 604px) {
  .first-block,
  .second-block,
  .third-block {
    flex-direction: column;
    width: 95%;
    animation-name: slideMobile;
  }

  @keyframes slideMobile {
    from {
      opacity: 0;
      transform: translateY(40px); /* جایگزین translateX */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .image-block,
  .text-block {
    width: 100% !important;
  }
}
