/* KyiteZay — app-style side drawer (menu + footer links) */
.kz-drawer-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.75rem 0 0.55rem;
  margin-right: 0.35rem;
  border: 1px solid var(--kz-line, #f0d9c0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--kz-ink, #1c1917);
  font-family: var(--kz-font, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.08);
}

.kz-drawer-toggle__bars,
.kz-drawer-toggle__bars::before,
.kz-drawer-toggle__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--kz-brand, #ff6a00);
  content: '';
  position: relative;
}

.kz-drawer-toggle__bars::before {
  position: absolute;
  top: -5px;
}

.kz-drawer-toggle__bars::after {
  position: absolute;
  top: 5px;
}

.kz-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(2px);
}

.kz-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  width: min(86vw, 340px);
  height: 100%;
  max-height: 100dvh;
  background:
    linear-gradient(180deg, #fffdf9 0%, #fff8f1 100%);
  border-right: 1px solid var(--kz-line, #f0d9c0);
  box-shadow: 16px 0 40px rgba(28, 25, 23, 0.18);
  transform: translateX(-104%);
  transition: transform 0.28s ease;
  font-family: var(--kz-font, 'Outfit', sans-serif);
}

.kz-drawer.is-open {
  transform: translateX(0);
}

.kz-drawer[hidden],
.kz-drawer-backdrop[hidden] {
  display: none !important;
}

.kz-drawer-backdrop:not([hidden]) {
  display: block;
}

.kz-drawer:not([hidden]) {
  display: flex;
}

.kz-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--kz-line, #f0d9c0);
  background: rgba(255, 255, 255, 0.85);
}

.kz-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--kz-ink, #1c1917) !important;
  text-decoration: none !important;
  font-family: var(--kz-display, 'Sora', sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
}

.kz-drawer__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.kz-drawer__brand span span {
  color: var(--kz-brand, #ff6a00);
}

.kz-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--kz-line, #f0d9c0);
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--kz-ink, #1c1917);
}

.kz-drawer__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0 1.5rem;
}

.kz-drawer__section {
  padding: 0.65rem 1rem 0.85rem;
}

.kz-drawer__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kz-muted, #6b5e54);
}

.kz-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kz-drawer__list li + li {
  margin-top: 0.15rem;
}

.kz-drawer__list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--kz-ink, #1c1917) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.kz-drawer__list a:hover,
.kz-drawer__list a.is-active {
  background: var(--kz-sun-soft, #fff1d6);
  color: var(--kz-brand-deep, #c2410c) !important;
}

.kz-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--kz-brand, #ff6a00);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.kz-drawer__section--social {
  border-top: 1px solid var(--kz-line, #f0d9c0);
  margin-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.kz-drawer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.kz-drawer__social a.kz-soc,
.kz-drawer__social a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--kz-line, #f0d9c0);
  background: #fff;
  color: var(--kz-brand-deep, #c2410c) !important;
  flex: 0 0 36px;
}

.kz-drawer__social a:hover {
  border-color: var(--kz-brand, #ff6a00);
  background: var(--kz-sun-soft, #fff1d6);
}

.kz-drawer__social a svg,
.kz-drawer__social a svg.d-block {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.kz-drawer__social a svg [fill],
.kz-drawer__social a svg [stroke] {
  fill: var(--kz-brand, #ff6a00) !important;
  stroke: none !important;
}

body.kz-drawer-open {
  overflow: hidden;
}

.kz-footer-drawer-hint {
  display: none;
  margin: 0;
  font-size: 0.82rem;
  color: var(--kz-footer-ink, rgba(255, 247, 237, 0.72));
  opacity: 0.9;
}

/* Mobile: show drawer toggle, hide stock overlay menu + footer link columns */
@media (max-width: 991.98px) {
  .kz-drawer-toggle {
    display: inline-flex;
    min-height: 36px;
    padding: 0 0.55rem;
    margin-right: 0;
  }

  /* Compact Menu chip — icon + short label fits one header row */
  .kz-drawer-toggle__label {
    font-size: 0.8rem;
  }

  body.kyitezay-theme.kz-side-drawer-on .kz-header-bar {
    flex-wrap: nowrap !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  body.kyitezay-theme.kz-side-drawer-on #logo .kz-wordmark {
    font-size: 1.15rem !important;
    white-space: nowrap;
  }

  body.kyitezay-theme.kz-side-drawer-on nav.main-menu .menu-button {
    display: none !important;
  }

  body.kyitezay-theme.kz-side-drawer-on.kz-mobile-hide-footer-menu footer.page-footer .footer-menu,
  body.kyitezay-theme.kz-side-drawer-on footer.page-footer.kz-footer-drawer-mode .footer-menu {
    display: none !important;
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer.kz-footer-drawer-mode {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer .footer-data {
    margin-top: 0 !important;
    padding-top: 0.35rem;
    border-top: 0 !important;
    align-items: center;
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer .footer-data .icons {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer .footer-data .icons a {
    margin: 0 !important;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.28);
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer .footer-data .icons a svg {
    width: 16px !important;
    height: 16px !important;
  }

  body.kyitezay-theme.kz-side-drawer-on footer.page-footer .footer-data .col-12.font-size-xs {
    margin-top: 0 !important;
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0.85;
  }

  body.kyitezay-theme.kz-side-drawer-on .kz-footer-drawer-hint {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 183, 3, 0.22);
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body.kyitezay-theme.kz-side-drawer-on #logo img {
    display: none;
  }
}

@media (max-width: 420px) {
  .kz-drawer-toggle__label {
    display: none;
  }

  .kz-drawer-toggle {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  body.kyitezay-theme .kz-header-bar__location {
    max-width: min(48vw, 140px);
  }

  body.kyitezay-theme .kz-header-bar__location #mf-location-selector .default > span {
    max-width: 5.25rem;
  }

  body.kyitezay-theme.kz-side-drawer-on #logo .kz-wordmark {
    font-size: 1.05rem !important;
  }
}

@media (min-width: 992px) {
  .kz-drawer-toggle,
  .kz-drawer,
  .kz-drawer-backdrop,
  .kz-footer-drawer-hint {
    display: none !important;
  }
}

/* Safe area for notched phones + bottom mobile tab bar */
@supports (padding: env(safe-area-inset-bottom)) {
  .kz-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

body.kyitezay-theme.kz-side-drawer-on .mb-menu ~ .kz-drawer,
body.kyitezay-theme.kz-side-drawer-on .kz-drawer {
  z-index: 1090;
}
