.products-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
  height: 1080px;
}

.products-section__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.products-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.products-section__title {
  font-size: 96px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 60px 0;
  text-transform: uppercase;
  color: var(--color-blue);
  position: relative;
}

.products-section__title::after {
  content: url("../images/bubbles.svg");
  position: absolute;
  top: 0;
  left: 84%;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Products Slider */
.products-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 90px;
  width: 100%;
  box-sizing: border-box;
}

.products-slider__nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 10;
}
.products-slider__nav img {
  width: 100%;
  height: 100%;
}

.slide-arrow--left {
  transform: rotate(180deg);
}

.slide-arrow--right {
  transform: rotate(0deg);
}

.products-slider__wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.products-slider__track,
.products-slider__track.swiper-wrapper {
  display: flex;
  gap: 0;
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
  box-sizing: border-box;
}

.products-slider__slide,
.products-slider__slide.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto;
  width: 100%;
}

.products-slider__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Desktop grid - her slide'da 1 sütun x 2 satır (üstte 1, altta 1 ürün) */
.products-slider__grid--desktop {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
}

/* Mobil grid - tek sütun */

/* Products Grid Section (Ürünlerimiz sayfası için - slider olmadan) */
.products-grid-section {
  margin: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Products Grid Responsive - Sadece grid sistemi */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .products-grid-section {
    margin: 40px 0;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid-section {
    margin: 30px 0;
  }
}

.products-grid .product-card {
  display: none;
}

.products-grid .product-card.active {
  display: flex;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 240px;
  max-height: 240px;
  height: auto;
  --webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.product-card:hover {
  background-color: var(--color-gray-light);
  border-color: var(--color-blue);
}

.product-card:hover .product-card__image {
  --webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-color: #cbc7c7;
}

.product-card__share {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.product-card__share:hover {
  opacity: 1;
}

.product-card__share img {
  width: 100%;
  height: 100%;
}

.product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 130px;
  box-sizing: border-box;
}

.product-card__header {
  margin-bottom: 8px;
}

.product-card__brand,
.product-card__category {
  margin-bottom: 8px;
}

.product-card__brand img,
.product-card__category img {
  height: 24px;
  width: auto;
  object-fit: cover;
}

.product-card__title {
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-card__title-dot {
  color: var(--color-blue);
}

.product-card__subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #333;
  margin: 0 0 10px 0;
}

.product-card__desc {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  line-height: 1.5;
  margin: 0 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__button {
  padding: 10px 20px;
  border: 1.5px solid var(--color-blue);
  background: transparent;
  color: var(--color-blue);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.product-card__button:hover {
  background: var(--color-blue);
  color: white;
}

.product-card__image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  z-index: 1;
  border: 1px solid transparent;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* View All Button */
.products-section__view-all {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.products-view-all-button {
  min-height: 56px;
  padding: 0 115px;
  background-color: var(--color-blue);
  color: white;
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty State */
.products-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  margin-top: 120px;
  backdrop-filter: blur(10px);
}

.products-empty p {
  margin: 0;
  font-family: var(--font-family-primary);
}

/* Loader - Grid'in DIŞINDA, bağımsız */
.products-grid-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin: 20px 0 40px 0;
  width: 100%;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* LOADER GİZLEME CLASS'I */
.products-grid-loader--hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.products-grid-loader img {
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Error Message */
.products-error-message {
  text-align: center;
  padding: 20px;
  color: var(--color-gray-dark);
  font-size: 16px;
  margin: 20px 0;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
}

/* Responsive */
/* Desktop slide'ları mobilde gizle, mobil slide'ları desktop'ta gizle */
@media (max-width: 1023px) {
  .products-slider__slide--desktop {
    display: none !important;
  }

  .products-slider__slide--mobile {
    display: flex !important;
  }

  .products-section {
    height: auto;
    min-height: 600px;
    margin: 20px 0;
  }

  .products-section__title {
    font-size: 32px;
    margin: 0 0 30px 0;
    line-height: 1.3;
  }

  .products-slider {
    margin-top: 40px;
    gap: 0;
    width: 100%;
  }

  .products-slider__wrapper {
    width: 100%;
    overflow: hidden;
  }

  .products-slider__track {
    width: 100%;
  }

  .products-slider__slide,
  .products-slider__slide.swiper-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Nav buttonları mobilde gizle */
  .products-slider__nav {
    display: none !important;
  }

  .product-card--mobile {
    width: 100%;
    max-width: 320px;
    height: 268px;
    min-height: 268px;
    max-height: 268px;
    padding: 20px;
    flex-direction: row;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .product-card--mobile .product-card__content {
    padding-right: 120px;
    flex: 1;
    min-width: 0;
  }

  .product-card--mobile .product-card__image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }

  .product-card--mobile .product-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
  }

  .product-card--mobile .product-card__desc {
    font-size: 13px;
    font-weight: 300;
    color: #666;
    line-height: 1.5;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card--mobile .product-card__button {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    border-radius: 24px;
  }

  .product-card--mobile .product-card__share {
    width: 48px;
    height: 48px;
    top: 16px;
    right: 16px;
  }

  .products-slider__slide--mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    box-sizing: border-box;
  }

  .products-slider__grid--mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .products-section__view-all {
    margin-top: 30px;
  }

  .products-view-all-button {
    min-height: 40px;
    padding: 0 60px;
    font-size: 16px;
  }

  .products-empty {
    margin-top: 60px;
    padding: 40px 20px;
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .products-section__title::after {
    content: url("../images/bubbles-mobile.svg") !important;
    right: -20px;
    top: 75px;
  }
}

@media (min-width: 768px) {
  .products-slider__slide--desktop {
    display: flex !important;
  }

  .products-slider__slide--mobile {
    display: none !important;
  }

  /* Desktop'ta Swiper slide genişliğini Swiper'ın kendi hesaplamasına bırak */
  .products-slider__slide--desktop.swiper-slide {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-section {
    height: auto;
    min-height: 900px;
    margin: 30px 0;
  }

  .products-section__title {
    font-size: 48px;
    margin: 0 0 50px 0;
  }

  .products-slider {
    margin-top: 60px;
  }

  .products-slider__grid--desktop {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    padding: 0;
  }

  .products-slider__slide--desktop,
  .products-slider__slide--desktop.swiper-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .product-card {
    min-height: 220px;
    max-height: 220px;
  }

  .products-view-all-button {
    padding: 0 80px;
    font-size: 16px;
  }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .products-section {
    height: auto;
    min-height: 1000px;
  }

  .products-section__title {
    font-size: 64px;
    margin: 0 0 50px 0;
  }

  .products-slider__grid--desktop {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 18px;
    max-width: 100%;
  }

  .product-card {
    min-height: 230px;
    max-height: 230px;
    padding: 18px;
  }

  .product-card__content {
    padding-right: 120px;
  }

  .product-card__image {
    width: 110px;
  }
}

/* Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .products-section__title {
    font-size: 80px;
  }

  .products-slider__grid {
    max-width: 1300px;
  }
}
