*{ box-sizing:border-box; }
:root{
  --bg:#0b0b0f;
  --card:#141420;
  --card2:#101019;
  --border:#242432;
  --text:#f3f3f7;
  --muted:#bdbdd3;
  --accent:#ffb020;
  --accent2:#7c3aed;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}
a{ color:inherit; text-decoration:none; }
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 14px 88px; /* bottom nav boşluğu */
}

/* Top brand */
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.2px;
}
.brand .logo{
  width:34px; height:34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255,176,32,.9), rgba(124,58,237,.9));
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
}
.brand .title{ line-height:1.05; }
.brand .title b{ display:block; font-size:18px; }
.brand .title span{ display:block; font-size:12px; color: var(--accent); font-weight:800; margin-top:2px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,20,32,.85);
  backdrop-filter: blur(10px);
}

/* Hero */
.hero{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  min-height: 170px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.55)),
    radial-gradient(circle at 25% 20%, rgba(255,176,32,.35), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(124,58,237,.35), transparent 55%),
    none;
  background-size: cover;
  background-position:center;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.62));
}
.hero .content{
  position:relative; z-index:1;
  padding: 18px;
}
.hero h1{
  margin: 38px 0 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing:.2px;
  text-shadow: 0 10px 18px rgba(0,0,0,.55);
}
.hero p{
  margin: 8px 0 0;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.hero .hint{ margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.78); }

/* Category cards list */
.section-title{
  margin: 14px 2px 10px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing:.2px;
}
.catlist{ display:flex; flex-direction:column; gap:12px; }

.catcard{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  min-height: 128px;
  background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.55));
}
.catcard .bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
}
.catcard .overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
}
.catcard .body{
  position:relative; z-index:1;
  padding: 16px;
}
.catcard .tagline{
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}
.catcard .name{
  margin-top: 6px;
  font-size: 24px;
  font-weight: 950;
  letter-spacing:.2px;
}
.catcard .sub{
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 13px;
  max-width: 34ch;
}
.catcard .arrow{
  position:absolute; right: 14px; bottom: 14px;
  width: 36px; height: 36px;
  border-radius: 14px;
  background: rgba(20,20,32,.75);
  border:1px solid rgba(255,255,255,.10);
  display:flex; align-items:center; justify-content:center;
}

/* Products page */
.stickybar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,11,15,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,36,50,.6);
  margin: 12px -14px 0;
  padding: 10px 14px;
}
.tabs { display:flex; gap:10px; overflow:auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.tab {
  flex: 0 0 auto;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,20,32,.65);
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;
}
.tab.active { background: rgba(124,58,237,.22); border-color: rgba(124,58,237,.55); }

.grid{
  display:grid;
  grid-template-columns: repeat( auto-fill, minmax(165px, 1fr) );
  gap: 12px;
  margin-top: 12px;
}
.pcard{
  background: linear-gradient(180deg, rgba(20,20,32,1), rgba(16,16,25,1));
  border:1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.pcard .img{
  width:100%;
  aspect-ratio: 1/1;   
  background: #101019;
  overflow:hidden;
}
.pcard .img img{
  width:100%;
  height:100%;
  object-fit:cover;    
  display:block;
  cursor: zoom-in;    
}
.pcard .img img{ width:100%; height:100%; object-fit:cover; }
.pcard .body{ padding: 12px; display:flex; flex-direction:column; gap:7px; }
.pcard h3{ margin:0; font-size: 15px; font-weight: 900; }
.pcard .desc{ margin:0; font-size: 12.5px; color: rgba(255,255,255,.78); line-height:1.35; min-height: 32px; }
.pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 2px; }
.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,20,32,.65);
}
.price{ font-weight: 950; }
.muted{ color: var(--muted); }

/* Bottom nav */
.bottomnav{
  position: fixed;
  left: 0; right:0; bottom:0;
  z-index: 50;
  background: rgba(11,11,15,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(36,36,50,.6);
}
.bottomnav .wrap{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  justify-content:space-around;
  padding: 10px 10px 12px;
}
.navitem{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size: 11px;
  color: rgba(255,255,255,.75);
  min-width: 72px;
}
.navitem svg{ width: 22px; height: 22px; }
.navitem.active{ color: rgba(124,58,237,.95); }
.navitem.active svg{ filter: drop-shadow(0 8px 14px rgba(124,58,237,.35)); }

@media (min-width: 700px){
  .hero{ min-height: 220px; }
  .hero h1{ font-size: 34px; margin-top: 62px; }
  .grid{ grid-template-columns: repeat( auto-fill, minmax(210px, 1fr) ); }
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
.lightbox.is-open{ display:block; }

.lightbox__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.lightbox__panel{
  position:relative;
  margin: 0 auto;
  top: 6vh;
  width: min(92vw, 720px);
  background: rgba(20,20,32,.92);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow:hidden;
}

.lightbox__title{
  padding: 12px 44px 0 14px;
  font-weight: 900;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}

#lightboxImg{
  width:100%;
  height:auto;
  display:block;
  max-height: 78vh;
  object-fit: contain;
  background: #0f0f16;
}

.lightbox__close{
  position:absolute;
  right: 10px; top: 8px;
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 18px;
  cursor:pointer;
}
/* --- FIX: ürün kartları aynı boy + mobilde 2 sütun --- */
.grid{
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* mobilde iki sütunu garanti et (çok dar ekranda 1'e düşer) */
@media (max-width: 520px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px){
  .grid{ grid-template-columns: 1fr; }
}

/* resim alanını her cihazda aynı ölçüye sabitle + fallback */
.pcard .img{
  position: relative;
  aspect-ratio: 4 / 3; /* istersen 1 / 1 yapabilirsin */
  cursor: zoom-in;
}
@supports not (aspect-ratio: 4 / 3){
  .pcard .img{ height: 0; padding-top: 75%; }
  .pcard .img img{ position:absolute; inset:0; }
}

/* içerik uzunlukları kart boyunu bozmasın */
.pcard .desc{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.pills{ min-height: 34px; }
.pill{
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* lightbox tıklanabilir alan */
.js-lightbox{ outline: none; }
.js-lightbox:focus{ box-shadow: 0 0 0 3px rgba(124,58,237,.35); }


.lightbox__meta{
.lightbox__meta{
  padding: 12px 16px 16px;
  text-align: center;
  margin-top: 18px; /* 5mm'ye yakın görsel boşluk */
}

.lightbox__meta .pill{
  display:inline-block;
  margin-top:10px;
}
