/* Kıbrıs Bilgisayarcım - stable header visual polish
   Only presentation overrides. Existing header HTML/JS behavior remains unchanged. */

.kb-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 8px 26px rgba(15,23,42,.055);
}

.kb-topbar{
  background:#111827;
}
.kb-topbar-inner{min-height:32px}
.kb-topbar-message{color:#cbd5e1}
.kb-topbar-message i{color:#f97316}
.kb-toplinks a{color:#cbd5e1}
.kb-toplinks a:hover{color:#fff}

.kb-mainbar-inner{
  min-height:78px;
  grid-template-columns:220px minmax(320px,1fr) auto;
  gap:24px;
}
.kb-logo img{
  width:min(205px,100%);
}

.kb-search{
  height:50px;
  border:1px solid #dbe2ea;
  border-radius:14px;
  background:#f8fafc;
  box-shadow:none;
}
.kb-search:focus-within{
  background:#fff;
  border-color:#f97316;
  box-shadow:0 0 0 4px rgba(249,115,22,.10);
}
.kb-search button{
  height:38px;
  border-radius:10px;
  background:#f97316;
  padding:0 19px;
}
.kb-search button:hover{background:#ea580c}

.kb-actions{gap:8px}
.kb-action{
  border:1px solid transparent;
  border-radius:13px;
  padding:7px 9px;
  transition:.16s ease;
}
.kb-action:hover{
  background:#fff7ed;
  border-color:#fed7aa;
}
.kb-action-icon{
  background:#fff7ed;
  color:#ea580c;
  border:1px solid #ffedd5;
}
.kb-action-icon b{background:#111827;color:#fff}

.kb-navrow{
  border-top:1px solid #f1f5f9;
  background:#fff;
}
.kb-navrow-inner{height:48px;gap:20px}
.kb-category-trigger{
  height:36px;
  border-radius:10px;
  background:#111827;
  padding:0 14px;
}
.kb-category-trigger:hover{background:#1f2937}
.kb-primary-nav{gap:22px}
.kb-primary-nav a{font-size:13px;color:#334155;font-weight:760}
.kb-primary-nav a:hover{color:#ea580c}

.kb-category-panel,
.kb-search-panel,
.kb-cart-panel{
  border:1px solid rgba(226,232,240,.95);
}

@media (max-width:1180px){
  .kb-mainbar-inner{grid-template-columns:190px minmax(240px,1fr) auto;gap:14px}
  .kb-logo img{width:180px}
}

@media (max-width:900px){
  .kb-topbar{display:none}
  .kb-header{box-shadow:0 5px 18px rgba(15,23,42,.06)}
  .kb-mainbar-inner{
    min-height:66px;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:10px;
  }
  .kb-mobile-menu{
    width:40px;height:40px;
    border-radius:11px;
    background:#fff;
    border-color:#e5e7eb;
  }
  .kb-logo{justify-content:flex-start}
  .kb-logo img{width:172px;max-height:46px;object-fit:contain}
  .kb-actions{gap:4px}
  .kb-action{
    padding:2px;
    border:0;
    background:transparent!important;
  }
  .kb-action-icon{
    width:38px;height:38px;
    border-radius:11px;
    background:#fff;
    border:1px solid #e5e7eb;
    color:#111827;
  }
  .kb-action:hover .kb-action-icon{border-color:#fed7aa;color:#ea580c}

  .kb-category-panel,.kb-search-panel{
    top:8px;left:8px;right:8px;bottom:78px;
    border-radius:18px;
  }

  .kb-bottom-nav{
    left:8px;right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    height:62px;
    padding:5px;
    border-radius:16px;
    background:rgba(255,255,255,.97);
    border:1px solid #e5e7eb;
    box-shadow:0 12px 34px rgba(15,23,42,.14);
  }
  .kb-bottom-nav a,.kb-bottom-nav button{
    border-radius:11px;
    color:#64748b;
    font-size:9.5px;
  }
  .kb-bottom-nav i{font-size:15px;color:#475569}
  .kb-bottom-nav button:nth-child(3){
    background:#fff7ed;
    color:#ea580c;
  }
  .kb-bottom-nav button:nth-child(3) i{color:#f97316}
}

@media (max-width:640px){
  .kb-mainbar-inner{min-height:62px}
  .kb-logo img{width:148px}
  .kb-action-icon{width:36px;height:36px}
  .kb-bottom-nav{height:60px;border-radius:15px}
  body.kb-frontend{padding-bottom:76px}
  .kb-whatsapp{bottom:82px;right:12px}
}

@media (max-width:380px){
  .kb-logo img{width:132px}
  .kb-mainbar-inner{grid-template-columns:38px minmax(0,1fr) auto;gap:7px}
  .kb-mobile-menu{width:36px;height:36px}
  .kb-action-icon{width:34px;height:34px}
}

/* Mobile bottom navigation stability fix */
@media (max-width:900px){
  .kb-bottom-nav{
    left:max(10px,env(safe-area-inset-left));
    right:max(10px,env(safe-area-inset-right));
    bottom:max(8px,env(safe-area-inset-bottom));
    height:60px;
    padding:4px 5px;
    border-radius:16px;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(226,232,240,.96);
    box-shadow:0 10px 28px rgba(15,23,42,.13);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  }

  .kb-bottom-nav a,
  .kb-bottom-nav button{
    position:relative;
    min-width:0;
    min-height:50px;
    padding:5px 2px 4px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    border:0;
    border-radius:11px;
    background:transparent !important;
    color:#64748b;
    text-decoration:none;
    font-size:9px;
    font-weight:800;
    line-height:1.05;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }

  .kb-bottom-nav a::before,
  .kb-bottom-nav button::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    width:18px;
    height:3px;
    border-radius:999px;
    background:#f97316;
    opacity:0;
    transform:translateX(-50%) scaleX(.45);
    transition:.16s ease;
  }

  .kb-bottom-nav i{
    font-size:16px;
    line-height:1;
    color:#334155;
    transition:.16s ease;
  }

  .kb-bottom-nav a span,
  .kb-bottom-nav button>span:last-child{
    display:block;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .kb-bottom-nav .is-active{
    color:#ea580c !important;
  }
  .kb-bottom-nav .is-active::before{opacity:1;transform:translateX(-50%) scaleX(1)}
  .kb-bottom-nav .is-active i{color:#f97316 !important}

  .kb-bottom-nav a:active,
  .kb-bottom-nav button:active{
    background:#f8fafc !important;
    transform:translateY(1px);
  }

  .kb-bottom-icon{position:relative;display:grid;place-items:center}
  .kb-bottom-icon b{
    position:absolute;
    top:-7px;
    right:-11px;
    min-width:16px;
    height:16px;
    padding:0 4px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#f97316;
    color:#fff;
    border:2px solid #fff;
    font-size:8px;
    line-height:1;
    font-weight:900;
  }

  /* Açık panel varken alt bar tıklama yakalamasın ve panel tam yüksekliği kullansın. */
  body.kb-lock .kb-bottom-nav{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(12px);
  }
  body.kb-lock .kb-category-panel,
  body.kb-lock .kb-search-panel{
    bottom:max(8px,env(safe-area-inset-bottom)) !important;
  }

  body.kb-frontend{padding-bottom:76px}
  .kb-whatsapp{bottom:80px !important}
}

@media (max-width:640px){
  .kb-bottom-nav{
    left:max(6px,env(safe-area-inset-left));
    right:max(6px,env(safe-area-inset-right));
    height:58px;
    border-radius:15px;
  }
  .kb-bottom-nav a,
  .kb-bottom-nav button{min-height:48px;font-size:8.5px}
  .kb-bottom-nav i{font-size:15px}
  body.kb-frontend{padding-bottom:72px}
  .kb-whatsapp{bottom:76px !important}
}

@media (max-width:360px){
  .kb-bottom-nav a,
  .kb-bottom-nav button{font-size:8px}
  .kb-bottom-nav i{font-size:14px}
}

/* ==========================================================================\n   WHITEHAT MOBILE BOTTOM NAV — DESIGN UPDATE ONLY\n   Functional hooks and HTML structure are intentionally untouched.\n   ========================================================================== */
@media (max-width:900px){
  .kb-bottom-nav{
    left:max(12px,env(safe-area-inset-left)) !important;
    right:max(12px,env(safe-area-inset-right)) !important;
    bottom:max(10px,env(safe-area-inset-bottom)) !important;
    height:64px !important;
    padding:5px 6px !important;
    gap:4px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.94) !important;
    border:1px solid rgba(226,232,240,.9) !important;
    box-shadow:
      0 14px 34px rgba(15,23,42,.13),
      0 2px 8px rgba(15,23,42,.05) !important;
    backdrop-filter:blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter:blur(18px) saturate(145%) !important;
  }

  .kb-bottom-nav a,
  .kb-bottom-nav button{
    min-height:52px !important;
    padding:6px 3px 5px !important;
    gap:4px !important;
    border-radius:14px !important;
    color:#64748b !important;
    font-size:9.25px !important;
    font-weight:800 !important;
    letter-spacing:-.01em;
    transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease !important;
  }

  /* Remove the old top orange dash: active state becomes a refined soft tile. */
  .kb-bottom-nav a::before,
  .kb-bottom-nav button::before{
    display:none !important;
  }

  .kb-bottom-nav i{
    font-size:17px !important;
    color:#334155 !important;
    transition:color .16s ease,transform .16s ease !important;
  }

  .kb-bottom-nav .is-active{
    color:#ea580c !important;
    background:linear-gradient(180deg,#fff7ed 0%,#fff3e6 100%) !important;
    box-shadow:inset 0 0 0 1px rgba(249,115,22,.08) !important;
  }

  .kb-bottom-nav .is-active i{
    color:#f97316 !important;
    transform:translateY(-1px);
  }

  .kb-bottom-nav a:active,
  .kb-bottom-nav button:active{
    background:#f8fafc !important;
    transform:scale(.97) !important;
  }

  .kb-bottom-nav .is-active:active{
    background:#fff1e6 !important;
  }

  .kb-bottom-icon b{
    top:-7px !important;
    right:-12px !important;
    min-width:17px !important;
    height:17px !important;
    padding:0 4px !important;
    background:#f97316 !important;
    border:2px solid rgba(255,255,255,.98) !important;
    box-shadow:0 3px 8px rgba(249,115,22,.22);
    font-size:8px !important;
  }

  body.kb-frontend{padding-bottom:82px !important}
  .kb-whatsapp{bottom:88px !important}
}

@media (max-width:640px){
  .kb-bottom-nav{
    left:max(8px,env(safe-area-inset-left)) !important;
    right:max(8px,env(safe-area-inset-right)) !important;
    height:62px !important;
    border-radius:18px !important;
    padding:5px !important;
  }
  .kb-bottom-nav a,
  .kb-bottom-nav button{
    min-height:50px !important;
    font-size:8.75px !important;
    border-radius:13px !important;
  }
  .kb-bottom-nav i{font-size:16px !important}
  body.kb-frontend{padding-bottom:78px !important}
  .kb-whatsapp{bottom:84px !important}
}

@media (max-width:360px){
  .kb-bottom-nav{
    left:max(5px,env(safe-area-inset-left)) !important;
    right:max(5px,env(safe-area-inset-right)) !important;
    gap:2px !important;
  }
  .kb-bottom-nav a,
  .kb-bottom-nav button{
    font-size:8px !important;
    padding-inline:1px !important;
  }
  .kb-bottom-nav i{font-size:15px !important}
}
