/* Otomotiv ürün kartları; dört sütun ve mevcut fotoğraf kontrolleri. */
#otomotiv.product-showcase {
  background: #f5f6f7;
}

#otomotiv .product-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 20px;
  row-gap: 24px;
  padding: 5px 4px 18px;
}

#otomotiv .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #e7e9ed;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(17 24 39 / 5%);
}

#otomotiv .product-media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #fff;
  border-radius: 10px;
}

#otomotiv .product-name {
  margin: 17px 0 18px;
  color: #30343b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#otomotiv .product-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 10px;
  border-radius: 10px;
  background: #e7e9ed;
  color: #30343b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background .2s;
}

#otomotiv .product-details:hover {
  background: #dce0e5;
}

#otomotiv .product-details:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

@media (min-width: 1600px) {
  #otomotiv .product-name {
    font-size: 20px;
  }
}

@media (max-width: 1100px) {
  #otomotiv .product-card {
    padding: 14px;
  }

  #otomotiv .product-name {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  #otomotiv .product-row {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    column-gap: 16px;
    row-gap: 20px;
  }

  #otomotiv .product-card {
    padding: 12px;
  }
}

/* Otomotiv kataloğu; ana sayfanın mevcut kart düzeni korunur. */
.product-category {
  display: none;
}

body[data-category="auto"] #otomotiv.product-showcase {
  background: #fff;
}

body[data-category="auto"] #otomotiv .product-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 4px 0 18px;
}

body[data-category="auto"] #otomotiv .product-card {
  position: relative;
  padding: 14px;
  border: 1px solid #e7e9ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

body[data-category="auto"] #otomotiv .product-card:hover {
  border-color: #d3d7dd;
  box-shadow: 0 5px 18px rgb(17 24 39 / 5%);
}

body[data-category="auto"] #otomotiv .product-media {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f7f8fa;
}

body[data-category="auto"] #otomotiv .product-photo {
  padding: 12px 8px 36px;
}

body[data-category="auto"] #otomotiv .product-category {
  display: block;
  margin-top: 16px;
  color: #8a9099;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
}

body[data-category="auto"] #otomotiv .product-name {
  margin: 7px 0 18px;
  color: #202329;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body[data-category="auto"] #otomotiv .product-details {
  min-height: 44px;
  border-radius: 4px;
  background: #202329;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}

body[data-category="auto"] #otomotiv .product-details:hover {
  background: var(--red);
  color: #fff;
}

body[data-category="auto"] #otomotiv .photo-controls {
  left: 4px;
  right: 4px;
  gap: 2px;
}

body[data-category="auto"] #otomotiv .photo-prev,
body[data-category="auto"] #otomotiv .photo-next {
  width: 28px;
  height: 30px;
  font-size: 16px;
}

body[data-category="auto"] #otomotiv .photo-dot {
  width: 16px;
  height: 28px;
}

@media (max-width: 760px) {
  body[data-category="auto"] #otomotiv .product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-category="auto"] #otomotiv .product-card {
    padding: 10px;
  }

  body[data-category="auto"] #otomotiv .product-photo {
    padding: 10px 4px 34px;
  }

  body[data-category="auto"] #otomotiv .product-name {
    font-size: 13px;
    margin-bottom: 14px;
  }

  body[data-category="auto"] #otomotiv .product-category {
    font-size: 9px;
    letter-spacing: .015em;
  }

  body[data-category="auto"] #otomotiv .product-details {
    font-size: 12px;
    padding-inline: 6px;
  }
}
