/* AgriKoshk PDP Related Products Patch v1.0.0 */
.agk-related-section {
  max-width: 80rem;
  margin: 2.5rem auto 3rem;
  padding: 0 1rem;
  min-height: 280px;
  contain: layout style;
}

.agk-related-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.agk-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .agk-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .agk-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.agk-related-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agk-related-card:hover,
.agk-related-card:focus-within {
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
}

.agk-related-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.agk-related-link:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 0.75rem;
}

.agk-related-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f4f6;
}

.agk-related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agk-related-img--placeholder {
  background: linear-gradient(135deg, #ecfdf5, #f3f4f6);
}

.agk-related-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.agk-related-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #047857;
  margin: 0 0 0.5rem;
}

.agk-related-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
}

html[dir='ltr'] .agk-related-cta {
  direction: ltr;
}
