/* ============================================================
   PELI WEBSITE – urunlerimiz.css
   ============================================================ */

/* ── Page Banner ─────────────────────────────────────────────── */
.page-banner {
  margin-top: var(--nav-h);
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-image: url('mdf.jpg'); /* default; JS üzerine yazar */
  display: flex;
  align-items: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
}

.banner-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}

.banner-crumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.banner-crumb a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.banner-crumb a:hover { color: #fff; }

/* ── Main Layout ──────────────────────────────────────────────── */
.products-main {
  max-width: 1200px;
  margin: 48px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--red);
  border-radius: 2px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.sidebar-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-text);
  padding: 15px 18px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  letter-spacing: 0.02em;
}

.sidebar-list { list-style: none; }

.sidebar-list li { border-bottom: 1px solid #f0f0f0; }
.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 0.84rem;
  color: var(--gray-text);
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
  position: relative;
  gap: 10px;
}

.sidebar-list a .scat-img {
  width: 34px;
  height: 26px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.sidebar-list a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--red);
  transition: width 0.2s;
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--red);
  background: #fff5f5;
  padding-left: 22px;
}

.sidebar-list a:hover::before,
.sidebar-list a.active::before { width: 3px; }

/* ── Products Content ─────────────────────────────────────────── */
.products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}

.products-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-text);
}

.products-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 6px;
}

.products-count {
  font-size: 0.78rem;
  color: var(--gray-mid);
}

.category-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 28px;
  min-height: 20px;
}

/* ── Product Grid ─────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ── Product Card ─────────────────────────────────────────────── */
.pg-card {
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}

.pg-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-5px);
}

.pg-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.pg-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pg-card:hover .pg-card-img {
  transform: scale(1.05);
}

.pg-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(204,26,26,0.0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-card:hover .pg-card-overlay {
  background: rgba(204,26,26,0.12);
}

.pg-card-body {
  padding: 16px 18px 14px;
}

.pg-card-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: #fff0f0;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

.pg-card-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--gray-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pg-card-desc {
  font-size: 0.775rem;
  color: var(--gray-mid);
  line-height: 1.65;
}

.pg-card-footer {
  padding: 11px 18px;
  border-top: 1px solid #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pg-card-btn {
  font-size: 0.7rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 6px 14px;
  border-radius: 1px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}

.pg-card-btn:hover {
  background: var(--red);
  color: #fff;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-mid);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state p { font-size: 0.9rem; }

/* Active nav label */
.active-nav { color: var(--red) !important; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .products-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .banner-content { padding: 0 20px; }
  .banner-title { font-size: 1.4rem; }
}
