/* Referanslar — front */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ref-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ref-card:hover {
  border-color: #fdba74;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.ref-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}

.ref-card__media img,
.ref-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-card__placeholder {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6 45%, #dbeafe);
}

.ref-card__country {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.ref-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--navy, #1b2430);
}

.ref-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #e8421a);
}

.ref-detail {
  max-width: 920px;
  margin: 0 auto;
}

.ref-detail__hero {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.ref-detail__hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ref-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.ref-detail__label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.ref-detail__meta strong {
  font-size: 1.05rem;
  color: var(--navy, #1b2430);
}

.ref-detail__products {
  margin-top: 40px;
}

.ref-detail__products h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--navy, #1b2430);
}

.ref-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.ref-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.ref-product:hover {
  border-color: #fdba74;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.ref-product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}

.ref-product strong {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--navy, #1b2430);
}

.ref-product span {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #e8421a);
}

@media (max-width: 960px) {
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ref-grid { grid-template-columns: 1fr; }
}
