/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13px; background: #fafaf8; color: #222; -webkit-font-smoothing: antialiased; }
a { color: #222; text-decoration: none; }
a:hover { color: #ff5a1f; }

/* ===== NAVBAR ===== */
#navbar { background: #fff; border-bottom: 0.5px solid #e8e6e0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 52px; max-width: 1200px; margin: 0 auto; }
#logo { font-size: 20px; font-weight: 600; color: #111; letter-spacing: -0.5px; flex-shrink: 0; }
#logo span { color: #ff5a1f; }
#nav-links { display: flex; gap: 4px; }
#nav-links a { font-size: 13px; color: #888; padding: 6px 12px; border-radius: 8px; transition: all 0.15s; }
#nav-links a:hover { background: #fff5f2; color: #ff5a1f; }
#nav-links a.active { background: #fff5f2; color: #ff5a1f; font-weight: 500; }
#search-box { display: flex; margin-left: auto; border: 0.5px solid #e0ddd6; border-radius: 8px; overflow: hidden; }
#search-box input { font-size: 12px; padding: 7px 12px; border: none; outline: none; background: #fafaf8; color: #222; width: 180px; }
#search-box input::placeholder { color: #bbb; }
#search-box input:focus { background: #fff; }
#search-box button { background: #ff5a1f; color: #fff; border: none; padding: 7px 14px; font-size: 12px; cursor: pointer; font-weight: 500; }
#search-box button:hover { background: #e04a10; }
#hamburger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: #555; margin-left: 8px; }
#mobile-menu { display: none; flex-direction: column; border-top: 0.5px solid #e8e6e0; }
#mobile-menu a { padding: 12px 20px; font-size: 14px; border-bottom: 0.5px solid #f0ede6; color: #333; }
#mobile-menu a:hover { color: #ff5a1f; background: #fff5f2; }
#mobile-menu.open { display: flex; }

/* ===== HERO ===== */
#hero { display: grid; grid-template-columns: 1fr 240px; gap: 12px; padding: 16px 20px; max-width: 1200px; margin: 0 auto; }
#hero-main { background: #fff5f2; border: 0.5px solid #ffd5c5; border-radius: 12px; padding: 24px; position: relative; }
#hero-badge { display: inline-block; background: #ff5a1f; color: #fff; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
#hero-price { position: absolute; top: 20px; right: 20px; background: #fff; border: 0.5px solid #ffd5c5; border-radius: 8px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: #ff5a1f; }
#hero-title { font-size: 26px; font-weight: 600; color: #111; margin-bottom: 8px; letter-spacing: -0.5px; line-height: 1.2; }
#hero-sub { font-size: 13px; color: #888; margin-bottom: 20px; line-height: 1.6; max-width: 480px; }
.hero-btn { display: inline-block; background: #111; color: #fff; font-size: 13px; font-weight: 500; padding: 10px 22px; border-radius: 8px; transition: background 0.15s; }
.hero-btn:hover { background: #ff5a1f; color: #fff; }
#hero-side { display: flex; flex-direction: column; gap: 8px; }
.hthumb { background: #fff; border: 0.5px solid #e8e6e0; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all 0.15s; }
.hthumb:hover { border-color: #ffd5c5; background: #fff8f6; }
.hthumb.active { border-color: #ff5a1f; background: #fff5f2; }
.hthumb-name { font-size: 12px; font-weight: 600; color: #222; margin-bottom: 3px; }
.hthumb-sub { font-size: 11px; color: #aaa; }
.hthumb.active .hthumb-name { color: #ff5a1f; }

/* ===== ANA İÇERİK ===== */
#content { display: grid; grid-template-columns: 190px 1fr 200px; gap: 12px; padding: 0 20px 24px; max-width: 1200px; margin: 0 auto; }

/* ===== BOX TITLE ===== */
.box-title { background: #fff; border: 0.5px solid #e8e6e0; border-bottom: 2px solid #ff5a1f; border-radius: 8px 8px 0 0; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #333; }

/* ===== SOL KATEGORİ ===== */
.cat-list { border: 0.5px solid #e8e6e0; border-top: none; border-radius: 0 0 8px 8px; background: #fff; overflow: hidden; }
.cat-group { border-bottom: 0.5px solid #f0ede6; }
.cat-group:last-child { border-bottom: none; }
.cat-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #444; cursor: pointer; background: #fff; transition: background 0.15s; user-select: none; }
.cat-head:hover { background: #fafaf8; }
.cat-head.featured { color: #ff5a1f; }
.cat-subs { background: #fafaf8; border-top: 0.5px solid #f0ede6; }
.cat-subs.closed { display: none; }
.cat-subs a { display: block; padding: 5px 12px 5px 20px; font-size: 11px; color: #666; border-bottom: 0.5px solid #f5f3ee; transition: all 0.1s; }
.cat-subs a:last-child { border-bottom: none; }
.cat-subs a:hover { color: #ff5a1f; background: #fff5f2; padding-left: 24px; }

/* ===== PROGRAM LİSTESİ ===== */
.prog-list { border: 0.5px solid #e8e6e0; border-top: none; border-radius: 0 0 8px 8px; background: #fff; overflow: hidden; }
.prog-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 0.5px solid #f5f3ee; transition: background 0.1s; color: #222; }
.prog-item:last-child { border-bottom: none; }
.prog-item:hover { background: #fafaf8; }
.prog-item.bizim { background: #fff8f6 !important; }
.prog-item.bizim:hover { background: #fff0eb !important; }
.pikon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.prog-info { flex: 1; min-width: 0; }
.prog-info strong { display: block; font-size: 12px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-info small { font-size: 10px; color: #aaa; }
.prog-kat { font-size: 10px; color: #999; width: 80px; text-align: center; flex-shrink: 0; }
.prog-fiyat { font-size: 11px; font-weight: 600; color: #333; width: 70px; text-align: right; flex-shrink: 0; }
.prog-fiyat.accent { color: #ff5a1f; }
.prog-boyut { font-size: 10px; color: #bbb; width: 50px; text-align: right; flex-shrink: 0; }
.pbadge { font-size: 10px; background: #ff5a1f; color: #fff; padding: 2px 8px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }

/* ===== SAĞ PANEL ===== */
.side-box { border: 0.5px solid #e8e6e0; border-top: none; border-radius: 0 0 8px 8px; overflow: hidden; background: #fff; }
.side-list { }
.side-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 0.5px solid #f5f3ee; font-size: 12px; color: #333; transition: background 0.1s; }
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: #fafaf8; color: #ff5a1f; }
.side-item.bizim-mini { background: #fff8f6 !important; color: #ff5a1f; font-weight: 500; }
.side-item.bizim-mini:hover { background: #fff0eb !important; }
.side-num { font-size: 10px; color: #ccc; width: 16px; text-align: right; flex-shrink: 0; }
.side-icon { font-size: 16px; flex-shrink: 0; }

/* ===== WHATSAPP FLOAT ===== */
#wp-btn { position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.45); z-index: 999; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
#wp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,0.55); }

/* ===== FOOTER ===== */
#footer { background: #fff; border-top: 0.5px solid #e8e6e0; padding: 20px; text-align: center; font-size: 11px; color: #999; line-height: 2; margin-top: 12px; }
.footer-links { margin-top: 8px; display: flex; gap: 16px; justify-content: center; }
.footer-links a { color: #888; font-size: 12px; }
.footer-links a:hover { color: #ff5a1f; }

/* ===== PAGINATION ===== */
#pagination { background: #fff; border-top: 0.5px solid #f0ede6; }
.pager { display: flex; align-items: center; gap: 4px; padding: 10px 12px; justify-content: center; flex-wrap: wrap; }
.pager-btn { padding: 6px 12px; border: 0.5px solid #e0ddd6; border-radius: 8px; font-size: 12px; cursor: pointer; background: #fff; color: #555; font-family: inherit; transition: all 0.15s; }
.pager-btn:hover { background: #fff5f2; color: #ff5a1f; border-color: #ffd5c5; }
.pager-btn.aktif { background: #ff5a1f; color: #fff; border-color: #ff5a1f; font-weight: 500; }
.pager-dots { font-size: 12px; color: #bbb; padding: 0 2px; line-height: 30px; }

/* ===== MOBİL NAV TABS ===== */
#mob-nav-tabs { display: none; background: #fff; border-bottom: 0.5px solid #e8e6e0; }
.mob-nav-tab { flex: 1; text-align: center; padding: 11px 4px; font-size: 13px; font-weight: 500; color: #888; border-bottom: 2px solid transparent; transition: all 0.15s; }
.mob-nav-tab.aktif { color: #ff5a1f; border-bottom-color: #ff5a1f; }

/* ===== MOBİL KATEGORİ BAR ===== */
#mob-kat-bar { display: none; overflow-x: auto; flex-wrap: nowrap; padding: 8px 12px; gap: 6px; background: #fff; border-bottom: 0.5px solid #e8e6e0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#mob-kat-bar::-webkit-scrollbar { display: none; }
.mob-chip { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; padding: 5px 12px; border-radius: 100px; border: 0.5px solid #e0ddd6; font-size: 11px; color: #555; background: #fff; cursor: pointer; transition: all 0.15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: inherit; }
.mob-chip.aktif, .mob-chip:hover { background: #ff5a1f; color: #fff; border-color: #ff5a1f; }

/* ===== MOBİL ARAMA (menü içi) ===== */
.mob-search-wrap { padding: 10px 16px; border-bottom: 0.5px solid #f0ede6; }
.mob-search-wrap input { width: 100%; padding: 9px 12px; border: 0.5px solid #e0ddd6; border-radius: 8px; font-size: 13px; outline: none; background: #fafaf8; color: #222; }
.mob-search-wrap input:focus { background: #fff; border-color: #ff5a1f; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  #content { grid-template-columns: 180px 1fr; }
  #sag { display: none; }
}
@media (max-width: 700px) {
  #mob-nav-tabs { display: flex; }
  #mob-kat-bar { display: flex; }
  #hero { grid-template-columns: 1fr; padding: 12px 16px; }
  #hero-side { flex-direction: row; overflow-x: auto; }
  .hthumb { min-width: 140px; }
  #hero-price { position: static; display: inline-block; margin-bottom: 10px; }
  #hero-title { font-size: 20px; }
  #content { grid-template-columns: 1fr; padding: 0 12px 16px; }
  #sol { display: none; }
  #nav-links { display: none; }
  #search-box { display: none; }
  #hamburger { display: none !important; }
  .nav-inner { padding: 0 16px; justify-content: center !important; flex-direction: row; }
  #logo { margin: 0 auto !important; display: flex; align-items: center; }
  .prog-kat { display: none !important; }
  .prog-boyut { display: none !important; }
  .pbadge { display: none; }
  .prog-fiyat { width: auto; min-width: 50px; }
  .prog-item { padding: 10px 12px; gap: 8px; }
  .prog-info strong { font-size: 13px; }
  .prog-info small { font-size: 11px; }
  #wp-btn { bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .pager-btn { padding: 7px 10px; font-size: 12px; }
}
