.ces-homeProducts{
  padding: 80px 0;
  background: #fff;
}

.ces-homeProducts__head{
  text-align: center;
  margin-bottom: 34px;
}

.ces-homeProducts__title{
  margin: 0;
  color: #1e2430;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ces-homeProducts__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ces-homeProducts__item{
  min-width: 0;
}

.ces-homeProducts__card{
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.ces-homeProducts__card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
}

.ces-homeProducts__media{
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #ececec;
}

.ces-homeProducts__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.ces-homeProducts__card:hover .ces-homeProducts__media img{
  transform: scale(1.06);
}

.ces-homeProducts__placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #efefef 0%, #dddddd 100%);
}

.ces-homeProducts__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.36) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.ces-homeProducts__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  z-index: 2;
}

.ces-homeProducts__cardTitle{
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

/* reveal animasyon */
.js-reveal-up{
  opacity: 1;
  transform: none;
}

html.js .js-reveal-up{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js .js-reveal-up.is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px){
  .ces-homeProducts__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px){
  .ces-homeProducts{
    padding: 64px 0;
  }

  .ces-homeProducts__title{
    font-size: clamp(24px, 4vw, 36px);
  }

  .ces-homeProducts__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ces-homeProducts__card{
    border-radius: 18px;
  }

  .ces-homeProducts__content{
    padding: 14px 14px 16px;
  }

  .ces-homeProducts__cardTitle{
    font-size: 16px;
  }
}

@media (max-width: 575px){
  .ces-homeProducts{
    padding: 54px 0;
  }

  .ces-homeProducts__head{
    margin-bottom: 22px;
  }

  .ces-homeProducts__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ces-homeProducts__media{
    aspect-ratio: 1 / 1.08;
  }

  .ces-homeProducts__cardTitle{
    font-size: 15px;
  }
}