/* ============================================================
   DİĞER ÜRÜNLERİMİZ SAYFASI CSS
   Header ve footer stilleri header-footer.css'ten gelir
   ============================================================ */

body {
  margin: 0;
  padding: 0;
}

/* ============================================================
   SECTION 1: HERO
   Sol %36  → #004175 düz mavi + başlık (yaklaşık 700px / 1920px)
   Sağ %64  → diger-urunler-banner.png + gradient kaplama
   ============================================================ */
.products-hero {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: 93px; /* header yüksekliği */
  height: 339px;
  overflow: hidden;
}

/* Sol panel */
.products-hero__left {
  flex: 0 0 36%;
  background: #004175;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.products-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* Sağ panel */
.products-hero__right {
  flex: 1;
  background-color: #f8f9fa; 
  position: relative;
  overflow: hidden;
}

/* Gradients overlay */
.products-hero__right::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 55.54%
    ),
    linear-gradient(0deg, rgba(0, 65, 117, 0.2), rgba(0, 65, 117, 0.2));
  pointer-events: none;
  z-index: 2;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

@media (max-width: 768px) {
  .products-hero {
    flex-direction: column;
    height: auto;
    margin-top: 70px;
  }
  .products-hero__left {
    flex: none;
    padding: 40px 28px;
    height: 160px;
  }
  .products-hero__right {
    display: none;
  }
}

/* ============================================================
   SECTION 2: KAYAN MARKALAR (MARQUEE)
   Anasayfa style kopyası
   ============================================================ */
.products-marquee-section {
  background: #ffffff;
  padding: 40px 0; /* Paddingler tasarımda daha dar gibi */
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #ededed; /* İhtiyaca göre, ürünlerin üstünde duruyor */
}

/* Marquee kapsayıcı */
.brands-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

/* Sonsuz kayma animasyonu */
@keyframes scrollBrands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* İçerik 2 katına çıktığı için %50 kaydırılır */
}

.brands-marquee {
  display: flex;
  align-items: flex-end; /* Alt kısımdan hizalama, metinler aynı hizada olsun diye */
  width: max-content;
  animation: scrollBrands 35s linear infinite; /* 35s kayma hızı */
}

/* Marquee duraklatma */
.brands-marquee:hover {
  animation-play-state: paused;
}

/* Kart stili - boyutlar büyütüldü */
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 160px;
  padding: 0 40px;
  box-sizing: content-box;
}

.brand-item img {
  width: 140px; /* Büyütüldü */
  height: 70px; /* Büyütüldü */
  object-fit: contain;
}

.brand-item span {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6c6c6c;
  text-align: center;
  line-height: 1.4;
  height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ============================================================
   SECTION 3: ÜRÜN KATEGORİ & LİSTE (GRID)
   ============================================================ */
.products-catalog-section {
  background: #ffffff;
  padding: 60px 0 120px 0;
  width: 100%;
}

.products-catalog-inner {
  max-width: 1850px; /* Sidebar (366) + Gap (57) + Grid (1412) */
  margin: 0 auto;
  padding: 0 43px; /* Figma left: 43px */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 57px;
}

/* SOL: KATEGORİ SİDEBAR */
.products-sidebar {
  flex: 0 0 366px;
  background: #ffffff;
  border-right: 1.2px solid #f3f5f7;
  border-radius: 7.5px;
  padding: 24px; /* İçerik boşluğu */
  box-sizing: border-box;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sidebar-actions {
  display: flex;
  align-items: center;
}

.btn-filter {
  background: #004175;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 65, 117, 0.15);
}

.btn-filter:hover {
  background: #00569d;
  box-shadow: 0 6px 16px rgba(0, 65, 117, 0.25);
  transform: translateY(-1px);
}

.btn-filter:active {
  transform: translateY(0);
}

.sidebar-footer-actions {
  margin-top: 16px;
  padding-top: 8px;
}

.sidebar-filters-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Scrollbar adjustment */
.sidebar-filters-scroll::-webkit-scrollbar {
  width: 4px;
}
.sidebar-filters-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.sidebar-filters-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.btn-clear {
  background: #f3f5f7;
  border: none;
  border-radius: 124px;
  padding: 6px 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #555c63;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  background: #e2e5e9;
  color: #121212;
}

.sidebar-divider {
  border: none;
  border-top: 1.2px solid #dcdcdc;
  margin: 20px 0;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 16px;
}

.filter-group-header h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 22.3px;
  color: #121212;
  margin: 0;
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-icon.open {
  transform: rotate(180deg);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filter-item input {
  display: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 1.2px solid rgba(18, 18, 18, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.filter-item.checked .custom-checkbox {
  background: #004175;
  border-color: #004175;
}

.custom-checkbox svg {
  display: none;
  width: 14px;
  height: 14px;
}

.filter-item.checked .custom-checkbox svg {
  display: block;
}

.filter-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 19.8px;
  color: rgba(18, 18, 18, 0.6);
}

.filter-item.checked .filter-text {
  color: #121212;
}

.view-all {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 17.3px;
  color: #3d5278;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

/* SAĞ: ÜRÜN GRİDİ */
.products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.product-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.product-card__img-box {
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    border: 1px solid #ebebeb;
}

    .product-card__img-box, .product-card__img-box img {
        aspect-ratio: 1/0.8;
        object-fit: contain;
    }

.product-card__img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000000;
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-catalog-inner {
    flex-direction: column;
    gap: 40px;
  }
  .products-sidebar {
    width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1.2px solid #f3f5f7;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGINATION — MAVİ TEMA
   ============================================================ */
.nimbus-pagination {
  width: 100%;
  padding-top: 60px;
  display: flex;
  justify-content: center;
}

.nimbus-pagination__inner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nimbus-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #004175;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: transparent;
}

.nimbus-pagination__arrow:hover:not(.disabled) {
  background: #e8f0f7;
  color: #004175;
}

.nimbus-pagination__arrow.disabled {
  color: #bcc8d4;
  pointer-events: none;
  cursor: default;
}

.nimbus-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.nimbus-pagination__page:hover:not(.active) {
  background: #e8f0f7;
  color: #004175;
}

.nimbus-pagination__page.active {
  background: #004175;
  color: #ffffff;
  font-weight: 600;
  pointer-events: none;
}

.nimbus-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  color: #4a5568;
}
