/* Midyeci Ibo — independent floating header */
.mi6-header {
  --mi6-progress: 0%;
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  color: #071b2a;
  pointer-events: none;
  transition: padding 260ms ease;
}

body.admin-bar .mi6-header {
  top: 32px;
}

.mi6-header.is-scrolled {
  padding-top: 8px;
  border: 0;
  background: transparent;
  color: #071b2a;
  backdrop-filter: none;
}

body .mi6-header,
body .mi6-header.is-scrolled {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.mi6-header .mi6-header__bar {
  position: relative;
  display: flex;
  width: min(100% - 48px, 1380px);
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition:
    width 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    min-height 260ms ease,
    padding 260ms ease,
    border-radius 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease,
    opacity 650ms ease,
    transform 760ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.mi2-js .mi6-header .mi6-header__bar {
  transform: translateY(-18px);
  opacity: 0;
}

.mi2-home.is-loaded .mi6-header .mi6-header__bar {
  transform: translateY(0);
  opacity: 1;
}

.mi6-header.is-scrolled .mi6-header__bar {
  width: min(100% - 72px, 1180px);
  min-height: 72px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mi6-logo {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  place-items: center;
  gap: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(7, 27, 42, 0.1);
  box-shadow: 0 16px 42px rgba(7, 27, 42, 0.15), 0 0 0 7px rgba(255, 255, 255, 0.78);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1), width 260ms ease, height 260ms ease, flex-basis 260ms ease;
}

.mi6-logo::after {
  position: absolute;
  inset: -5px;
  transform: scale(0.82);
  border: 1px solid rgba(255, 75, 18, 0.55);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mi6-logo:hover {
  transform: rotate(-4deg) scale(1.04);
}

.mi6-logo:hover::after {
  transform: scale(1);
  opacity: 1;
}

.mi6-header .mi6-logo img {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(7, 27, 42, 0.1);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  transition: width 260ms ease, height 260ms ease;
}

.mi6-header.is-scrolled .mi6-logo {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  box-shadow: 0 10px 28px rgba(7, 27, 42, 0.14), 0 0 0 5px rgba(255, 255, 255, 0.78);
}

.mi6-header.is-scrolled .mi6-logo img {
  width: 72px;
  height: 72px;
}

.mi6-header .mi6-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid rgba(7, 27, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(7, 27, 42, 0.1);
  backdrop-filter: blur(20px) saturate(1.2);
  font-size: 11px;
  font-weight: 700;
}

.mi6-nav > a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 13px;
  color: rgba(7, 27, 42, 0.67) !important;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.mi6-nav > a > i:first-child {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  font-size: 15px;
  font-style: normal;
  transition: transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.mi6-nav > a:not(.mi6-nav__cta)::after {
  position: absolute;
  right: auto;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%) scale(0);
  transform-origin: center;
  border-radius: 50%;
  background: #ff4b12;
  content: "";
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mi6-nav > a:not(.mi6-nav__cta):hover,
.mi6-nav > a:not(.mi6-nav__cta).is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  color: #071b2a !important;
  box-shadow: 0 6px 18px rgba(7, 27, 42, 0.07);
}

.mi6-nav > a:not(.mi6-nav__cta):hover > i:first-child,
.mi6-nav > a:not(.mi6-nav__cta).is-active > i:first-child {
  transform: translateY(-1px) scale(1.06);
  color: #ff4b12;
}

.mi6-nav > a:not(.mi6-nav__cta):hover::after,
.mi6-nav > a:not(.mi6-nav__cta).is-active::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.mi6-header .mi6-nav__cta {
  min-width: 142px;
  gap: 9px;
  margin-left: 6px;
  padding: 0 14px 0 16px;
  border-radius: 13px;
  background: #ff4b12;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 75, 18, 0.2);
}

.mi6-nav__cta > i:last-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  transition: transform 220ms ease, background-color 220ms ease;
}

.mi6-header .mi6-nav__cta:hover {
  transform: translateY(-2px);
  background: #071b2a;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(7, 27, 42, 0.18);
}

.mi6-header .mi6-nav__cta:hover > i:first-child {
  transform: scale(1.08);
}

.mi6-header .mi6-nav__cta:hover > i:last-child {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.12);
}

.mi6-header__progress {
  display: none;
  position: absolute;
  right: auto;
  bottom: -1px;
  left: 24px;
  width: clamp(0px, calc(var(--mi6-progress) - 24px), calc(100% - 48px));
  max-width: calc(100% - 48px);
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8b35, #ff4b12);
  box-shadow: 0 0 12px rgba(255, 75, 18, 0.25);
  pointer-events: none;
  transition: width 100ms linear;
}

.mi6-menu-toggle {
  color: #071b2a;
}

.mi6-menu-toggle > i {
  font-size: 19px;
  font-style: normal;
  transition: transform 220ms ease, opacity 180ms ease;
}

.mi6-menu-toggle > .fa-times,
.mi6-menu-toggle[aria-expanded="true"] > .fa-bars {
  display: none;
}

.mi6-menu-toggle[aria-expanded="true"] > .fa-times {
  display: block;
}

@media (max-width: 860px) {
  body.admin-bar .mi6-header {
    top: 46px;
  }

  .mi6-header,
  .mi6-header.is-scrolled {
    padding-top: 8px;
    background: transparent;
    color: #071b2a;
  }

  body.mi2-menu-open .mi6-header {
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
  }

  .mi6-header .mi6-header__bar,
  .mi6-header.is-scrolled .mi6-header__bar {
    width: calc(100% - 24px);
    min-height: 78px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mi6-header .mi6-logo,
  .mi6-header.is-scrolled .mi6-logo {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    box-shadow: 0 12px 32px rgba(7, 27, 42, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.8);
  }

  .mi6-header .mi6-logo img,
  .mi6-header.is-scrolled .mi6-logo img {
    width: 78px;
    height: 78px;
  }

  .mi6-header .mi6-menu-toggle {
    position: relative;
    z-index: 82;
    display: flex;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(7, 27, 42, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 12px 30px rgba(7, 27, 42, 0.12);
    color: #071b2a;
  }

  body.mi2-menu-open .mi6-header .mi6-menu-toggle {
    border-color: rgba(7, 27, 42, 0.14);
    background: #f2f5f4 !important;
    color: #071b2a;
  }

  .mi6-header .mi6-nav {
    position: absolute;
    z-index: 79;
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    left: 0;
    display: grid;
    visibility: hidden;
    width: 100%;
    gap: 6px;
    margin: 0;
    padding: 10px;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    border: 1px solid rgba(7, 27, 42, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(7, 27, 42, 0.18);
    color: #071b2a;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(22px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1), visibility 220ms ease;
  }

  .mi6-header .mi6-nav.is-open {
    visibility: visible;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .mi6-header .mi6-nav > a,
  .mi6-header .mi6-nav > a:not(.mi2-menu__cta) {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    gap: 13px;
    padding: 0 16px;
    border-radius: 14px;
    color: #071b2a !important;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .mi6-header .mi6-nav > a > i:first-child {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .mi6-header .mi6-nav > a:not(.mi6-nav__cta)::after {
    top: 50%;
    right: 16px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%) scale(0);
  }

  .mi6-header .mi6-nav > a:not(.mi6-nav__cta).is-active::after {
    transform: translateY(-50%) scale(1);
  }

  .mi6-header .mi6-nav__cta {
    min-width: 0;
    margin: 4px 0 0;
    background: #ff4b12 !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(255, 75, 18, 0.22);
  }

  .mi6-header:not(.is-scrolled) .mi6-nav.is-open .mi6-nav__cta {
    background: #ff4b12 !important;
    color: #fff !important;
  }

  .mi6-header .mi6-nav__cta > i:last-child {
    margin-left: auto;
  }

  .mi6-header__progress {
    left: 18px;
    max-width: calc(100% - 36px);
  }
}

@media (max-width: 420px) {
  .mi6-header .mi6-header__bar,
  .mi6-header.is-scrolled .mi6-header__bar {
    width: calc(100% - 16px);
  }
}

/* Mobile menu v2 — compact quick-access panel */
@media (max-width: 860px) {
  .mi6-header .mi6-menu-toggle {
    border-radius: 50%;
    transition: transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1), background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
  }

  body.mi2-menu-open .mi6-header .mi6-menu-toggle {
    transform: rotate(90deg);
    border-color: #071b2a;
    background: #071b2a !important;
    box-shadow: 0 14px 34px rgba(7, 27, 42, 0.2);
    color: #fff;
  }

  .mi6-header .mi6-nav {
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    width: min(350px, calc(100vw - 24px));
    gap: 8px;
    padding: 14px;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    border: 1px solid rgba(7, 27, 42, 0.09);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 80px rgba(7, 27, 42, 0.2), 0 3px 10px rgba(7, 27, 42, 0.05);
  }

  .mi6-header .mi6-nav::before {
    display: block;
    padding: 3px 5px 6px;
    color: rgba(7, 27, 42, 0.48);
    content: "MENÜ / HIZLI ERİŞİM";
    font-family: "Space Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
  }

  .mi6-header .mi6-nav > a,
  .mi6-header .mi6-nav > a:not(.mi2-menu__cta) {
    min-height: 68px;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(7, 27, 42, 0.065);
    border-radius: 18px;
    background: #f5f7f6;
  }

  .mi6-header .mi6-nav > a:not(.mi6-nav__cta):hover,
  .mi6-header .mi6-nav > a:not(.mi6-nav__cta).is-active {
    transform: translateX(-3px);
    background: #fff;
    box-shadow: 0 10px 24px rgba(7, 27, 42, 0.08);
  }

  .mi6-header .mi6-nav > a > i:first-child {
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 75, 18, 0.13);
    border-radius: 14px;
    background: rgba(255, 75, 18, 0.07);
    color: #ff4b12;
  }

  .mi6-header .mi6-nav > a > span {
    display: grid;
    gap: 3px;
    line-height: 1.1;
  }

  .mi6-header .mi6-nav > a > span::after {
    color: rgba(7, 27, 42, 0.48);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .mi6-header .mi6-nav > a[data-nav-section="urunler"] > span::after { content: "Midye ve kokoreç"; }
	.mi6-header .mi6-nav > a[data-nav-section="home"] > span::after { content: "Başlangıca dön"; }
	.mi6-header .mi6-nav > a[data-nav-section="products"] > span::after { content: "Midye ve kokoreç"; }
	.mi6-header .mi6-nav > a[data-nav-section="areas"] > span::after { content: "İzmir'in 30 ilçesi"; }
	.mi6-header .mi6-nav > a[data-nav-section="contact"] > span::after { content: "Telefon, WhatsApp, adres"; }
  .mi6-header .mi6-nav > a[data-nav-section="akis"] > span::after { content: "Sipariş nasıl ilerler?"; }
  .mi6-header .mi6-nav > a[data-nav-section="sss"] > span::after { content: "Merak edilenler"; }
  .mi6-header .mi6-nav > a[data-nav-section="teklif"] > span::after { content: "Talebini hızlıca ilet"; }

  .mi6-header .mi6-nav > a:not(.mi6-nav__cta)::after,
  .mi6-header .mi6-nav > a:not(.mi6-nav__cta).is-active::after {
    top: 50%;
    right: 12px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    color: #071b2a;
    content: "\f061";
    font-family: "Font Awesome 5 Free" !important;
    font-size: 12px;
    font-weight: 900;
    opacity: 1;
  }

  .mi6-header .mi6-nav__cta {
    min-height: 66px;
    margin-top: 2px;
    padding: 8px 9px 8px 12px;
    border: 0;
    border-radius: 18px;
  }

  .mi6-header .mi6-nav__cta > i:first-child {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
  }

  .mi6-header .mi6-nav__cta > span::after {
    color: rgba(255, 255, 255, 0.7);
  }
}

/* Mobile menu v3 — viewport glass layer */
@media (max-width: 860px) {
  body.mi2-menu-open {
    overflow: hidden;
  }

  .mi2-home.is-loaded .mi6-header .mi6-header__bar {
    transform: none;
  }

  .mi6-header,
  .mi6-header.is-scrolled,
  .mi6-header .mi6-header__bar,
  .mi6-header.is-scrolled .mi6-header__bar {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .mi6-header .mi6-logo,
  .mi6-header .mi6-menu-toggle {
    position: relative;
    z-index: 82;
  }

  .mi6-header .mi6-nav {
    position: fixed;
    z-index: 79;
    inset: 0;
    width: 100vw;
    min-height: 100svh;
    align-content: start;
    gap: 9px;
    padding: 118px 18px 28px;
    overflow-y: auto;
    transform: translate3d(0, -22px, 0);
    transform-origin: top center;
    border: 0;
    border-radius: 0;
    background: rgba(246, 249, 248, 0.84);
    box-shadow: none;
    backdrop-filter: blur(28px) saturate(1.12);
  }

  .mi6-header .mi6-nav.is-open {
    transform: translate3d(0, 0, 0);
  }

  .mi6-header .mi6-nav::before,
  .mi6-header .mi6-nav > a {
    width: calc(100vw - 48px);
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
  }

  .mi6-header .mi6-nav::before {
    padding: 1px 4px 8px;
  }

  .mi6-header .mi6-nav > a,
  .mi6-header .mi6-nav > a:not(.mi2-menu__cta) {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 28px rgba(7, 27, 42, 0.055);
  }

  .mi6-header .mi6-nav__cta {
    box-shadow: 0 16px 36px rgba(255, 75, 18, 0.22);
  }
}

/* Mobile CTA v2 */
@media (max-width: 860px) {
  .mi6-header .mi6-nav > a.mi6-nav__cta,
  .mi6-header .mi6-nav > a.mi6-nav__cta:hover,
  .mi6-header:not(.is-scrolled) .mi6-nav.is-open > a.mi6-nav__cta {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px;
    overflow: hidden;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: linear-gradient(112deg, #ff5d1d 0%, #ff3f0d 72%, #f43208 100%) !important;
    box-shadow: 0 18px 42px rgba(255, 75, 18, 0.26), inset 0 1px rgba(255, 255, 255, 0.23);
    text-align: left;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta::before {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 78% 15%, rgba(255, 255, 255, 0.23), transparent 27%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 34%);
    content: "";
    pointer-events: none;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta > i:first-child,
  .mi6-header .mi6-nav > a.mi6-nav__cta > span,
  .mi6-header .mi6-nav > a.mi6-nav__cta > i {
    position: relative;
    z-index: 1;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta > i:first-child {
    display: block;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta > span {
    flex: 1 1 auto;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.025em;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta > span::after {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 600;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta > i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-left: auto;
    border: 0;
    background: #fff;
    box-shadow: 0 8px 22px rgba(122, 29, 0, 0.18);
    color: #ff4b12;
    font-size: 14px;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta:hover > i {
    transform: rotate(45deg) scale(1.04);
    background: #fff;
  }

  .mi6-header .mi6-nav > a.mi6-nav__cta:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi6-header,
  .mi6-header *,
  .mi6-header *::before,
  .mi6-header *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .mi6-header .mi6-header__bar {
    transform: none !important;
    opacity: 1 !important;
  }
}
