/* =====================================================
   KADSU DESIGN — KATEGORİ VİTRİNİ
   Masaüstü: 4 kart
   Tablet / Telefon: Yatay kaydırmalı vitrin
   ===================================================== */

.kds-category-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.kds-category-card {
  position: relative;
  display: block;
  min-width: 0;
  height: clamp(560px, 50vw, 760px);
  overflow: hidden;
  background: #d9d4cd;
  color: #ffffff;
  text-decoration: none;
}

.kds-category-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms ease;
}

.kds-category-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.01) 30%,
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0.56) 100%
  );
  transition: background 300ms ease;
}

.kds-category-card-content {
  position: absolute;
  right: 24px;
  bottom: 34px;
  left: 24px;
  z-index: 2;
  text-align: center;
}

.kds-category-card h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--kds-font-heading);
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.4px;
}

.kds-category-card-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 10px auto 0;
  background: #ffffff;
  transition: width 220ms ease;
}

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

.kds-category-card:hover .kds-category-card-overlay,
.kds-category-card:focus-visible .kds-category-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.03) 30%,
    rgba(0, 0, 0, 0.16) 65%,
    rgba(0, 0, 0, 0.64) 100%
  );
}

.kds-category-card:hover .kds-category-card-line,
.kds-category-card:focus-visible .kds-category-card-line {
  width: 52px;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {
  .kds-category-showcase {
    display: flex;
    gap: 12px;
    padding: 0 16px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .kds-category-showcase::-webkit-scrollbar {
    display: none;
  }

  .kds-category-showcase {
    scrollbar-width: none;
  }

  .kds-category-card {
    flex: 0 0 42vw;
    height: 610px;
    scroll-snap-align: start;
  }

  .kds-category-card-content {
    right: 20px;
    bottom: 28px;
    left: 20px;
  }

  .kds-category-card h2 {
    font-size: clamp(34px, 5vw, 46px);
  }
}

/* =====================================================
   TELEFON
   ===================================================== */

@media (max-width: 700px) {
  .kds-category-showcase {
    gap: 10px;
    padding: 0 12px 12px;
    scroll-padding-left: 12px;
  }

  .kds-category-card {
    flex: 0 0 78vw;
    height: 500px;
  }

  .kds-category-card-content {
    right: 18px;
    bottom: 24px;
    left: 18px;
  }

  .kds-category-card h2 {
    font-size: 38px;
  }
}

@media (max-width: 420px) {
  .kds-category-card {
    flex-basis: 84vw;
    height: 470px;
  }

  .kds-category-card h2 {
    font-size: 34px;
  }
}
.kds-product-stock.is-in-stock {
  color: #2e7d32;
  font-weight: 600;
}

.kds-product-stock.is-out-of-stock {
  color: #d32f2f;
  font-weight: 700;
}
