/* ===== FILE: arm-navbar.css (Sadeleştirilmiş) ===== */
/* Bu dosya artık SADECE navbar + offcanvas + qs temelini içerir.
   Randevu CTA stilleri AYRI dosyada olmalı: /assets/css/arm-cta.css
*/

/* =========================================================
   BASE
   ========================================================= */
html{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: .1px;
}
body{
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans';
  background: radial-gradient(1200px 600px at 80% -200px, #ffffff 8%, #f6f8fc 40%, #eef2f8 75%);
  background-attachment: fixed;
}

/* Tema değişkenleri */
:root{
  --arm-rose:#e11d48;
  --arm-rose-2:#fb7185;
  --arm-rose-dark:#be123c;

  --arm-ink:#0f172a;
  --arm-muted:#64748b;

  --arm-border:#e7ecf5;
  --arm-surface:#f6f8fc;

  --arm-shadow:0 12px 28px rgba(15,23,42,.08);

  /* Glass helpers */
  --arm-glass: rgba(255,255,255,.66);
  --arm-glass-2: rgba(255,255,255,.78);
  --arm-glass-border: rgba(15,23,42,.10);
  --arm-glass-shadow: 0 18px 60px rgba(2,6,23,.18);
}

/* === CLS KILIT DÜZELTMELERİ === */
.page-hero .breadcrumb{ white-space:nowrap; }
@media (max-width:576px){ .page-hero .breadcrumb{ white-space:normal; } }
.page-hero .crumb.small{ min-height:28px; }
.bi{ display:inline-block; width:1em; min-width:1em; line-height:1; }
@supports (font-size-adjust: 0.5){
  html{ font-size-adjust:.52; }
}

/* =========================================================
   FLAT NAVBAR — SADE / ŞIK
   ========================================================= */
.arm-nav{
  position: sticky;
  top: 0;
  z-index: 1035; /* Bootstrap sticky-top üstü */
  padding: 9px 0;

  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);

  border-bottom: 1px solid rgba(15,23,42,.07);

  /* Scroll jitter fix */
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  backface-visibility: hidden;
  will-change: transform;
}

.arm-box{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:0;
}

.arm-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
.arm-brand:focus-visible{
  outline:none;
  border-radius:12px;
  box-shadow:0 0 0 3px rgba(244,63,94,.18);
}
.arm-logo{
  height:38px;
  width:auto;
  object-fit:contain;
}

.arm-menu-desktop{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  list-style:none;
  padding:0;
  margin-bottom:0;
}

/* =========================================================
   PILL (Desktop menü)
   ========================================================= */
.arm-pill{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;

  padding:7px 10px;
  border-radius:14px;

  font-weight:800;
  letter-spacing:.1px;
  font-size:.94rem;
  line-height:1;

  text-decoration:none !important;
  color:var(--arm-ink);

  background: rgba(255,255,255,.62);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 8px 18px rgba(2,6,23,.06);

  overflow:hidden;

  transition:
    background .14s ease,
    border-color .14s ease,
    transform .14s ease,
    color .14s ease,
    box-shadow .14s ease;
}

.arm-pill .arm-icon{
  display:grid;
  place-items:center;

  width:26px;
  height:26px;
  border-radius:10px;

  font-size:1rem;
  color: var(--arm-rose);

  background: rgba(244,63,94,.06);
  border: 1px solid rgba(244,63,94,.18);
  box-shadow: none;

  flex:0 0 auto;
}

.arm-pill::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:5px;

  height:2px;
  border-radius:999px;

  background: linear-gradient(90deg,
    rgba(225,29,72,0),
    rgba(225,29,72,.92),
    rgba(251,113,133,.82),
    rgba(225,29,72,0)
  );

  transform: translateY(8px);
  opacity:0;

  transition: transform .14s ease, opacity .14s ease;
}

@media (hover:hover) and (pointer:fine){
  .arm-pill:hover{
    background: rgba(255,255,255,.82);
    border-color: rgba(244,63,94,.16);
    box-shadow: 0 12px 26px rgba(2,6,23,.09);
    transform: translateY(-1px);
  }
  .arm-pill:hover::after{
    opacity:1;
    transform: translateY(0);
  }
}

.arm-pill:focus-visible{
  outline:none;
  background: rgba(255,255,255,.82);
  border-color: rgba(244,63,94,.22);
  box-shadow: 0 0 0 3px rgba(244,63,94,.14), 0 12px 26px rgba(2,6,23,.09);
}
.arm-pill:focus-visible::after{
  opacity:1;
  transform: translateY(0);
}

.arm-pill.is-active{
  background: rgba(255,255,255,.72);
  border-color: rgba(244,63,94,.22);
  color: var(--arm-rose-dark);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}
.arm-pill.is-active .arm-icon{
  background: rgba(244,63,94,.06);
  border-color: rgba(244,63,94,.22);
  color: var(--arm-rose-dark);
}
.arm-pill.is-active::after{
  opacity:1;
  transform: translateY(0);
}

/* =========================================================
   Hamburger (mobil)
   ========================================================= */
.arm-toggle{
  margin-left:auto;
  display:grid;
  place-items:center;
  width:44px; height:44px; padding:0;
  border-radius:12px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);

  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
@media (hover:hover) and (pointer:fine){
  .arm-toggle:hover{
    background: rgba(255,255,255,.88);
    border-color: rgba(244,63,94,.20);
    box-shadow: 0 14px 28px rgba(2,6,23,.12);
  }
}
.arm-toggle:focus-visible{
  outline:none;
  border-color: rgba(244,63,94,.30);
  box-shadow: 0 0 0 3px rgba(244,63,94,.16), 0 14px 28px rgba(2,6,23,.12);
}
.arm-toggle:active{ transform:translateY(1px); }
.arm-toggle .navbar-toggler-icon{
  width:1.55rem; height:1.55rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23e11d48' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =========================================================
   OFFCANVAS (MOBİL MENÜ) — temel
   ========================================================= */
.offcanvas-backdrop{ z-index: 1040; }
.offcanvas{ z-index: 1045; }

.offcanvas-backdrop.show{
  opacity: .42;
  background: rgba(2,6,23,.58);
}

.arm-canvas{
  --bs-offcanvas-width: min(88vw, 360px);

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.90) 0%,
    rgba(255,255,255,.84) 52%,
    rgba(255,255,255,.78) 100%
  );
  color: var(--arm-ink);

  border-left: 1px solid rgba(15,23,42,.12);
  border-radius: 0;

  box-shadow: -14px 0 40px rgba(2,6,23,.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);

  overflow: hidden;
}

.arm-canvas::before{
  content:"";
  position:absolute;
  inset:-40% -35% auto auto;
  width:340px; height:340px;
  background: radial-gradient(circle at 30% 30%,
    rgba(244,63,94,.26) 0%,
    rgba(244,63,94,.10) 35%,
    rgba(244,63,94,0) 70%
  );
  filter: blur(8px);
  pointer-events:none;
  z-index:0;
}

.arm-canvas::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:42%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(244,63,94,.06) 55%,
    rgba(2,6,23,.04) 100%
  );
  pointer-events:none;
  z-index:0;
}

.arm-canvas .offcanvas-header{
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.76),
    rgba(255,255,255,.60)
  );

  border-bottom: 1px solid rgba(15,23,42,.06);
  padding: 12px 14px;

  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.arm-canvas .offcanvas-title{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--arm-ink);
}
.arm-canvas .btn-close{
  filter: none;
  opacity: .70;
}

.arm-canvas-head{
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
}
.arm-canvas-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.arm-canvas-brand:focus-visible{
  outline:none;
  border-radius:14px;
  box-shadow:0 0 0 3px rgba(244,63,94,.18);
}
.arm-logo-sheen--sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  overflow:hidden;
}
.arm-canvas .arm-logo{
  height:34px;
  width:auto;
  object-fit:contain;
}
.arm-canvas-name{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--arm-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 220px;
}

.arm-canvas .offcanvas-body{
  z-index: 1;
  padding: 14px 14px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;

  display: flex;
  flex-direction: column;
}

.arm-menu-mobile{
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arm-m-pill{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;

  color: var(--arm-ink);

  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);

  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);

  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
#armMenu .arm-m-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
#armMenu .arm-m-ico{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background: rgba(255,228,230,.78);
  border: 1px solid rgba(244,63,94,.24);
  color: var(--arm-rose);
}
#armMenu .arm-m-ico i{
  color: inherit;
  opacity: 1;
  font-size: 1.05rem;
}
#armMenu .arm-m-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#armMenu .arm-m-pill::after{
  content:"";
  width:10px;
  height:10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left:auto;
  opacity:.90;
  transition: transform .16s ease, opacity .16s ease;
}
@media (hover:hover) and (pointer:fine){
  #armMenu .arm-m-pill:hover::after{
    transform: translateX(2px) rotate(45deg);
    opacity: 1;
  }
}
@media (hover:hover) and (pointer:fine){
  .arm-m-pill:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(2,6,23,.12);
    border-color: rgba(225,29,72,.22);
    background: rgba(255,255,255,.88);
  }
}
.arm-m-pill:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(244,63,94,.22), 0 14px 28px rgba(2,6,23,.12);
}
.arm-m-pill.is-active{
  background: rgba(255,228,230,.72);
  border-color: rgba(244,63,94,.28);
  color: var(--arm-rose-dark);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .arm-canvas{ background: #ffffff; }
  .arm-m-pill{ background: #ffffff; }
}

/* Performans: Offcanvas kapalıyken blur'ı kapat */
.arm-canvas.offcanvas:not(.show):not(.showing){
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Offcanvas açıkken scroll kilidi (JS ile body class eklenirse) */
body.arm-menu-open,
body.arm-offcanvas-open{
  overflow: hidden;
  touch-action: none;
}
body.arm-menu-open .floating-button,
body.arm-offcanvas-open .floating-button{
  opacity: 0;
  pointer-events: none;
  transform: scale(.98);
}

/* =========================================================
   QUICK SEARCH — temel (tema ile uyum)
   ========================================================= */
#qs-search, #qs-live{
  --qs-bg:var(--arm-surface, #f7f9fc);
  --qs-card:#ffffff;
  --qs-border:var(--arm-border, #e7ecf5);
  --qs-text:var(--arm-ink, #0f172a);
  --qs-placeholder:#8a94a6;
  --qs-focus:#f43f5e;
  --qs-focus-ring:rgba(244,63,94,.22);
  --qs-overlay-scrim:rgba(15,23,42,.45);
  --qs-header-grad-start:rgba(255,255,255,.98);
  --qs-header-grad-end:rgba(255,255,255,.94);

  --qs-input-bg:#ffffff;
  --qs-btn-bg:linear-gradient(180deg,#ffffff,#fbfbfe);

  --qs-row-border:var(--qs-border);
  --qs-row-bg:linear-gradient(180deg,#ffffff,#fbfcff);
  --qs-row-hover:#ffffff;

  --qs-img-border:var(--qs-border);

  --qs-title:var(--arm-ink,#0f172a);
  --qs-sku:#708198;
  --qs-price:var(--arm-rose,#e11d48);
  --qs-chip:#0f172a;
}

/* Overlay katman/blur/tıklama sistemi (temel) */
#qs-live{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
#qs-live.active{ display:block; }
#qs-live .scrim{
  position:absolute;
  inset:0;
  z-index:1;
  background: var(--qs-overlay-scrim);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter:none !important;
}
#qs-live .head,
#qs-live .list{
  position: relative;
  z-index: 2;
  filter:none !important;
}
#qs-live .head{
  background:linear-gradient(180deg,var(--qs-header-grad-start),var(--qs-header-grad-end));
  border-bottom:1px solid var(--qs-border);
}
#qs-live .head input{
  background:var(--qs-input-bg) !important;
  border:1px solid var(--qs-border) !important;
  color:var(--qs-text) !important;
  caret-color:var(--qs-text);
}
#qs-live .head input::placeholder{ color:var(--qs-placeholder) !important; }
#qs-live .head .btn-s{
  background:var(--qs-btn-bg) !important;
  border:1px solid var(--qs-border) !important;
  color:var(--qs-text) !important;
}
#qs-live .list{ background: transparent; }
#qs-live .row{
  grid-template-columns:60px 1fr auto;
  border-bottom:1px solid var(--qs-row-border);
  background:var(--qs-row-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#qs-live .row:hover{ background:var(--qs-row-hover); }
#qs-live .img{ background:var(--qs-card) center/cover no-repeat; border:1px solid var(--qs-img-border); }
#qs-live .row .title, #qs-live .row .title a{
  color:var(--qs-title) !important;
  font-weight:800;
  letter-spacing:.1px;
  line-height:1.28;
  text-decoration:none;
}
#qs-live .sku{ color:var(--qs-sku) !important; }
#qs-live .price{ color:var(--qs-price) !important; font-weight:900; }
#qs-search .chip{ color:var(--qs-chip); }

/* =========================================================
   Responsive — sadece navbar stabilizasyonu + CTA yerleşim hook
   (CTA görsel stil bu dosyada YOK)
   ========================================================= */
@media (max-width: 991.98px){
  /* Mobile performans: fixed background titreme yapabilir */
  body{ background-attachment: scroll; }

  /* Sticky blur kapat */
  .arm-nav{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.94);
  }

  .arm-nav{ padding:8px 0; }
  .arm-logo{ height:34px; }
  .arm-toggle{ width:42px; height:42px; border-radius:11px; }

  /* CTA yerleşimi (arm-cta.css kullanıyorsan gerekli) */
  .arm-brand{ flex: 0 0 auto; }
  .arm-cta--wide{
    flex: 1 1 auto;
    margin: 0 10px;
    justify-content: center;
    min-height: 44px;
  }
  .arm-toggle{ margin-left: 0 !important; }
}
@media (max-width: 380px){
  .arm-cta-label{ display:none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .arm-pill,.arm-toggle,.arm-m-pill{transition:none !important}
}
