/* ═══════════════════════════════════════════════
   LAYOUT UPDATES v26 — Premium Nav + Footer Logo
═══════════════════════════════════════════════ */

/* ── DB Logo Support ── */
.logo-img{
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: opacity .2s;
}
.logo:hover .logo-img{ opacity:.85; }

/* ── Header Sticky ── */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(250,245,237,.97) !important;
  transition: box-shadow .3s;
}
header.scrolled{
  box-shadow: 0 4px 20px rgba(26,13,6,.1);
}

/* ═══════════════════════════════════════════════
   PREMIUM NAV — Kahverengi gradient, cam efekti
═══════════════════════════════════════════════ */
nav{
  position: sticky;
  top: 72px;
  z-index: 99;
  background: linear-gradient(135deg, var(--choco-dark) 0%, var(--choco) 50%, var(--choco-warm) 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 16px rgba(26,13,6,.2);
}
.nav-inner{
  height: 52px !important;
  gap: 2px;
  justify-content: center;
}

/* Nav links — beyaz, zarif */
.nl{
  color: rgba(255,255,255,.75) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: .6px !important;
  text-transform: uppercase !important;
  padding: 0 16px !important;
  transition: all .25s ease !important;
  position: relative;
}
.nl:hover, .ni:hover > .nl{
  color: #fff !important;
  text-shadow: 0 0 12px rgba(232,201,106,.3);
}
.nl.active{
  color: var(--gold2, #e8c96a) !important;
  font-weight: 600 !important;
}
.nl svg{
  width: 10px !important;
  height: 10px !important;
  stroke: rgba(255,255,255,.5);
  transition: all .2s !important;
}
.ni:hover .nl svg{
  stroke: var(--gold2, #e8c96a);
  transform: rotate(180deg);
}

/* Hover alt cizgi — gold */
.nl-bar{
  background: var(--gold2, #e8c96a) !important;
  height: 2px !important;
  bottom: 0 !important;
  border-radius: 1px !important;
}

/* Aktif menü — gold altcizgi */
.nl.active::after{
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 24px !important;
  height: 2.5px !important;
  background: var(--gold2, #e8c96a) !important;
  border-radius: 2px !important;
}

/* Nav divider cizgileri */
.ni + .ni::before{
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════
   TOPBAR MARQUEE
═══════════════════════════════════════════════ */
.topbar-marquee{
  overflow: hidden;
  flex: 1;
  max-width: 600px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.topbar-marquee-track{
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.topbar-marquee:hover .topbar-marquee-track{
  animation-play-state: paused;
}
.topbar-campaign-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
a.topbar-campaign-item{
  text-decoration: none;
  transition: color .2s;
}
a.topbar-campaign-item:hover{
  color: var(--gold2, #e8c96a);
}
.topbar-campaign-item .tc-pill{
  font-size: 12px;
  padding: 0;
  background: none;
}
.tc-sep{
  color: var(--gold);
  font-size: 8px;
  opacity: .5;
  margin-left: 8px;
}
@keyframes marqueeScroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   MEGA MENU — Dark chocolate tema (nav ile uyumlu)
═══════════════════════════════════════════════ */
.mega{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(170deg, #2d1810 0%, #3d2216 60%, #4a2c17 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid var(--gold2, #e8c96a);
  padding: 0;
  display: none;
  min-width: 680px;
  max-width: 920px;
  z-index: 800;
  box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.1);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  animation: megaIn .25s ease;
}
@keyframes megaIn{
  from{ opacity:0; transform:translateX(-50%) translateY(-8px); }
  to{ opacity:1; transform:translateX(-50%) translateY(0); }
}
.ni:hover .mega{ display:flex; }

.mega-main{
  flex: 1;
  padding: 28px 32px;
}
.mega-main .mc-hd{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold2, #e8c96a);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mega-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.mega-main .ml{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-radius: 10px;
  transition: all .2s;
}
.mega-main .ml:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateX(4px);
}
.mega-main .ml-ic{
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all .2s;
}
.mega-main .ml:hover .ml-ic{
  background: rgba(232,201,106,.12);
  border-color: rgba(232,201,106,.2);
  transform: scale(1.05);
}
.ml-text{ display:flex; flex-direction:column; }
.ml-name{ font-weight:500; line-height:1.2; color:rgba(255,255,255,.85); }
.ml:hover .ml-name{ color:#fff; }
.ml-count{ font-size:11px; color:rgba(255,255,255,.35); margin-top:2px; }
.mega-all{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gold2, #e8c96a);
  text-decoration: none;
  border: 1px solid rgba(232,201,106,.25);
  border-radius: 8px;
  transition: all .25s;
}
.mega-all:hover{
  background: rgba(232,201,106,.1);
  border-color: rgba(232,201,106,.5);
  transform: translateX(4px);
  color: #e8c96a;
}

/* Featured product in mega — koyu tema devam */
.mega-feat{
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(175deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.3) 100%);
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
}
.mega-feat .mf-img{
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.mega-feat .mf-img::after{
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(transparent, rgba(20,10,5,.9));
}
.mega-feat .mf-body{
  padding: 16px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mf-tag{
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold2, #e8c96a);
  margin-bottom: 8px;
}
.mf-name{
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.mf-price{
  font-size: 22px;
  font-weight: 700;
  color: var(--gold2, #e8c96a);
  margin-bottom: 14px;
}
.mf-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--caramel), var(--gold));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  border-radius: 8px;
  transition: all .25s;
  margin-top: auto;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(192,120,40,.3);
}
.mf-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,120,40,.4);
}

/* ═══════════════════════════════════════════════
   FOOTER LOGO — 3x büyük
═══════════════════════════════════════════════ */
.f-brand-logo img{
  height: 80px !important;
  max-width: 300px !important;
  object-fit: contain !important;
  margin-bottom: 16px;
}

/* ── Search Enhanced ── */
.srch-box:focus-within{
  box-shadow: 0 0 0 3px rgba(192,120,40,.15);
}

/* ── Flash Message ── */
#flash-msg, #flash-err, #flash-info{
  animation: flashIn .4s ease;
}
@keyframes flashIn{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media(max-width:900px){
  .mega{
    min-width: 320px;
    max-width: 400px;
    left: 0;
    transform: none;
  }
  @keyframes megaIn{
    from{ opacity:0; transform:translateY(-8px); }
    to{ opacity:1; transform:translateY(0); }
  }
  .mega-feat{ display:none; }
  .mega-grid{ grid-template-columns:1fr; }
  .ni + .ni::before{ display:none; }
  .f-brand-logo img{ height:80px !important; }
}
@media(max-width:768px){
  .topbar-marquee{ max-width:100%; }
}
