/* ZhostPro - Mobile drawer menu (below 992px) */
:root {
  --vm-font-main: "Outfit", sans-serif;
  --vm-font-sub: "Montserrat", "Outfit", sans-serif;
  --vm-red: var(--color-one, #c52228);
  --vm-blue: var(--color-secondary, #2245c4);
  --vm-text: #1d1d1f;
}

.vm-overlay, .vm-drawer { display: none; }

@media (max-width: 991px) {
  .vm-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 100000;
  }
  .vm-drawer {
    display: block; position: fixed; top: 0; left: 0; height: 100%; height: 100dvh;
    width: 78.5vw; max-width: 380px; background: #fff; border-left: 3px solid var(--vm-red);
    transform: translateX(-102%); visibility: hidden; transition: transform .3s ease, visibility .3s ease;
    z-index: 100001; overflow: hidden; box-sizing: border-box;
  }
  body.vm-open .vm-overlay { opacity: 1; visibility: visible; }
  body.vm-open .vm-drawer { transform: translateX(0); visibility: visible; }
  body.vm-open { overflow: hidden; }

  :where(.vm-drawer button) { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
  .vm-drawer ul { list-style: none; margin: 0; padding: 0; }
  .vm-drawer a { text-decoration: none; }

  /* panels */
  .vm-panel {
    position: absolute; inset: 0; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    transition: transform .3s ease; transform: translateX(100%); visibility: hidden;
  }
  .vm-panel.is-active { transform: translateX(0); visibility: visible; }
  .vm-panel-main { transform: translateX(0); visibility: visible; }
  .vm-panel-main:not(.is-active) { transform: translateX(-30%); visibility: hidden; }

  .vm-close { color: var(--vm-red); font-size: 22px; line-height: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

  /* ---------- main panel ---------- */
  .vm-main-top { display: flex; justify-content: flex-end; padding: 12px 12px 6px; min-height: 60px; }
  .vm-main-list { margin: 0 32px !important; border-top: 1px solid #d9d9d9; padding-top: 4px !important; border-bottom: 1px solid #d9d9d9; padding-bottom: 6px !important; }
  .vm-main-item { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 51px; text-align: left;
    font-family: var(--vm-font-main); font-size: 17px; font-weight: 400; color: var(--vm-text); }
  .vm-main-item .bi-arrow-right { color: var(--vm-red); font-size: 19px; }
  .vm-main-label { display: inline-flex; align-items: center; gap: 8px; }
  .vm-badge { background: var(--vm-red); color: #fff; font-size: 13px; font-weight: 500; line-height: 1; padding: 5px 7px 5px; border-radius: 4px; letter-spacing: .1px; }

  .vm-util-list { padding: 6px 0 0 !important; }
  .vm-util-item { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 0 20px; font-family: var(--vm-font-main); font-size: 17px; font-weight: 400; color: var(--vm-text); }
  .vm-util-icon { color: var(--vm-red); font-size: 24px; line-height: 1; width: 30px; text-align: center; }
  .vm-flag { width: 30px; height: auto; object-fit: cover; display: block; }
  .vm-cart-wrap { position: relative; display: inline-flex; width: 30px; justify-content: center; }
  .vm-cart-count { position: absolute; top: -9px; right: -3px; min-width: 20px; height: 20px; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-family: var(--vm-font-main); }

  .vm-login-wrap { padding: 18px 21px 28px; }
  .vm-login-btn { display: block; text-align: center; background: var(--vm-blue); color: #fff !important; font-family: var(--vm-font-main); font-size: 18px; font-weight: 500; line-height: 46px; border-radius: 3px; }
  .vm-login-btn:hover { background: var(--color-secondary-dark, #193391); }

  /* ---------- sub panels ---------- */
  .vm-sub-top { display: flex; align-items: center; justify-content: space-between; height: 67px; padding: 0 12px 0 16px; box-shadow: 0 2px 4px rgba(0,0,0,.12); position: relative; z-index: 1; }
  .vm-back { display: inline-flex; align-items: center; gap: 12px; font-family: var(--vm-font-sub); font-size: 16px; font-weight: 300; color: #555; }
  .vm-back .bi-arrow-left { color: var(--vm-red); font-size: 20px; }

  .vm-sub-list { padding: 22px 0 8px !important; }
  .vm-sub-item { display: flex; align-items: center; gap: 12px; padding: 8px 18px; font-family: var(--vm-font-sub); font-size: 16px; font-weight: 400; line-height: 26px; color: var(--vm-blue); }
  .vm-sub-item.has-icon { padding-left: 24px; }
  .vm-sub-item .bi { color: var(--vm-red); font-size: 28px; line-height: 1; width: 32px; flex: 0 0 32px; text-align: center; }
  .vm-sub-item span { flex: 1; }
  .vm-sub-item:hover, .vm-sub-viewall:hover { color: var(--color-secondary-dark, #193391); }
  .vm-sub-viewall { display: block; padding: 14px 18px 24px; font-family: var(--vm-font-sub); font-size: 16px; line-height: 26px; color: var(--vm-blue); }
}

/* ---------- logged-in additions (guest styles above are untouched) ---------- */
@media (max-width: 991px) {
  .vm-main-top-user { align-items: center; justify-content: space-between; padding-left: 32px; }
  .vm-hello { display: flex; flex-direction: column; line-height: 1.25; font-family: var(--vm-font-main); }
  .vm-hello-small { font-size: 13px; color: #777; font-weight: 300; }
  .vm-hello-name { font-size: 19px; font-weight: 500; color: var(--vm-text); word-break: break-word; }
  a.vm-main-item, a.vm-main-item:hover, a.vm-main-item:focus { color: var(--vm-text); text-decoration: none; }
  .vm-logout-btn { background: #fff !important; color: var(--vm-blue) !important; border: 1.5px solid var(--vm-blue); line-height: 43px; }
  .vm-logout-btn:hover { background: var(--vm-blue) !important; color: #fff !important; }
}
