/* produkte.css - index.css tasarım diliyle uyumlu */

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.page-hero.compact{
  background: #0b1220;
  border-bottom: 1px solid var(--border);
}
.page-hero.compact .page-hero-content{
  padding: 34px 0 30px;
  color: #fff;
}
.page-hero.compact .hero-kicker{
  color: rgba(255,255,255,.8);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: .02em;
}
.page-hero.compact h1{
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}
.page-hero.compact .hero-lead{
  margin: 0;
  max-width: 70ch;
  color: rgba(255,255,255,.85);
}

/* Toolbar */
.products-toolbar{
  padding: 14px 0;
}
.toolbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search input{
  width: min(420px, 92vw);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  outline: none;
  font-weight: 600;
}
.search input:focus{
  border-color: rgba(11,87,208,.35);
  box-shadow: 0 0 0 4px rgba(11,87,208,.12);
}

.chips{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor:pointer;
}
.chip:hover{
  background: rgba(11,87,208,.08);
}
.chip.is-active{
  background: rgba(11,87,208,.12);
  border-color: rgba(11,87,208,.22);
  color: var(--brand);
}

/* Grid */
.products{
  padding: 10px 0 46px;
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction: column;
  min-height: 100%;
}

.thumb{
  position: relative;
  height: 170px;
  background: rgba(11,87,208,.08);
}
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.thumb-fallback{
  display:none;
  height:100%;
  width:100%;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing:.08em;
  font-size: 2rem;
  color: rgba(17,24,39,.55);
}
.thumb.fallback .thumb-fallback{
  display:flex;
}

.body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  background: rgba(11,87,208,.12);
  color: var(--brand);
  border: 1px solid rgba(11,87,208,.18);
}
.meta{
  color: rgba(17,24,39,.6);
  font-weight: 800;
  font-size: .85rem;
}

.name{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.desc{
  margin: 0;
  color: rgba(17,24,39,.78);
}

.facts{
  list-style:none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.facts li{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  color: rgba(17,24,39,.75);
}
.facts b{ color: var(--text); }

.actions{
  margin-top: auto;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn.small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .9rem;
}

.products-note{
  margin: 14px 0 0;
  color: rgba(17,24,39,.65);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .product-grid{ grid-template-columns: 1fr; }
  .thumb{ height: 180px; }
}


/* =========================
   PRODUCT MODAL (BIGGER IMAGE)
   ========================= */

/* backdrop */
.pmodal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
}

/* modal box */
.pmodal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.pmodal-card{
  width: min(1100px, calc(100% - 20px));
  max-height: min(84vh, 900px);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 30px 90px rgba(10,12,18,.25);
}

/* içerik: solda görsel büyük, sağda info */
.pmodal-body{
  display: grid;
  grid-template-columns: 1.35fr 1fr; /* görseli büyüt */
  gap: 0;
  max-height: min(84vh, 900px);
}

/* sol görsel alan */
.pmodal-media{
  position: relative;
  background: #0b1220;
  min-height: 420px;
}

/* ASIL BÜYÜTME */
.pmodal-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ürün kesilmesin; daha büyük görünür */
  display: block;
  transform: scale(1.02);
}

/* sağ info alanı */
.pmodal-info{
  padding: 18px 18px 18px;
  overflow: auto;            /* metin uzunsa scroll burada */
}

/* kapatma butonu */
.pmodal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.30);
  color: #fff;
  cursor: pointer;
}

/* responsive: mobilde alt alta */
@media (max-width: 820px){
  .pmodal-card{ max-height: 88vh; }
  .pmodal-body{
    grid-template-columns: 1fr;
  }
  .pmodal-media{
    min-height: 280px;
    max-height: 42vh;
  }
  .pmodal-info{
    max-height: 46vh;
  }
}
/* =========================
   MODAL (big image)
   ========================= */
body.is-modal-open{ overflow: hidden; }

.pm-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
}

.pm{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.pm-card{
  width: min(1200px, calc(100% - 20px));
  max-height: min(88vh, 980px);
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 30px 90px rgba(10,12,18,.25);
  position: relative;
}

.pm-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.85);
  cursor: pointer;
  font-weight: 900;
}

.pm-media{
  background: #0b1220;
  display: grid;
  place-items: center;
  min-height: 520px; /* GÖRSEL ALANI BÜYÜK */
  padding: 14px;
}

.pm-media img{
  width: 100%;
  height: min(76vh, 780px); /* BÜYÜK GÖRSEL */
  object-fit: contain;      /* kırpma yok */
  display: block;
  cursor: zoom-in;
}

.pm-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pm-title{
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}
.pm-desc{
  margin: 0 0 14px;
  color: rgba(17,24,39,.78);
}

.pm-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* =========================
   IMAGE LIGHTBOX (full)
   ========================= */
.pmz{
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}
.pmz-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,12,18,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pmz-img{
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
/* hidden attribute'u HER ZAMAN kapatsın */
[hidden] { display: none !important; }

/* IMAGE ONLY modal */
.pm-card.pm-card--img{
  width: min(1200px, calc(100% - 20px));
  max-height: min(90vh, 980px);
}

.pm-media.pm-media--only{
  background:#0000000e;
  display:grid;
  place-items:center;
  padding: 14px;
  min-height: min(70vh, 820px);
}

.pm-media.pm-media--only img{
  width: 100%;
  height: min(86vh, 900px);
  object-fit: contain;
  display:block;
  cursor: zoom-in;
}

/* mobil */
@media (max-width: 860px){
  .pm-media.pm-media--only{
    min-height: 52vh;
    padding: 10px;
  }
  .pm-media.pm-media--only img{
    height: min(78vh, 760px);
  }
}