/* =========================
   0) GENEL AYARLAR
   ========================= */
:root {
  --bs-primary: #cd2c22;
  --bs-primary-bg-subtle: #ffe6e5;
  /* Navbar yüksekliği (logoya göre 68–76 arası oynatılabilir) */
  --ux-header-h: 72px;
}

.ux-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
  background-color: transparent;
  transition: background-color .3s, box-shadow .3s;
}

.ux-header-pages {
  position: relative;
  z-index: 1050;
  display: flex;
  width: 100%;
  background-color: #cd2c22;
  overflow: visible;
}

.ux-nav {
  position: relative;
  z-index: 2000;
  overflow: visible;
}

.ux-menu .ux-submenu {
  position: absolute;
  z-index: 3000;
}

.ux-container {
  overflow: visible;
}

.hero,
.home-hero,
.banner-hero,
.site-hero {
  position: relative;
  z-index: 1;
}

.hero::before,
.hero::after {
  z-index: 1;
  pointer-events: none;
}

.ux-menu {
  overflow: visible;
}

.ux-header:not(.scrolled) {
  box-shadow: none;
}

.ux-header.scrolled {
  background-color: var(--bs-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.ux-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.ux-brand img {
  width: 130px;
  position: relative;
  height: auto;
  display: block;
}

.ux-brand--mobile {
  display: none;
}

@media (max-width: 992px) {

  .ux-brand--desktop {
    display: none;
  }

  .ux-brand--mobile {
    display: block;
  }


}

/* =========================
   1) MENÜ İSKELETİ
   ========================= */
.ux-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.ux-nav__center {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
}

.ux-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.ux-menu>li {
  list-style: none;
  position: relative;
}

.ux-menu>li>a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 12px 10px;
  text-decoration: none;
}

.ux-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ux-indicator {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  margin-left: 6px;
}

.ux-header.scrolled .ux-indicator {
  border-top-color: #fff;
}

/* =========================
   2) SAĞ MENÜ / BUTONLAR
   ========================= */
.ux-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #ebeff2;
  color: #06325d;
  position: relative;
}

.ux-header:not(.scrolled) .ux-iconbtn {
  background: rgba(0, 0, 0, .28);
  color: #fff;
}

.ux-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #2bb170;
}

.ux-listbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  background: var(--bs-primary);
  color: #fff;
}

.ux-listbtn--light {
  background: #fff;
  color: #031925;
}

.ux-listbtn--border {
  background: #fff;
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary);
}

.ux-listbtn--dark {
  background: #041b2d;
  color: #fff;
}

/* =========================
   3) DROPDOWN (KATEGORİ)
   ========================= */
.ux-menu .ux-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 520px;
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 25, 37, .12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 6px 14px;
}

.ux-menu .has-sub:hover>.ux-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ux-menu .ux-submenu li {
  list-style: none;
}

.ux-menu .ux-submenu a {
  display: block;
  padding: 10px 12px;
  color: #06325d;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ux-menu .ux-submenu a:hover {
  background: #f4f5f7;
  color: var(--bs-primary);
}

.ux-menu .ux-submenu:has(li:nth-child(-n+6)) {
  min-width: 260px;
  grid-template-columns: 1fr;
}

/* =========================
   4) HESAP DROPDOWN
   ========================= */
.ux-account {
  position: relative;
}

.ux-account__btn {
  padding: 0;
  width: 50px;
  height: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  border-radius: .32rem;
  background: #041b2d;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ux-header:not(.scrolled) .ux-account__btn {
  background: rgba(0, 0, 0, .36);
}

.ux-account__btn img {
  width: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.ux-dropdown {
  top: 58px;
  right: 0;
  left: auto;
  min-width: 320px;
  background: #fff;
  border: none;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
  position: absolute;
  z-index: 2000;
  display: none;
}

.ux-account.is-open .ux-dropdown {
  display: block;
}

.ux-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bs-primary);
  color: #fff;
}

.ux-dropdown__title {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}

.ux-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #031925;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  line-height: 1.2;
}

.ux-dropdown__item i {
  width: 18px;
  text-align: center;
}

.ux-dropdown__item:hover {
  background: #f8f9fa;
  color: var(--bs-primary);
}

.ux-chip {
  margin-left: auto;
  background: var(--bs-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.ux-dropdown__footer {
  padding: 12px 16px;
  background: #f8f9fa;
}

.ux-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #ffecec;
  color: #d90429;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.ux-logout:hover {
  background: #ffd7d7;
}

/* =========================
   5) MOBİL
   ========================= */
.ux-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ebeff2;
  border: 0;
  cursor: pointer;
  position: relative;
}

.ux-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #041b2d;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 0 0 #041b2d, 0 -6px 0 0 #041b2d;
}

.ux-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 84vw;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 25, 37, .12);
  transition: right .25s ease;
  z-index: 1200;
}

.ux-drawer__inner {
  padding: 16px;
  height: 100%;
  overflow: auto;
}

.ux-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1100;
}

.ux-nav.is-open #uxDrawer {
  right: 0;
}

/* YANLIŞ: .ux-nav.is-open ~ .ux-overlay */
/* DOĞRU:  */
.ux-nav.is-open .ux-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.ux-locked {
  overflow: hidden;
}

.ux-drawer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ux-mmenu {
  padding: 0;
  margin: 0;
}

.ux-mmenu__item {
  list-style: none;
  border-bottom: 1px solid #edf0f3;
}

.ux-mmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  font-size: 15px;
  color: #031925;
  text-decoration: none;
}

.ux-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #96a2b0;
  transition: transform .2s ease;
}

.ux-msubmenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding-left: 8px;
}

.ux-msubmenu__link {
  display: block;
  padding: 10px 0;
  color: #06325d;
  text-decoration: none;
}

.ux-mmenu__item.open>.ux-msubmenu {
  max-height: 600px;
}

.ux-mmenu__item.open>.ux-mmenu__link .ux-caret {
  transform: rotate(180deg);
}

@media (max-width: 992px) {
  .ux-nav__center {
    display: none;
  }

  .ux-toggle {
    display: inline-flex;
  }

  .ux-brand--desktop {
    display: none;
  }

  .ux-brand--mobile {
    display: block;
  }

  /* mobilde kategori dropdown’u accordion içinde tek sütun */
  .ux-menu .ux-submenu {
    position: static;
    min-width: 100%;
    max-height: none;
    overflow: visible;
    display: block;
    padding: 0;
  }
}

/* =========================
   6) DİĞER
   ========================= */
.ux-divider {
  height: .5px;
  width: 100%;
  border: 1px dashed #e0e8ed;
  border-radius: 50px;
  background: transparent;
}

.ux-divider__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 0 10px;
}

.ux-nav.is-open .ux-drawer {
  right: 0;
}

.ux-nav.is-open .ux-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ====== SAYFA TÜRÜNE GÖRE DAVRANIŞ ====== */
body.has-hero .ux-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
}

body.has-hero .ux-header.scrolled {
  background-color: var(--bs-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.no-hero .ux-header {
  position: relative !important;
  background-color: var(--bs-primary) !important;
  box-shadow: none !important;
}

body.has-hero #uxPage {
  padding-top: var(--ux-header-h);
}

body.no-hero #uxPage {
  padding-top: 24px;
}

/* ====== DİKEY ORTALAMA / LOGO & MENÜ HİZASI ====== */
.ux-header .ux-container {
  height: var(--ux-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-header-pages .ux-container {
  height: var(--ux-header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.ux-brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Logonun görsel yüksekliği (gerekirse 36–42px arası değiştir) */
.ux-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Menü linklerini header yüksekliğine sabitle, tek satır tut */
.ux-menu>li>a {
  height: var(--ux-header-h);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
  padding: 0 12px;
}

/* Üçgen caret hafif aşağı */
.ux-indicator {
  margin-top: 2px;
}

/* Sağ ikonlar da ortada */
.ux-nav__right {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ux-iconbtn,
.ux-account__btn {
  width: 44px;
  height: 44px;
  align-self: center;
}

.ux-menu>li:last-child>a {
  font-size: 14px;
  letter-spacing: 0;
  padding-right: 10px;
}

/* LOGO GÖRÜNÜRLÜK KONTROLÜ — sadece biri görünsün */
.ux-header .ux-brand--desktop {
  display: flex !important;
  align-items: center;
}

.ux-header .ux-brand--mobile {
  display: none !important;
  align-items: center;
}

@media (max-width: 992px) {
  .ux-header .ux-brand--desktop {
    display: none !important;
  }

  .ux-header .ux-brand--mobile {
    display: flex !important;
  }
}

.ux-header-pages .ux-brand--desktop {
  display: flex !important;
  align-items: center;
}

.ux-header-pages .ux-brand--mobile {
  display: none !important;
  align-items: center;
}

@media (max-width: 992px) {
  .ux-header-pages .ux-brand--desktop {
    display: none !important;
  }

  .ux-header-pages .ux-brand--mobile {
    display: flex !important;
  }
}