/* ============================
   Product Related — v2 Brutal (dark)
   ============================ */

.product-related {
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, #0d1117 0%, #141a24 100%);
  background-image:
    linear-gradient(to bottom, rgba(13,17,23,0.96), rgba(20,26,36,0.98)),
    repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(255,255,255,0.02) 22px, rgba(255,255,255,0.02) 23px);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.product-related::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
  z-index: 2;
}

.product-related__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

.product-related__header { margin-bottom: 40px; max-width: 720px; }
.product-related__overline {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 14px;
}
.product-related__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border: 1px solid #1f2937;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.product-related__card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  z-index: 3;
}
.product-related__card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 32px;
  border-top: 3px solid var(--color-accent);
  border-right: 3px solid var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.product-related__card:hover { border-color: rgba(255,255,255,0.2); background: #141a24; }
.product-related__card:hover::before { transform: scaleY(1); }
.product-related__card:hover::after { opacity: 1; }

.product-related__card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: #0a0f17;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #1f2937;
}
.product-related__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.product-related__card-media::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,0.03) 18px, rgba(255,255,255,0.03) 19px);
}
.product-related__card-icon {
  position: relative;
  z-index: 1;
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-related__card-icon svg { width: 80px; height: 80px; }
.product-related__card-num {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  z-index: 2;
}
.product-related__card-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-left: 2px solid var(--color-accent);
  z-index: 2;
}

.product-related__card-body {
  padding: 22px 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-related__card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.product-related__card-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-related__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.product-related__card-article {
  font-family: var(--font-heading);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.product-related__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: gap 0.2s ease, color 0.2s ease;
}
.product-related__card-link svg { width: 12px; height: 12px; }
.product-related__card:hover .product-related__card-link { color: var(--color-accent-light); gap: 12px; }

/* Animate */
.product-related__animate { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.product-related__animate--visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .product-related__grid { grid-template-columns: 1fr 1fr; }
  .product-related__title { font-size: 28px; }
}
@media (max-width: 640px) {
  .product-related { padding: var(--section-padding-sm) 0; }
  .product-related__container { padding: 0 var(--container-padding-mobile); }
  .product-related__grid { grid-template-columns: 1fr; }
}
