/* =====================================================
   KADSU DESIGN — ÜRÜN VİTRİNLERİ
   Yeni Koleksiyon + Çok Satanlar
   ===================================================== */

.kds-new-collection,
.kds-best-seller {
  width: 100%;
  padding: 26px 0 30px;
  overflow: hidden;
  background: #ffffff;
}

/* BAŞLIKLAR */

.kds-new-collection-header,
.kds-best-seller-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.kds-new-collection-header::before,
.kds-new-collection-header::after,
.kds-best-seller-header::before,
.kds-best-seller-header::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #bdb8b1;
}

.kds-new-collection-header h2,
.kds-best-seller-header h2 {
  flex: 0 0 auto;
  margin: 0;

  color: #111111;
  font-family: var(--kds-font-heading);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* =====================================================
   MASAÜSTÜ — 4 ÜRÜN
   ===================================================== */

.kds-product-grid,
.kds-best-seller-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;

  width: 100%;
  padding: 0 12px;
}

.kds-product-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
}

.kds-product-card-link {
  display: block;
  color: #111111;
  text-decoration: none;
}

.kds-product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6f5f3;
}

.kds-product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms ease;
}

.kds-product-card:hover .kds-product-image,
.kds-product-card:focus-within .kds-product-image {
  transform: scale(1.025);
}

/* ÜRÜN BİLGİLERİ */

.kds-product-info {
  min-width: 0;
  padding: 11px 4px 14px;
}

.kds-product-title-line {
  display: block;
  margin: 0 0 7px;
  overflow: hidden;

  color: #555555;
  font-family: var(--kds-font-body);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kds-product-title-line strong {
  color: #111111;
  font-weight: 600;
}

.kds-product-title-line span {
  font-weight: 400;
}

.kds-product-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
}

.kds-product-stock {
  flex: 0 0 auto;
  font-family: var(--kds-font-body);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.kds-product-stock.is-in-stock {
  color: #416b43;
}

.kds-product-stock.is-out-of-stock {
  color: #984040;
}

.kds-product-price {
  flex: 0 0 auto;

  color: #111111;
  font-family: var(--kds-font-body);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

/* ALT KEŞFET */

.kds-showcase-footer {
  display: flex;
  justify-content: center;
  padding: 18px 16px 0;
}

.kds-section-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding-bottom: 5px;
  border-bottom: 1px solid #111111;

  color: #111111;
  font-family: var(--kds-font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
}

/* =====================================================
   TABLET — YATAY KAYDIRMALI
   ===================================================== */

@media (max-width: 1024px) {
  .kds-product-grid,
  .kds-best-seller-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;

    padding: 0 16px 10px;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .kds-product-grid::-webkit-scrollbar,
  .kds-best-seller-grid::-webkit-scrollbar {
    display: none;
  }

  .kds-product-card {
    flex: 0 0 42vw;
    scroll-snap-align: start;
  }
}

/* =====================================================
   TELEFON — YATAY KAYDIRMALI
   ===================================================== */

@media (max-width: 600px) {
  .kds-new-collection,
  .kds-best-seller {
    padding: 20px 0 24px;
  }

  .kds-new-collection-header,
  .kds-best-seller-header {
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 14px;
  }

  .kds-new-collection-header h2,
  .kds-best-seller-header h2 {
    font-size: 27px;
  }

  .kds-product-grid,
  .kds-best-seller-grid {
    gap: 10px;
    padding: 0 12px 8px;
    scroll-padding-left: 12px;
  }

  .kds-product-card {
    flex: 0 0 72vw;
  }

  .kds-product-info {
    padding: 10px 2px 12px;
  }

  .kds-product-title-line {
    font-size: 10px;
  }

  .kds-product-bottom {
    gap: 14px;
  }

  .kds-product-stock {
    font-size: 8px;
  }

  .kds-product-price {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .kds-product-card {
    flex-basis: 78vw;
  }

  .kds-new-collection-header h2,
  .kds-best-seller-header h2 {
    font-size: 24px;
  }
}
