/* ============================================================
   URUNLER.CSS – Palet Örnekleri Sayfası
   ============================================================ */

/* ---------- Aktif nav linki ---------- */
.nav__active {
  color: var(--brown) !important;
  background: var(--cream) !important;
  border-radius: 8px;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, var(--brown-light) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--amber-light); }
.breadcrumb span { color: rgba(255,255,255,.4); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   FİLTRE ÇUBUĞU
   ============================================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 70px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(61,43,31,.06);
}
.filter-bar__inner {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1160px;
  margin: 0 auto;
}
.filter-bar__inner::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover {
  border-color: var(--amber);
  color: var(--brown);
}
.filter-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

/* ============================================================
   GALERİ
   ============================================================ */
.gallery-section {
  padding: 64px 0 80px;
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Gizleme animasyonu */
.gallery-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.gallery-item.hidden {
  display: none;
}

/* Resim wrap */
.gallery-item__img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--cream-dark);
}
.gallery-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover .gallery-item__img-wrap img {
  transform: scale(1.08);
}

/* Hover overlay */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,43,31,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__zoom {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

/* Kart bilgi alanı */
.gallery-item__info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-item__cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  align-self: flex-start;
}
.cat--ahsap  { background: rgba(160,82,45,.12); color: var(--brown-light); }
.cat--ikinci { background: rgba(34,197,94,.12);  color: #16a34a; }
.cat--plastik{ background: rgba(37,99,235,.12);  color: #2563eb; }

.gallery-item__info h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.3;
}
.gallery-item__info p {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ============================================================
   ÜRÜN TİPLERİ
   ============================================================ */
.product-types {
  padding: 80px 0;
  background: var(--white);
}
.product-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-type-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px 36px;
  border: 2px solid transparent;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-type-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-type-card--featured {
  background: linear-gradient(145deg, var(--brown) 0%, var(--brown-dark) 100%);
  border-color: var(--amber);
}
.product-type-card--featured .product-type-card__header h3,
.product-type-card--featured .product-type-card__list li { color: var(--white); }
.product-type-card--featured .product-type-card__list .bullet { color: var(--amber-light); }

.product-type-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-type-card__icon { font-size: 2.2rem; }
.product-type-card__header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
}
.product-type-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-type-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.bullet {
  color: var(--amber);
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============================================================
   LİGHTBOX
   ============================================================ */
.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,10,5,.88);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open,
.lightbox.open + .lightbox__backdrop,
.lightbox__backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__content {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__content img {
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.lightbox__caption {
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox__caption strong { font-size: 1.05rem; }
.lightbox__caption span   { font-size: .88rem; color: rgba(255,255,255,.65); }

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
  line-height: 1;
}
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-types__grid { grid-template-columns: 1fr; }
  .gallery-item__img-wrap { height: 170px; }
  .lightbox__nav { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item__img-wrap { height: 140px; }
  .gallery-item__info { padding: 12px 12px 14px; }
  .gallery-item__info h3 { font-size: .85rem; }
}
