/* ================== PRODUCTS WITH SIDEBAR (FLUID / RESPONSIVE) ================== */
.products-with-sidebar {
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.prd-container {
  display: flex;
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
}

.products-layout {
  display: flex;
  width: 100%;
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
}

/* ================== SOL SIDEBAR ================== */
.products-sidebar {
  flex: 0 0 clamp(220px, 18vw, 280px);
  position: sticky;
  top: 5.625rem;
  align-self: flex-start;
}

.products-sidebar .sidebar-inner {
  background: var(--assistant-color);
  border-radius: 0.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--border-color);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
}

.products-sidebar .sidebar-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.products-sidebar .sidebar-title {
  font-family: var(--heading-font);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem;
}

.products-sidebar .category-count {
  font-size: 0.75rem;
  color: var(--font-color);
  font-weight: 500;
  opacity: 0.85;
}

/* Kategori Butonları */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
}

.category-item:hover,
.category-item.active {
  background: rgba(196, 154, 56, 0.08);
  border-color: var(--theme-color);
  transform: translateX(0.25rem);
}

.category-icon {
  flex: 0 0 1.25rem;
  color: var(--theme-color);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-name {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.02em;
}

.category-badge {
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  background: var(--bg-color);
  color: var(--theme-color);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0.65rem;
}

.category-item.active .category-badge {
  background: var(--theme-color);
  color: #1e1e1e;
}

.sidebar-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.filter-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem;
  background: rgba(196, 154, 56, 0.06);
  border-radius: 0.4rem;
}

.filter-info i {
  color: var(--theme-color);
  font-size: 0.875rem;
  margin-top: 0.1rem;
}

.filter-info p {
  font-size: 0.72rem;
  color: var(--font-color);
  line-height: 1.45;
  margin: 0;
}

/* ================== SAĞ İÇERİK (4 SÜTUN FLUID GRID) ================== */
.products-content {
  flex: 1;
  min-width: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  width: 100%;
}

/* ================== MİNİMAL ÜRÜN KARTI ================== */
.product-card {
  background: var(--assistant-color);
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.1);
}

/* Görsel Oranı: Sabit px yerine panoramik 16/10 oran */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-color);
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

/* Fancy Sayfası: Ürün görsellerini kırpmadan tam kare (1:1) oranında gösterim */
.page-fancy .product-card .product-image,
.fancy-products .product-card .product-image {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-fancy .product-card .product-image img,
.fancy-products .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.page-fancy .product-card:hover .product-image img,
.fancy-products .product-card:hover .product-image img {
  transform: scale(1.02);
}

/* Fancy Sayfası: Hero başlık arka plan görseli */
.fancy-header,
.page-fancy .header-pages {
  background-image: url('../img/product/about9.webp');
  background-size: cover;
  background-position: center;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: var(--theme-color);
  color: #1e1e1e;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0.25rem;
  z-index: 2;
}

/* ================== İKİLİ ÜRÜN KARTI (LUNA & HARMONY, VERONA & MONACO) ================== */
.product-card--twin {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.product-twin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(196, 154, 56, 0.08);
  border-bottom: 1px solid var(--border-color);
}

.product-twin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--theme-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-twin-title {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-twin-container {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
}

.product-twin-col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-twin-col:first-child {
  border-right: 1px solid var(--border-color);
}

.product-twin-col .product-image {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-twin-col .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(0.65rem, 1vw, 0.85rem);
}

.product-twin-footer {
  padding: 0.5rem clamp(0.75rem, 1vw, 1rem) clamp(0.75rem, 1vw, 1rem);
  width: 100%;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}

.product-twin-footer .product-btn {
  margin-top: 0;
  width: 100%;
}

/* Kart Bilgi Gövdesi */
.product-info {
  padding: clamp(0.75rem, 1.1vw, 1rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--heading-font);
  font-size: clamp(0.82rem, 0.95vw, 0.95rem);
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

/* Açıklama: En fazla 2 satır, fazlasını gizler */
.product-desc {
  font-size: 0.72rem;
  color: var(--font-color);
  line-height: 1.45;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}

/* Kompakt Özellik Alanı */
.product-features {
  margin-top: auto;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 0.4rem;
  border: 1px solid var(--border-color);
}

.feature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.feature-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-color);
}

.feature-label {
  font-size: 0.62rem;
  color: var(--font-color);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.8;
}

.feature-value {
  font-size: 0.7rem;
  color: var(--heading-color);
  font-weight: 700;
  text-align: right;
}

/* İncele Butonu */
.product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  background: var(--theme-color);
  color: #1e1e1e;
  border-radius: 0.4rem;
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-top: 0.65rem;
  transition: opacity 0.2s ease;
}

.product-btn:hover {
  opacity: 0.9;
  color: #1e1e1e;
}

.product-btn i {
  font-size: 0.65rem;
}

/* ================== RESPONSIVE MEDIA QUERIES ================== */

/* 1200px altı: Kartlar ezilmesin diye 3 sütun */
@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 991px altı: Sidebar üste geçer, grid 3 sütun devam eder */
@media (max-width: 991px) {
  .products-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .products-sidebar {
    flex: 1;
    width: 100%;
    position: relative;
    top: 0;
  }

  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-item {
    flex: 1 1 calc(33.333% - 0.5rem);
  }
}

/* 768px altı: Tablette 2 sütun */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-item {
    flex: 1 1 calc(50% - 0.35rem);
  }
}

/* 575px altı: Mobil */
@media (max-width: 575px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .product-info {
    padding: 0.55rem;
  }

  .product-desc {
    display: none; /* Mobilde dikey alanı kurtarmak için */
  }

  .category-item {
    flex: 1 1 100%;
  }

  .product-card--twin {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .product-twin-container {
    flex-direction: column;
  }

  .product-twin-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media print {
  .products-sidebar,
  .product-btn {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}