/* =====================================================
   LUXURY PRODUCTS PAGE — Gelişmiş Ürünler CSS
   ===================================================== */

body {
  background: #FFFFFF !important;
}

/* ── Page Header ──────────────────────────────────── */
.lx-catalog-header {
  background: #FFFFFF;
  padding: 64px 40px 32px;
  border-bottom: none;
}
.lx-catalog-header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lx-catalog-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 4px;
}
.lx-catalog-header-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sort select */
.lx-sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lx-sort-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.lx-sort-select {
  appearance: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 170px;
  transition: all 0.2s;
}
.lx-sort-select:focus {
  outline: none;
  border-color: var(--ink);
}

/* View toggle */
.lx-view-toggle {
  display: flex;
  gap: 4px;
}
.lx-view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lx-view-btn.active,
.lx-view-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .lx-catalog-header { padding: 36px 16px 20px; }
  .lx-catalog-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lx-sort-wrap { width: 100%; justify-content: space-between; }
}

/* ── Layout: Sidebar + Products ─────────────────── */
.lx-catalog-body {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 40px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .lx-catalog-body {
    grid-template-columns: 1fr;
    padding: 20px 16px 64px;
    gap: 0;
  }
}

/* ── Filter Sidebar (Sabit, Titremeyen & Akıcı) ──── */
.lx-sidebar {
  position: sticky;
  top: 90px; /* Sabit pozisyon - kaymada sıçrama/titreme yapmaz */
  align-self: start;
  z-index: 25;
}

.lx-filter-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.lx-filter-mobile-toggle:hover { background: var(--cream); }

@media (max-width: 1024px) {
  .lx-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
  }
  .lx-filter-mobile-toggle { display: flex; }
  .lx-sidebar-content {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  }
  .lx-sidebar-content.open { display: block; }
}

/* Search input */
.lx-filter-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.2s;
}
.lx-filter-search:focus-within {
  border-color: var(--ink);
}
.lx-filter-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 14px;
  font-size: 0.87rem;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
}
.lx-filter-search input::placeholder { color: var(--muted); }
.lx-filter-search button {
  background: none;
  border: none;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lx-filter-search button:hover { color: var(--ink); }

/* Filter group */
.lx-filter-group { margin-bottom: 24px; }

.lx-filter-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Category pills */
.lx-cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lx-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.84rem;
  color: var(--muted);
  transition: all 0.2s;
  background: none !important;
}
.lx-cat-link:hover {
  color: var(--ink);
  padding-left: 4px;
}
.lx-cat-link.active {
  color: var(--ink);
  font-weight: 600;
}

/* Price range */
.lx-price-range-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}
.lx-price-slider {
  width: 100%;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--pct, 100%), var(--border) var(--pct, 100%), var(--border) 100%);
  outline: none;
  cursor: pointer;
  margin: 8px 0;
}
.lx-price-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  background: var(--ink);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm);
  cursor: grab;
}
.lx-price-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--ink);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: grab;
}

/* Filter apply btn */
.lx-filter-apply {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 6px;
}
.lx-filter-apply:hover { background: var(--ink-soft); transform: translateY(-1px); }

/* ── Products Area & Grid (Tamamen Eşit Boyutlar) ── */
.lx-products-area { min-height: 500px; }

.lx-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .lx-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 768px) {
  .lx-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
}

@media (max-width: 420px) {
  .lx-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
}

/* Birebir Eşit Kart & Görsel Standartları */
.lx-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

.lx-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Hafif Dikey Portre Oranı (3:4) */
  background: #F8F8F8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.lx-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Yakınlaştırılmış, dengeli ve ortalı ürün görünümü */
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.95);
}

.lx-product-card:hover .lx-product-img-wrap img {
  transform: scale(1.05);
  filter: saturate(1);
}

.lx-product-info {
  padding: 12px 2px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
}

.lx-product-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone-dark);
  min-height: 16px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.lx-product-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em; /* 2 Satır sabitleme - Her kartta milimetrik aynı boy */
  max-height: 2.6em;
  text-decoration: none;
}
.lx-product-name:hover { color: var(--stone-dark); }

.lx-product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: auto;
  display: block;
  padding-top: 4px;
}

/* Active filter chips */
.lx-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.lx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}
.lx-filter-chip-remove {
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lx-filter-chip-remove:hover { color: #ef4444; }

/* List view override */
.lx-product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}
.lx-product-grid.list-view .lx-product-card {
  flex-direction: row;
  gap: 24px;
}
.lx-product-grid.list-view .lx-product-img-wrap {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.lx-product-grid.list-view .lx-product-quick {
  position: static;
  transform: none;
  padding: 12px 0 0;
  background: none;
}
.lx-product-grid.list-view .lx-product-info {
  padding: 4px 0 0;
}
.lx-product-grid.list-view .lx-product-name { font-size: 1.15rem; min-height: auto; max-height: none; }

@media (max-width: 640px) {
  .lx-product-grid.list-view .lx-product-img-wrap { width: 120px; }
}

/* Pagination */
.lx-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 52px;
}
.lx-page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lx-page-btn:hover,
.lx-page-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
