@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* === Ortak değişkenler === */
:root{
  /* Genel kontrol değişkenleri (global) */
  --ctl-h: 38px;
  --ctl-br: 10px;
  --ctl-bg: rgba(255,255,255,0.08);
  --ctl-bg-hover: rgba(255,255,255,0.12);
  --ctl-bd: 1px solid rgba(255,255,255,0.12);
  --ctl-inset: inset 0 1px 0 rgba(255,255,255,0.06);

  /* NAVBAR için tek kaynak yükseklik & stil */
  --nav-h: 44px;
  --nav-br: 14px;
  --nav-bg: rgba(255,255,255,.06);
  --nav-bd: 1px solid rgba(140,120,255,.18);
  --nav-bg-hover: rgba(255,255,255,.10);
}

* { font-family: 'Montserrat', sans-serif; }

body {
  background-color: #08080f;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: white;
}

/* arka plan glow */
.top-glow, .bottom-glow {
  position: fixed;
  left: 0;
  width: 100%;
  height: 400px;
  background: url('/img/glow.avif') no-repeat center top;
  background-size: cover;
  animation: glowMove 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -5;
  opacity: 0.85;
}
.top-glow { top: 0; }
.bottom-glow { bottom: 0; transform: rotate(180deg); }

@keyframes glowMove {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.03); opacity: 1; }
}

/* === Navbar === */
.navbar{
  padding-bottom: 10px;
  min-height: 50px;
  background: linear-gradient(180deg, rgba(98,0,153,.55) 0%, rgba(40,0,55,.40) 70%, rgba(8,8,15,0) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
  z-index: 3;
}

.navbar > .container,
.navbar > .nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 14px;
}

.nav-left { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 28px; width: auto; display: block; }

/* orta kolon */
.nav-center{
  display: flex; align-items: center; flex: 1;
  max-width: 780px;                 /* dengeli genişlik */

}

/* Eski input + button kombinasyonu kullanan yerler için (artık arama nl-search ile) */
.nav-center input,
.search-btn,
.cat-btn,
.btn, .btn-ghost, .btn-primary { height: var(--ctl-h); cursor: pointer; }

/* Kategori açılır menü (buton kısmı) */
.cat-dropdown{ position: relative; }

.cat-btn{
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border-radius: var(--nav-br);
  border: var(--nav-bd);
  background: var(--nav-bg);
  color: #fff;
  cursor: pointer; user-select: none;
}
.cat-btn:hover{ background: var(--nav-bg-hover); }
.cat-btn .cat-grid rect{ fill: currentColor; opacity: .85; }
.cat-label{ font-weight: 700; font-size: 13px; letter-spacing: .2px; }
.cat-caret{ font-size: 12px; opacity: .9; }

.cat-menu{
  position: absolute;
  top: calc(var(--nav-h) + 6px);
  left: 0;
  min-width: 230px;
  max-width: min(92vw, 340px);
  background: rgba(18,18,28,.98);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 6px; margin: 0; list-style: none;
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
  display: none; z-index: 5;
  overflow: hidden;
}
.cat-item{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 8px; cursor: pointer; color: #fff;
}
.cat-item:hover, .cat-item:focus{ background: rgba(255,255,255,.07); outline: none; }
.cat-ico{ width: 18px; height: 18px; display: block; }

/* Sağ butonlar */
.nav-right{ display: flex; align-items: center; gap: 10px; }

.btn, .btn-ghost, .btn-primary{
  height: var(--nav-h);
  line-height: calc(var(--nav-h) - 2px);
  padding: 0 14px;
  border-radius: var(--nav-br);
  border: var(--nav-bd);
  background: var(--nav-bg);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: var(--ctl-inset), 0 6px 20px rgba(0,0,0,0.25);
  transition: background .2s ease, box-shadow .2s ease, transform .08s ease;
  will-change: background, box-shadow, transform;
}
.btn:hover, .btn-ghost:hover, .btn-primary:hover{ background: var(--nav-bg-hover); }
.btn:active, .btn-ghost:active, .btn-primary:active{ transform: translateY(1px); }
.btn:focus, .btn-ghost:focus, .btn-primary:focus{
  outline: none; box-shadow: 0 0 0 2px rgba(124,42,232,0.45);
}

/* PRIMARY özel görünüm */
.btn-primary{
  background: linear-gradient(90deg, rgba(124,42,232,0.92), rgba(155,77,255,0.92));
  border: var(--nav-bd);
  box-shadow: var(--ctl-inset), 0 10px 28px rgba(124,42,232,0.35);
}
.btn-primary:hover{
  background: linear-gradient(90deg, rgba(124,42,232,0.98), rgba(155,77,255,0.98));
}

.btn i{ font-size: 14px; }

/* ===== NAVBAR: Cam/Pill Arama ve Sepet Rozeti ===== */
.navbar .nl-search{
  margin-top: 10px;
  position:relative; display:flex; align-items:center; 
  height: var(--nav-h);
  background: var(--nav-bg);
  border: var(--nav-bd);
  border-radius: calc(var(--nav-h) / 2);
  padding: 0 14px 0 48px;              /* solda ikon için boşluk */
  transition: box-shadow .2s, border-color .2s, background .2s;
  backdrop-filter: blur(10px);
  width: 100%;
}
.navbar .nl-search.is-focus{
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
  border-color: rgba(139,92,246,.35);
  background: rgba(255,255,255,.08);
}
.navbar .nl-search-ico{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:20px; height:20px; display:grid; place-items:center; color:#e9e7ff; opacity:.95;
}
.navbar .nl-search-ico svg{ width:18px; height:18px; display:block; }

.navbar .nl-search-input{
  width:100%; border:0; outline:0; background:transparent; color:#eee;
  font-size:14px; line-height:1; padding-top:1px;
}
.navbar .nl-search-input::placeholder{ color:#cfc7ff; opacity:.85; }

.navbar .nl-clear{
  width:28px; height:28px; line-height:26px;
  border-radius:999px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08); color:#e6e3ff; cursor:pointer;
}
.navbar .nl-clear:hover{ background:rgba(255,255,255,.12); }

/* canlı öneri kutusu (autocomplete) */
.navbar .nl-suggest{
  position:absolute; left:0; top:calc(100% + 8px); width:100%;
  background:#0f0f18; border:1px solid #242243; border-radius:14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); z-index:70; padding:6px; max-height:360px; overflow:auto;
}
.navbar .nl-suggest.hidden{ display:none; }
.navbar .nl-suggest .s-item{
  display:flex; gap:10px; align-items:center; padding:10px 12px;
  text-decoration:none; color:#ddd; border-radius:10px;
}
.navbar .nl-suggest .s-item:hover{ background:#17172a; }
.navbar .nl-suggest .s-item img{ width:36px; height:36px; border-radius:8px; object-fit:cover; }

/* sepet bağlantısı (cam çip) + rozet */
.navbar .cart-link{
  height: var(--nav-h);
  display:inline-flex; align-items:center; gap:8px;
  padding: 0 14px;
  border-radius: var(--nav-br);
  border: var(--nav-bd);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  color:#eee; text-decoration:none;
}
.navbar .cart-link:hover{ background: var(--nav-bg-hover); }
.navbar .nl-badge{
  background:#8b5cf6; color:#fff; padding:2px 8px; border-radius:999px;
  font-weight:800; font-size:.86rem;
}

@media (max-width: 920px){
  .nav-center{ max-width:none; }
}

/* === Footer === */
.site-footer{
  position: relative;
  z-index: 2;
  padding: 40px 20px 60px;
}
.footer-wrap{
  max-width: 1350px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06),
              0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  color: #eaeaea;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-logo{ height: 26px; width: auto; display: block; }

.footer-dropdown{ position: relative; }
.footer-dd-btn{
  height: 30px; padding: 0 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer;
}
.footer-dd-btn:hover{ background: rgba(255,255,255,0.12); }
.footer-dd-btn .caret{ font-size: 11px; opacity: .9; }

.footer-dd-menu{
  position: absolute; top: 36px; left: 0; min-width: 180px;
  background: rgba(18,18,28,.98);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 6px; margin: 0; list-style: none; display: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.footer-dd-menu li a{
  display: block; padding: 9px 10px; border-radius: 8px; color: #fff; text-decoration: none;
}
.footer-dd-menu li a:hover{ background: rgba(255,255,255,.07); }

.copy{ margin: 8px 0 14px; font-size: 14px; color: #d8d8d8; }
.copy a{ color: #b48bff; text-decoration: none; }
.copy a:hover{ text-decoration: underline; }

.socials{ display: flex; align-items: center; gap: 14px; font-size: 18px; }
.socials a{ color: #fff; opacity: .85; }
.socials a:hover{ opacity: 1; }

.footer-right h3{
  margin: 0 0 10px; font-size: 22px; color: #fff; letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.quick-links{ list-style: none; padding: 0; margin: 0; }
.quick-links li{ margin: 6px 0; }
.quick-links a{
  color: #dfe0ff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.quick-links a i{ font-size: 12px; opacity: .85; }
.quick-links a:hover{ color: #fff; text-decoration: underline; }

/* === Responsive (global) === */
@media (max-width: 1024px){
  .navbar > .container,
  .navbar > .nav-inner{
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav-left { order: 1; }
  .nav-right{ order: 2; }
  .nav-center{
    order: 3;
    width: 100%;
    max-width: none;
    margin: 2px 0 0;
  }
}
@media (max-width: 560px){
  .nav-right{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .nav-right .btn,
  .nav-right .btn-ghost,
  .nav-right .btn-primary{
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}
@media (max-width: 800px){
  .footer-wrap{ grid-template-columns: 1fr; gap: 18px; }
  .footer-right h3{ margin-top: 6px; }
}

/* === Top rail === */
.top-rail{
  position: relative; z-index: 2;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, rgba(20,10,35,.55), rgba(12,10,20,.35) 70%, rgba(8,8,15,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.tr-inner{
  max-width: 1400px; margin: 0 auto; padding: 0 12px;
  position: relative; display: flex; align-items: center;
}
.tr-scroll{
  display: flex; align-items: stretch; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; width: 100%; padding: 4px 84px; /* oklarla hizalı */
  position: relative; z-index: 1;
}
.tr-scroll::-webkit-scrollbar{ display: none; }
.tr-gap{ flex: 0 0 6px; }

.tr-card{
  min-width: 210px;
  height: 56px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.25);
  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.tr-card:hover{ background: rgba(255,255,255,.12); transform: translateY(-1px); }
.tr-card:active{ transform: translateY(0); }
.tr-card.is-active{
  background: linear-gradient(90deg, rgba(124,42,232,.95), rgba(155,77,255,.95));
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(124,42,232,.28);
}

.tr-thumb{
  width: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: 6px;
  display: grid; place-items: center;
  overflow: hidden;
}
.tr-thumb img{
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
}
.tr-thumb img[data-fit="cover"]{ object-fit: cover; }

.tr-fallback{ font-weight: 800; font-size: 18px; opacity: .9; }
.tr-name{
  padding-left: 20px;
  font-weight: 800; font-size: 13px; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tr-inner{ position: relative; }
.tr-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20;
  width: 36px; height: 36px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  background: rgba(20,16,30,.72);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  display: grid; place-items: center; cursor: pointer;
}
.tr-arrow:hover{
  background: rgba(20,16,30,.86);
  box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 0 2px rgba(155,77,255,.35);
}
.tr-arrow::before{
  content:''; width: 18px; height: 18px; background:#fff;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 18l-6-6 6-6'/></svg>") no-repeat center/contain;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M15 18l-6-6 6-6'/></svg>") no-repeat center/contain;
}
.tr-right::before{ transform: scaleX(-1); }
.tr-left{ left: 10px; } .tr-right{ right: 10px; }

.tr-fade{
  position: absolute; top: 0; bottom: 0; width: 68px;
  pointer-events: none; z-index: 15;
}

@keyframes tr-nudge-right { 0%,100%{ transform: translateY(-50%) translateX(0) } 50%{ transform: translateY(-50%) translateX(5px) } }
@keyframes tr-nudge-left  { 0%,100%{ transform: translateY(-50%) translateX(0) } 50%{ transform: translateY(-50%) translateX(-5px) } }
.top-rail.hint .tr-right{ animation: tr-nudge-right 1.4s ease-in-out 3; }
.top-rail.hint .tr-left { animation: tr-nudge-left  1.4s ease-in-out 3; }

@media (max-width: 720px){
  .tr-scroll{ padding: 4px 64px; }
  .tr-fade{ width: 52px; }
  .tr-arrow{ display: none; }
  .tr-card{ min-width: 170px; height: 52px; grid-template-columns: 48px 1fr; }
  .tr-thumb{ width: 48px; padding: 5px; }
}
.top-rail.compact .tr-card{ min-width: 184px; height: 52px; grid-template-columns: 48px 1fr; }
.top-rail.compact .tr-thumb{ width: 48px; padding: 5px; border-radius: 12px; }

/* ========================================================= */
/* === USER CHIP & AVATAR (Navbar + Drawer) — EKLENEN KISIM === */
/* ========================================================= */

/* Navbar user chip (buton) */
.user-chip{
  width: auto;
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 8px;
  border-radius: var(--nav-br);
  border: var(--nav-bd);
  background: var(--nav-bg);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--ctl-inset), 0 6px 20px rgba(0,0,0,.25);
  transition: background .2s ease, transform .08s ease;
}
.user-chip:hover{ background: var(--nav-bg-hover); }
.user-chip:active{ transform: translateY(1px); }
.user-chip svg{ opacity: .9; }

/* küçük avatar */
.user-chip .avatar{
  width: 28px; height: 28px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  background: #1b1b2a;
  color: #e8e8f3;
  font-weight: 800;
  font-size: .86rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.user-chip .avatar-img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.user-chip .avatar-initial{ line-height: 1; }

.user-chip .u-meta{ display: flex; flex-direction: column; align-items: flex-start; }
.user-chip .u-name{ font-weight: 800; font-size: .9rem; line-height: 1; }
.user-chip .um-head-sub{ font-size: .78rem; opacity: .85; margin-top: 2px; }

@media (max-width: 640px){
  .user-chip .um-head-sub{ display: none; }
}

/* Drawer avatar (user-menu) */
.pd-avatar{
  width: 64px; height: 64px;
  border-radius: 999px;
  overflow: hidden;
  background: #1b1b2a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(124,92,255,0.15);
}
.pd-avatar-img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-avatar-initial{ font-weight: 800; font-size: 1rem; letter-spacing: .3px; }

/* (Opsiyonel) Drawer/backdrop temel stilleri — sende yoksa aç */
.profile-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); z-index: 2000; }
.profile-drawer{ position: fixed; right: 0; top: 0; bottom: 0; width: min(400px,92vw); background: #0e0e15; border-left: 1px solid rgba(255,255,255,.08); z-index: 2100; transform: translateX(100%); transition: transform .2s ease; }
.profile-drawer[aria-hidden="false"]{ transform: translateX(0); }

/* ----- Bildirim dropdown ----- */
.notif-wrapper{ position: relative; }
.notif-btn{
  height: var(--nav-h); border-radius: var(--nav-br); border: var(--nav-bd);
  background: var(--nav-bg); color:#fff; padding:0 12px; display:inline-flex; align-items:center; gap:8px;
}
.notif-badge{
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px;
  font-size:11px; background:#ff5e57; color:#fff; border-radius:9px;
  display:inline-flex; align-items:center; justify-content:center; padding:0 5px;
}
.notif-menu{
  position:absolute; right:0; top:calc(100% + 8px); width:330px;
  background:#1f1b24; border:1px solid #2e2a33; border-radius:14px;
  box-shadow:0 8px 40px rgba(0,0,0,.45); overflow:hidden; z-index:50;
}
.notif-head{ padding:10px 12px; font-weight:700; opacity:.9; border-bottom:1px solid #2e2a33 }
.notif-list{ list-style:none; margin:0; padding:0; max-height:360px; overflow:auto; }
.notif-item{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-bottom:1px solid #2e2a33 }
.notif-item.unread{ background: rgba(124,77,255,.12) }
.notif-item .txt{ flex:1 }
.notif-item .ttl{ font-weight:600; margin:0; }
.notif-item .msg{ opacity:.9; font-size:13px; margin-top:4px }
.notif-item .time{ opacity:.6; font-size:12px; margin-top:6px }
.notif-foot{ padding:10px 12px; text-align:center; }


/* Nelora temasına uyumlu basit stiller */
.notif-wrapper { position: relative; }
.notif-menu{
  position:absolute; right:0; top:110%;
  width:320px; max-height:360px; overflow:auto;
  background:#201c27; border:1px solid #2a2632; border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.35); padding:8px 0; z-index:40;
}
.notif-head{ padding:8px 12px; font-weight:800; border-bottom:1px solid #2a2632 }
.notif-list{ list-style:none; margin:0; padding:0; }
.notif-item{ padding:10px 12px; border-bottom:1px dashed #2a2632; cursor:pointer }
.notif-item:last-child{ border-bottom:none }
.notif-item.read{ opacity:.65 }
.notif-title{ font-weight:600; margin:0 0 4px; color:#eae6f5 }
.notif-body{ margin:0; opacity:.85; color:#cdc7db; font-size:13px }
.notif-time{ margin-top:4px; opacity:.6; font-size:12px }
.notif-badge{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px;
  background:#7c3aed; color:#fff; border-radius:9px;
  font-size:11px; display:flex; align-items:center; justify-content:center; padding:0 5px;
}