/* ==========================================================================
   Ana sayfa düzen stilleri — 22 Ağustos 2026'da buraya taşındı
   --------------------------------------------------------------------------
   Bu CSS önceden filesystems/default.php içinde, <main> etiketinin İÇİNDE
   satır içi <style> bloğu olarak duruyordu. Tarayıcı sayfanın üst kısmını
   çizdikten SONRA bu kuralları görüp container genişliğini ve vitrin
   ızgarasını yeniden hesapladığı için tüm içerik aşağı kayıyordu.
   Kurallar @media (min-width:992px) ile sınırlı olduğundan sorun yalnızca
   MASAÜSTÜNDE görülüyordu: PageSpeed masaüstü CLS 0,387 (mobil 0,004).
   Dosyaya alınınca head'den yüklenir; hem kayma biter hem de önbelleklenir
   (satır içiyken her sayfa yüklemesinde 11,5 KB tekrar iniyordu).
   ========================================================================== */
/* ========== GLOBAL ========== */
html, body { max-width: 100%; overflow-x: clip; }
#map, iframe, table { max-width: 100%; }
#altfooter { left: 0; right: 0; width: auto !important; }

/* ========== CONTAINER ========== */
@media (min-width: 992px){ body .container{ width: 92% !important; max-width: 1280px !important; } }
@media (min-width: 1400px){ body .container{ width: 90% !important; max-width: 1360px !important; } }
@media (min-width: 1700px){ body .container{ width: 88% !important; max-width: 1440px !important; } }
body .container--slightly-wide{ width: 94% !important; max-width: 1440px !important; }

/* ========== PANEL ========== */
.panel.panel-default { border: none; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 22px; overflow: hidden; }
.panel .panel-heading { position: relative; z-index: 1; background: #fff !important; border-bottom: 2px solid #901a1e; padding: 14px 18px; font-size: 15px; font-weight: 700; color: #1c1c1c; }
.panel .panel-heading::after { content: ""; display: block; clear: both; }
.panel .panel-heading i.fa { color: #901a1e; margin-right: 4px; }
.panel .panel-heading .pull-right a { font-size: 13px; font-weight: 600; color: #901a1e; text-decoration: none; padding: 4px 14px; border: 1px solid #901a1e; border-radius: 20px; transition: .15s; }
.panel .panel-heading .pull-right a:hover { background: #901a1e; color: #fff; }
.panel .panel-body { position: relative; padding: 16px; }

/* ========== GRID ========== */
.vitrin-grid .grid, .urgent-grid .grid, .latest-grid .grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grid-item { width: 100%; }

/* ========== KART ========== */
.adv2 { display: flex; flex-direction: column; border: 0; height: auto; transition: transform .2s ease; }
.grid-item:hover .adv2 { transform: translateY(-4px); }
.image1 { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; width: 100%; background: #f0f0f0; }
.image1 .adv-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center; display: block; z-index: 1; transition: transform .3s ease; }
.grid-item:hover .image1 .adv-img { transform: scale(1.05); }
.adv2-title { margin-top: 8px; font-size: 14px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1c1c1c; }
.adv2-title a { color: #1c1c1c; text-decoration: none; }
.adv2-title a:hover { color: #901a1e; }
.listing-card__price { font-size: 13px; margin-top: 3px; color: #666; }
.listing-card__price i { color: #901a1e; margin-right: 2px; }
.category { font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; }
.category a { color: #888; text-decoration: none; }
.category a:hover { color: #901a1e; }

/* ========== ROZETLER ========== */
.ribbon, .ribbon-latest, .price-badge { pointer-events: none; position: absolute; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 16px); }
.ribbon { top: 8px; left: 8px; background: #901a1e; color: #fff; font-weight: 700; font-size: 10px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.ribbon-latest { top: 8px; left: 8px; background: #2563eb; color: #fff; font-weight: 700; font-size: 10px; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.price-badge { left: 8px; bottom: 8px; color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 4px; backdrop-filter: blur(4px); }
.price-badge.free { background: rgba(16,185,129,.9); }
.price-badge.paid { background: rgba(0,0,0,.7); }

/* ========== NF BAR ========== */
#nfbar { margin: 12px auto 16px; }
#nfbar .nfbar__inner { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
#nfbar .nobetci-link, #nfbar .kur-link { font-weight: 600; font-size: 14px; color: #901a1e; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
#nfbar .nobetci-link:hover, #nfbar .kur-link:hover { color: #1c1c1c; }

/* ========== KATEGORI MENU ========== */
.header-nav .cat-icon { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; margin-right: 6px; }

/* ========== MAGAZA ========== */
.store-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 16px; }
.store-card { text-align: center; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 16px 10px; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: #ddd; }
.store-logo-box { width: 120px; height: 120px; border-radius: 10px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #eee; }
.store-logo-img { max-width: 90%; max-height: 90%; width: auto; height: auto; object-fit: contain; display: block; }
.store-name { font-size: 13px; line-height: 1.3; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* ========== TOPLAM GOSTERIM ========== */
.total-views-box { margin: 16px 0 8px; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.total-views-box .tvb-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.total-views-box .tvb-left { display: flex; align-items: center; gap: 12px; }
.total-views-box .tvb-icon { font-size: 20px; color: #901a1e; width: 44px; height: 44px; background: rgba(144,26,30,.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.total-views-box .tvb-title { font-weight: 700; font-size: 15px; color: #1c1c1c; }
.total-views-box .tvb-number { font-weight: 800; font-size: 24px; color: #901a1e; }
.total-views-box .tvb-sub { margin-top: 4px; font-size: 12px; color: #999; }

/* ========== MOBIL UYGULAMA CTA ========== */











/* ========== RESPONSIVE ========== */
@media (max-width: 1200px){ .vitrin-grid .grid, .urgent-grid .grid, .latest-grid .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .store-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px){ .vitrin-grid .grid, .urgent-grid .grid, .latest-grid .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px){ .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px){
  .vitrin-grid .grid, .urgent-grid .grid, .latest-grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .store-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .store-logo-box { width: 70px; height: 70px; }
  .store-name { font-size: 11px; max-width: 90px; }
  .panel .panel-heading { padding: 12px 14px; font-size: 14px; }
  .panel .panel-body { padding: 12px; }
  .adv2-title { font-size: 13px; }




}
@media (max-width: 480px){ .store-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== KATEGORI MENUSU - Modern Pill Kart Stili ========== */
@media (min-width: 768px){
  /* main.css'in 720px max-width kısıtlamasını ez */
  .header-nav{ background:transparent; border:0; padding:6px 0 14px; }
  .header-nav__inner-container{ max-width:100% !important; width:100% !important; padding-left:12px !important; padding-right:12px !important; }
  .header-nav__inner{ overflow:visible !important; flex-wrap:wrap !important; width:100%; }
  .header-nav .navbar-nav{
    float:none !important; display:flex !important;
    flex-wrap:wrap; align-items:stretch; gap:6px;
    margin:0; padding:0; justify-content:center; flex-wrap:wrap;
  }
  .header-nav .navbar-nav > li{ float:none !important; display:flex; }
  .header-nav .navbar-nav > li > a,
  .header-nav .navbar-nav > li > a.header-cat-link{
    position:relative;
    display:inline-flex !important; align-items:center; gap:9px;
    padding:6px 12px 6px 6px !important;
    background:#fff !important;
    border:1px solid #e5e7eb !important;
    border-radius:14px !important;
    color:#1c1c1c !important;
    font-size:12.5px !important; font-weight:600 !important;
    text-decoration:none !important; line-height:1.2;
    box-shadow:0 1px 3px rgba(15,23,42,.04);
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    overflow:visible;
  }
  .header-nav .navbar-nav > li > a .cat-icon{
    position:relative; z-index:1;
    width:20px !important; height:20px !important;
    border-radius:5px;
    transition:transform .25s ease, filter .25s ease;
  }
  .header-nav .navbar-nav > li > a::before{
    content:""; position:absolute;
    left:4px; top:50%; transform:translateY(-50%);
    width:28px; height:28px; border-radius:50%;
    background:rgba(155,27,42,.10);
    z-index:0;
    transition:background .25s ease, transform .25s ease;
  }
  .header-nav .navbar-nav > li > a > span{ position:relative; z-index:1; padding-left:2px; }
  .header-nav .navbar-nav > li > a > .caret{
    position:relative; z-index:1; margin-left:3px;
    color:#9b1b2a; transition:transform .25s ease, color .25s ease;
    border-top-color:currentColor;
  }
  .header-nav .navbar-nav > li > a:hover,
  .header-nav .navbar-nav > li > a:focus,
  .header-nav .navbar-nav > li.open > a,
  .header-nav .navbar-nav > li > a.header-cat-link:hover{
    background:linear-gradient(135deg, #9b1b2a 0%, #7a1521 100%) !important;
    border-color:#7a1521 !important;
    color:#fff !important;
    transform:translateY(-3px);
    box-shadow:0 10px 24px rgba(155,27,42,.30);
  }
  .header-nav .navbar-nav > li > a:hover::before,
  .header-nav .navbar-nav > li.open > a::before{
    background:rgba(255,255,255,.22);
    transform:translateY(-50%) scale(1.05);
  }
  .header-nav .navbar-nav > li > a:hover .cat-icon{
    transform:scale(1.08);
    filter:brightness(0) invert(1);
  }
  .header-nav .navbar-nav > li > a:hover > .caret,
  .header-nav .navbar-nav > li.open > a > .caret{
    color:#fff; transform:rotate(180deg);
  }
  .header-nav .navbar-nav .dropdown-menu{
    margin-top:8px !important;
    background:#fff !important;
    border:1px solid #e5e7eb !important;
    border-radius:14px !important;
    box-shadow:0 18px 40px rgba(15,23,42,.18) !important;
    padding:8px !important; min-width:230px;
    animation:hcatMenuIn .18s ease-out;
  }
  @keyframes hcatMenuIn{
    from{ opacity:0; transform:translateY(-4px); }
    to  { opacity:1; transform:translateY(0); }
  }
  .header-nav .navbar-nav .dropdown-menu > li > a{
    display:flex !important; align-items:center; gap:6px;
    padding:9px 12px !important; border-radius:9px !important;
    color:#1c1c1c !important; font-size:13px; font-weight:500;
    background:transparent !important;
    transition:background .15s ease, color .15s ease, transform .12s ease;
  }
  .header-nav .navbar-nav .dropdown-menu > li > a:hover{
    background:rgba(155,27,42,.08) !important;
    color:#9b1b2a !important;
    transform:translateX(3px);
  }
}
@media (max-width: 1199px){
  .header-nav .navbar-nav{ flex-wrap:wrap !important; gap:6px; justify-content:center; }
  .header-nav .navbar-nav > li > a{ font-size:12px !important; padding:5px 10px 5px 5px !important; gap:7px !important; }
  .header-nav .navbar-nav > li > a::before{ width:26px; height:26px; }
  .header-nav .navbar-nav > li > a .cat-icon{ width:18px !important; height:18px !important; }
}
@media (max-width: 991px){
  .header-nav .navbar-nav{ justify-content:flex-start; flex-wrap:wrap; }
}
