/*
 * Ortak ürün kartı (sellzy-product-card) — mobil grid/slider düzeni.
 */

.sellzy-product-card {
  min-width: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.sellzy-product-card .product-image-container {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
}

.sellzy-product-card .sellzy-product-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  pointer-events: none;
  max-width: calc(100% - 1.5rem);
}

.sellzy-product-card .sellzy-product-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sellzy-product-card .sellzy-product-card-badge--discount {
  background: var(--color-primary, #088178);
  color: #fff;
}

.sellzy-product-card .sellzy-product-card-badge--preorder {
  background: #f59e0b;
  color: #fff;
}

.sellzy-product-card .sellzy-product-card-badge--stock {
  background: #6b7280;
  color: #fff;
}

.sellzy-product-card .sellzy-product-card-badge__short {
  display: none;
}

@media (max-width: 639.98px) {
  .sellzy-product-card .sellzy-product-card-badges {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .sellzy-product-card .sellzy-product-card-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
  }

  .sellzy-product-card .sellzy-product-card-badge--discount .sellzy-product-card-badge__full {
    display: none;
  }

  .sellzy-product-card .sellzy-product-card-badge--discount .sellzy-product-card-badge__short {
    display: inline;
  }
}

.sellzy-product-card .product-content {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sellzy-product-card .btn-section {
  margin-top: auto;
  width: 100%;
  min-width: 0;
}

/* Başlık alanı: 2 satır için sabit yükseklik — aynı satırdaki kartlar hizalı */
.sellzy-product-card .sellzy-urun-baslik {
  min-height: 2.75rem;
}

/* Mobil: daha kompakt padding ve tipografi */
@media (max-width: 639.98px) {
  .sellzy-product-card.product-card-1 {
    padding: 0.75rem !important;
  }

  .sellzy-product-card .product-image {
    margin-bottom: 0.75rem !important;
  }

  .sellzy-product-card .rating-section > div:first-child {
    width: 72px !important;
    height: 14px !important;
  }

  .sellzy-product-card .rating-section > div:first-child > div {
    height: 14px !important;
  }

  .sellzy-product-card .sellzy-urun-baslik a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .sellzy-product-card .current-price {
    font-size: 0.875rem !important;
  }

  .sellzy-product-card .btn-section .btn {
    font-size: 0.75rem !important;
    line-height: 1.25rem !important;
    padding: 0.375rem 0.75rem !important;
  }

  .sellzy-product-card .btn-section .btn .hgi {
    font-size: 1rem !important;
  }
}

/* Slick slider: görünür satırdaki kartlar eşit yükseklik (kategori grid ile aynı mantık) */
.sellzy-slider.slick-initialized:not(.home-five-hero-slider):not(.sellzy-en-cok-satan-urun-slider):not(.product-details-big-slider-2):not(.product-details-small-slider-2):not(.sellzy-brand-logo-slider) .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.sellzy-slider.slick-initialized:not(.home-five-hero-slider):not(.sellzy-en-cok-satan-urun-slider):not(.product-details-big-slider-2):not(.product-details-small-slider-2):not(.sellzy-brand-logo-slider) .slick-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.sellzy-slider.slick-initialized:not(.home-five-hero-slider):not(.sellzy-en-cok-satan-urun-slider):not(.product-details-big-slider-2):not(.product-details-small-slider-2):not(.sellzy-brand-logo-slider) .slick-slide > .sellzy-slider-slide-cell,
.sellzy-slider.slick-initialized:not(.home-five-hero-slider):not(.sellzy-en-cok-satan-urun-slider):not(.product-details-big-slider-2):not(.product-details-small-slider-2):not(.sellzy-brand-logo-slider) .slick-slide > div {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 100% !important;
  height: 100% !important;
}

.sellzy-slider.slick-initialized:not(.home-five-hero-slider):not(.sellzy-en-cok-satan-urun-slider):not(.product-details-big-slider-2):not(.product-details-small-slider-2):not(.sellzy-brand-logo-slider) .slick-slide .sellzy-product-card {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Haftalık popüler grid (Tailwind grid sınıfları derlenmemiş olabilir) */
.sellzy-haftalik-populer-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sellzy-haftalik-populer-grid {
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .sellzy-haftalik-populer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .sellzy-haftalik-populer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1536px) {
  .sellzy-haftalik-populer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.sellzy-haftalik-populer-grid > * {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sellzy-haftalik-populer-grid .sellzy-product-card {
  flex: 1 1 auto;
}

/* En çok satan / en yüksek puanlı sütunları */
.sellzy-en-cok-satan-urun-slider .slick-slide {
  height: auto;
}

.sellzy-en-cok-satan-urun-slider .slick-slide > div {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  height: 100%;
}

/* Mobil slider responsive */
body.sellzy-tema-scope .sellzy-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.sellzy-tema-scope .sellzy-slider.slick-initialized .slick-list {
  overflow: hidden;
}

@media (max-width: 1023.98px) {
  body.sellzy-tema-scope .home-four-picks-slider,
  body.sellzy-tema-scope .home-one-top-rate-slider,
  body.sellzy-tema-scope .home-one-top-items-slider,
  body.sellzy-tema-scope .premium-pack-slider,
  body.sellzy-tema-scope .yaninda-urunler-slider,
  body.sellzy-tema-scope .related-products-slider {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
  }

  body.sellzy-tema-scope .premium-pack-slider {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.sellzy-tema-scope .sellzy-slider-slide-cell {
    margin-left: 0.375rem !important;
    margin-right: 0.375rem !important;
  }

  body.sellzy-tema-scope .home-four-picks-slider .slick-slide > div,
  body.sellzy-tema-scope .sellzy-en-cok-satan-urun-slider .slick-slide > div {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
  }
}

@media (max-width: 639.98px) {
  body.sellzy-tema-scope .sellzy-slider-slide-cell {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
  }
}

@media (max-width: 767.98px) {
  body.sellzy-tema-scope .home-four-picks-slider-nav .slider-btn,
  body.sellzy-tema-scope .premium-pack-nav .slider-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
  }
}
