.related {
  --gold: #b8912f;
  --gold-soft: #d4af37;
  --ink: #2a1d0c;
  --muted: #7a6a52;
  --paper: #f5f6f9;
  --line: #10112b;

  background: var(--paper);
  padding: 4rem 1rem;
  color: var(--ink);
}

.related__inner {
  max-width: 1200px;
  margin-inline: auto;
}
.related-swiper{
    padding: 8px !important;
}
/* هدر */
.related__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.related__eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.related__heading{
    width: 100%;
    padding: 0 8px;
}
.related__title {
  margin: 0 auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #10112b;

}

.related__nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;

}

.related__btn {
  position: static !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--line) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--ink)!important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease !important;
}
.related__btn::after{content: none !important;}
.related__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related__btn:hover:not(.swiper-button-disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.related__btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.related__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* اسلایدر */
.related-swiper {
  overflow: hidden;
  padding-bottom: 0.5rem;
}

.related-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* کارت محصول */
.product-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 7px -1px #555;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: 0 14px 30px -18px rgba(42, 29, 12, 0.35);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1ebdd;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
  color: #1653c3;
}

.product-card__name a:hover {
  color: var(--gold);
}

.product-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.product-card__price {
  margin: auto 0 0;
  padding-top: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--gold);
}

.product-card__unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.product-card a:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 6px;
}


@media (max-width: 480px) {
  .related {
    padding: 3rem 0.75rem;
  }

  .related__header {
    margin-bottom: 1.5rem;
  }

  .related__btn {
    width: 38px;
    height: 38px;
  }
}

/* کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__media img,
  .related__btn {
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }
}