/**
 * Mobil yan menü — Doping Hafıza tarzı
 */
body.md-site .md-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10080;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

body.md-site.md-drawer-open .md-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.md-site .md-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10090;
  width: min(88vw, 360px);
  max-width: 360px;
  height: 100%;
  height: 100dvh;
  background: #fff;
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.2);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

body.md-site.md-drawer-open .md-mobile-drawer {
  transform: translateX(0);
  pointer-events: auto;
}

body.md-site.md-drawer-open {
  overflow: hidden;
  touch-action: none;
}

body.md-site .md-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e8ecf1;
  flex-shrink: 0;
}

body.md-site .md-drawer-logo img {
  max-height: 42px;
  width: auto;
}

body.md-site .md-drawer-close {
  width: 44px;
  height: 44px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  color: #334155;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.md-site .md-drawer-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8ecf1;
  flex-shrink: 0;
}

body.md-site .md-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.25;
}

body.md-site .md-drawer-cta--wa {
  border: 2px solid #25d366;
  color: #25d366 !important;
  background: #fff;
}

body.md-site .md-drawer-cta--call {
  border: 2px solid #e11d48;
  color: #e11d48 !important;
  background: #fff;
}

body.md-site .md-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.md-site .md-drawer-nav {
  padding: 8px 0 8px;
  margin: 0;
  list-style: none;
}

body.md-site .md-drawer-nav .md-drawer-item {
  border-bottom: 1px solid #eef1f5;
}

body.md-site .md-drawer-nav .md-drawer-item > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #1e293b !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}

body.md-site .md-drawer-nav .md-drawer-item > a i.md-drawer-ico {
  width: 22px;
  text-align: center;
  color: #64748b;
  font-size: 16px;
}

body.md-site .md-drawer-nav .md-drawer-item > a .md-drawer-chevron {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.25s ease;
}

body.md-site .md-drawer-nav .md-drawer-item:not(.md-drawer-item--has-sub) > a .md-drawer-chevron {
  display: none;
}

body.md-site .md-drawer-nav .md-drawer-item--has-sub > a.md-drawer-toggle {
  cursor: pointer;
}

body.md-site .md-drawer-nav .md-drawer-item--has-sub.is-open > a .md-drawer-chevron {
  transform: rotate(180deg);
}

body.md-site .md-drawer-nav .md-drawer-subpanel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: #f8fafc;
}

body.md-site .md-drawer-nav .md-drawer-item--has-sub.is-open .md-drawer-subpanel {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.md-site .md-drawer-nav .md-drawer-subpanel a {
  display: block;
  padding: 12px 18px 12px 54px;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border-top: 1px solid #eef1f5;
}

body.md-site .md-drawer-nav .md-drawer-sub a {
  display: block;
  padding: 12px 18px 12px 54px;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border-top: 1px solid #f1f5f9;
}

body.md-site .md-drawer-extra {
  padding: 16px 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #fff !important;
}

body.md-site .md-drawer-extra .md-mobile-menu-cta,
body.md-site .md-drawer-extra .md-mobile-menu-cta--outline {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 13px 18px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  background: transparent !important;
  color: #64748b !important;
  border: 2px solid #64748b;
  box-shadow: none;
}

body.md-site .md-drawer-extra .md-mobile-menu-cta--ghost {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  background: transparent !important;
  color: #64748b !important;
  border: none;
  box-shadow: none;
}

body.md-site .md-drawer-extra .md-mobile-menu-cta--ghost i {
  color: #64748b !important;
}

@media (min-width: 992px) {
  body.md-site .md-drawer-backdrop,
  body.md-site .md-mobile-drawer {
    display: none !important;
  }
}

/* Mobilde menuzord dropdown gizle — drawer kullan */
@media (max-width: 991px) {
  body.md-site .md-site-header .menuzord-menu {
    display: none !important;
  }

  body.md-site .md-mobile-menu-btn {
    z-index: 10100 !important;
    pointer-events: auto !important;
  }
}
