/* ═══════════════════════════════════════
   Marketplace Header v10
   Hamburger + Drawer + Mobile Logo
   ═══════════════════════════════════════ */

/* Override header */
body.is-marketplace-page .site-header{
  border-bottom:1px solid rgba(0,0,0,0.06);
}
body.is-marketplace-page .nav{
  min-height:auto !important;
  padding:14px 0 16px;
  gap:0;
}
body.is-marketplace-page .wrap--wide{
  padding-left:32px !important;
  padding-right:32px !important;
}
body.is-marketplace-page .site-preview-bar{ display:none !important; }
body.is-marketplace-page .nav__search{ display:none !important; }
body.is-marketplace-page .nav__grow{ display:none !important; }
body.is-marketplace-page .nav__brand{ display:none !important; }

/* ── Left: Hamburger + Logo ── */
.mh-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  margin-right:24px;
}
.mh-menu-btn{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
  color:#1a1a1a;
  border-radius:8px;
  transition:background 0.12s ease;
}
.mh-menu-btn:hover{
  background:rgba(0,0,0,0.04);
}
.mh-logo{
  display:flex;
  align-items:center;
  text-decoration:none;
}
.mh-logo__full{
  display:block;
  height:30px;
  width:auto;
  max-width:min(260px, 42vw);
}
.mh-logo__icon{
  display:none;
  width:32px;
  height:32px;
}

/* ── Center: tabs + search ── */
.mh-center{
  position:relative;
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  max-width:720px;
  margin:0 auto;
  padding:2px 0;
}
.mh-tabs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  overflow-x:auto; overflow-y:hidden;
  padding:0 0 16px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.mh-tabs::-webkit-scrollbar{ display:none; }
.mh-tab{
  padding:8px 28px;
  font-size:15px;
  font-weight:500;
  color:#555;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color 0.12s ease, border-color 0.12s ease;
}
.mh-tab:hover{ color:#1a1a1a; }
.mh-tab--active{
  color:#1a1a1a;
  font-weight:600;
  border-bottom-color:#1a1a1a;
}
.mh-tabs__sep{
  width:1px;
  height:20px;
  background:#e5e7eb;
  flex-shrink:0;
}

/* Search */
.mh-search{
  display:flex;
  align-items:center;
  width:100%;
  height:48px;
  border:1px solid #e0e0e0;
  border-radius:999px;
  background:#fff;
  padding:0 20px;
  gap:12px;
  transition:border-color 0.15s ease, box-shadow 0.15s ease;
}
.mh-search:focus-within{
  border-color:#999;
  box-shadow:0 0 0 3px rgba(0,0,0,0.04);
}
.mh-search__icon{ flex-shrink:0; color:#b42318; }
.mh-search input[type="search"]{
  flex:1;
  border:none !important;
  outline:none !important;
  background:transparent !important;
  font:inherit;
  font-size:15px;
  font-weight:400;
  color:#1a1a1a;
  min-width:0;
  padding:0 !important;
  height:auto !important;
  min-height:auto !important;
  box-shadow:none !important;
}
.mh-search input[type="search"]::placeholder{ color:#b0b0b0; }
.mh-search input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none; display:none;
}
.mh-search__clear{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px; height:24px;
  border-radius:50%;
  background:#f0f0f0;
  color:#888;
  text-decoration:none;
  transition:background 0.12s ease;
}
.mh-search__clear:hover{ background:#e0e0e0; color:#333; }

/* ── Right ── */
.mh-right{
  display:flex;
  align-items:center;
  gap:4px;
  flex-shrink:0;
  margin-left:24px;
}
.mh-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 12px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  color:#555;
  text-decoration:none;
  background:transparent;
  border:none;
  cursor:pointer;
  font-family:inherit;
  white-space:nowrap;
  transition:color 0.12s ease, background 0.12s ease;
}
.mh-link:hover{
  color:#1a1a1a;
  background:rgba(0,0,0,0.04);
}
.mh-link svg{ flex-shrink:0; color:inherit; }


/* ═══ DRAWER (Sidebar) ═══ */
.mh-drawer[hidden]{ display:none !important; }
.mh-drawer{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  width:100vw;height:100vh;height:100dvh;
  z-index:9999;
  display:flex;
  overflow:hidden;
}
.mh-drawer__backdrop{
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.4);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  animation:mh-fade-in .2s ease;
}
.mh-drawer__panel{
  position:relative;
  z-index:1;
  width:min(340px, 85vw);
  height:100%;
  background:#fff;
  display:flex;
  flex-direction:column;
  box-shadow:6px 0 32px rgba(0,0,0,0.15);
  animation:mh-drawer-in 0.35s cubic-bezier(.22,1,.36,1);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
@keyframes mh-drawer-in{
  from{ transform:translateX(-100%); }
  to{ transform:translateX(0); }
}
.mh-drawer__head{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 24px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.mh-drawer__close{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border:none;
  background:transparent;
  cursor:pointer;
  color:#1a1a1a;
  border-radius:8px;
  transition:background 0.12s ease;
}
.mh-drawer__close:hover{ background:rgba(0,0,0,0.04); }
.mh-drawer__head img{ height:24px; width:auto; }

.mh-drawer__nav{
  flex:1;
  overflow-y:auto;
  padding:12px 0;
}
.mh-drawer__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  font-size:16px;
  font-weight:500;
  color:#1a1a1a;
  text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,0.04);
  transition:background 0.1s ease;
}
.mh-drawer__item:hover{ background:rgba(0,0,0,0.02); }
.mh-drawer__item--active{ font-weight:700; }
.mh-drawer__item svg{ color:#ccc; flex-shrink:0; }
.mh-drawer__divider{
  height:1px;
  background:rgba(0,0,0,0.08);
  margin:8px 0;
}
.mh-drawer__footer{
  border-top:1px solid rgba(0,0,0,0.06);
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:8px;
}
.mh-drawer__footer-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:12px;
  font-weight:500;
  color:#555;
  text-decoration:none;
  padding:8px;
  transition:color 0.12s ease;
}
.mh-drawer__footer-link:hover{ color:#1a1a1a; }
.mh-drawer__footer-link svg{ color:inherit; }



.mh-drawer__group{
  border-bottom:1px solid rgba(0,0,0,0.04);
}
.mh-drawer__group[open] .mh-drawer__summary svg{ transform:rotate(90deg); }
.mh-drawer__summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  font-size:16px;
  font-weight:600;
  color:#111;
  cursor:pointer;
}
.mh-drawer__summary::-webkit-details-marker{ display:none; }
.mh-drawer__summary::after{
  content:'›';
  color:#9ca3af;
  font-size:18px;
  transition:transform .14s ease;
}
.mh-drawer__group[open] .mh-drawer__summary::after{ transform:rotate(90deg); }
.mh-drawer__subnav{
  display:grid;
  gap:2px;
  padding:0 16px 12px 16px;
}
.mh-drawer__subitem{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:10px;
  color:#4b5563;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
}
.mh-drawer__subitem:hover{ background:rgba(0,0,0,0.03); color:#111; }

/* ═══ MOBILE ═══ */
@media(max-width:1100px){
  .mh-center{ max-width:440px; }
  .mh-tab{ font-size:14px; padding:6px 20px; }
  .mh-search{ height:44px; padding:0 16px; }
}

@media(max-width:900px){
  .mh-link span{ display:none; }
  .mh-link{ padding:8px; }
  .mh-right{ gap:0; margin-left:auto; }
  .mh-left{ margin-right:0; }
}

/* Mobile logo - hidden on desktop, visible centered on mobile */
.mh-logo--mobile{ display:none; }
.mh-link--search-mobile{ display:none !important; }

@media(max-width:768px){
  body.is-marketplace-page .nav{
    display:flex;
    align-items:center;
    gap:0;
    padding:10px 0;
  }
  body.is-marketplace-page .wrap--wide{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* Hide desktop logo, show mobile logo centered */
  .mh-logo--desktop{ display:none !important; }
  .mh-logo--mobile{
    display:flex !important;
    align-items:center;
    flex:1;
    justify-content:center;
  }
  .mh-logo--mobile img{ height:22px; width:auto; }

  /* Show search toggle on mobile */
  .mh-link--search-mobile{ display:inline-flex !important; }

  /* Hide entire center (tabs + search bar) on mobile */
  .mh-center{ display:none !important; }

  /* Left: just hamburger */
  .mh-left{ margin-right:0; gap:0; flex-shrink:0; }

  /* Right: icons only */
  .mh-right{ margin-left:0; gap:0; flex-shrink:0; }
}


/* ═══════════════════════════════════════
   Step 0025 – premium hover, desktop flyout, search suggest
   ═══════════════════════════════════════ */
html{ -webkit-tap-highlight-color: rgba(0,0,0,0); }
body.is-marketplace-page,
body.is-marketplace-page *{ -webkit-tap-highlight-color: rgba(0,0,0,0); }

.mh-logo__icon{ display:none !important; }

.mh-menu-btn,
.mh-link,
.mh-tab,
.mh-search,
.mh-drawer__summary,
.mh-drawer__subitem,
.mkt-toolbar__filter,
.mkt-card__compare,
.mkt-card__heart{
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.mh-menu-btn:hover,
.mh-link:hover,
.mkt-toolbar__filter:hover,
.mkt-card__compare:hover{
  transform:translateY(-1px);
}

.mh-search:hover{
  border-color:#cfd4dc;
  box-shadow:0 12px 32px rgba(15,23,42,.07);
}
.mh-search:focus-within{
  border-color:#111827;
  box-shadow:0 0 0 3px rgba(17,24,39,.08), 0 14px 32px rgba(15,23,42,.08);
}
.mh-search input[type="search"]:focus{
  outline:none !important;
  box-shadow:none !important;
}
.mh-search__clear:hover{
  background:#111827;
  color:#fff;
}

.mh-tab{ position:relative; }
.mh-tab::after{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  bottom:-2px;
  height:2px;
  border-radius:999px;
  background:#111827;
  opacity:0;
  transform:scaleX(.4);
  transform-origin:center;
  transition:opacity .18s ease, transform .18s ease;
}
.mh-tab:hover::after,
.mh-tab--active::after{
  opacity:1;
  transform:scaleX(1);
}
.mh-tab--active{ border-bottom-color:transparent; }

body.is-marketplace-page :focus-visible{
  outline:2px solid rgba(17,24,39,.22) !important;
  outline-offset:2px;
}
body.is-marketplace-page input:focus,
body.is-marketplace-page button:focus,
body.is-marketplace-page a:focus,
body.is-marketplace-page select:focus,
body.is-marketplace-page textarea:focus{
  outline:none !important;
  box-shadow:none !important;
}

/* Header suggest dropdown */
.mh-suggest{
  position:absolute;
  top:calc(100% + 12px);
  left:50%;
  transform:translateX(-50%);
  width:min(1080px, calc(100vw - 64px));
  z-index:180;
}
.mh-suggest__panel{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  box-shadow:0 28px 70px rgba(15,23,42,.14);
  overflow:hidden;
}
.mh-suggest__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  padding:18px;
}
.mh-suggest__item{
  display:grid;
  grid-template-columns:120px minmax(0, 1fr);
  gap:14px;
  align-items:center;
  min-height:114px;
  padding:14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  background:#fff;
  color:#111827;
  text-decoration:none;
}
.mh-suggest__item:hover{
  transform:translateY(-1px);
  border-color:rgba(17,24,39,.16);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.mh-suggest__thumb{
  height:84px;
  border-radius:14px;
  background:#f6f7f9;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.mh-suggest__thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}
.mh-suggest__copy{ min-width:0; }
.mh-suggest__meta{
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#98a2b3;
  margin-bottom:6px;
}
.mh-suggest__title{
  font-size:15px;
  font-weight:700;
  line-height:1.28;
  letter-spacing:-.01em;
  color:#101828;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mh-suggest__price{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:8px;
}
.mh-suggest__price strong{
  font-size:15px;
  font-weight:800;
  color:#111827;
}
.mh-suggest__price strong.is-sale{ color:#b42318; }
.mh-suggest__price span{
  font-size:13px;
  font-weight:600;
  color:#98a2b3;
  text-decoration:line-through;
}
.mh-suggest__footer{
  padding:0 18px 18px;
}
.mh-suggest__all{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg,#242833 0%,#141821 100%);
  box-shadow:0 14px 34px rgba(2,6,23,.20);
  color:#fff !important;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
}
.mh-suggest__all:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(2,6,23,.24);
  color:#fff !important;
  opacity:1 !important;
}
.mh-suggest__empty{
  padding:28px 22px;
  text-align:center;
  color:#667085;
  font-size:14px;
}

/* Desktop drawer flyout */
@media(min-width:769px){
  .mh-drawer__panel{
    width:min(720px, 80vw);
    overflow:visible;
  }
  .mh-drawer__nav{
    overflow:visible;
    padding:12px 0 24px;
  }
  .mh-drawer__group{ position:relative; }
  .mh-drawer__summary{
    min-height:54px;
    transition:background .16s ease, color .16s ease;
  }
  .mh-drawer__summary:hover,
  .mh-drawer__group[open] > .mh-drawer__summary{
    background:rgba(17,24,39,.03);
  }
  .mh-drawer__group > .mh-drawer__subnav{
    position:absolute;
    top:8px;
    left:calc(100% + 14px);
    width:min(360px, 30vw);
    min-height:calc(100% - 16px);
    align-content:start;
    gap:6px;
    padding:16px;
    background:#fff;
    border:1px solid rgba(17,24,39,.08);
    border-radius:18px;
    box-shadow:0 26px 54px rgba(15,23,42,.12);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(14px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .mh-drawer__group[open] > .mh-drawer__subnav{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(0);
  }
  .mh-drawer__subitem{
    min-height:44px;
    padding:0 14px;
    border:1px solid rgba(17,24,39,.06);
    background:#fff;
  }
  .mh-drawer__subitem:hover{
    background:#f8fafc;
    border-color:rgba(17,24,39,.12);
    transform:translateY(-1px);
  }
}

@media(max-width:900px){
  .mh-suggest{
    width:100%;
    left:0;
    transform:none;
    top:calc(100% + 10px);
  }
  .mh-suggest__grid{
    grid-template-columns:1fr;
    padding:14px;
  }
  .mh-suggest__item{
    grid-template-columns:88px minmax(0, 1fr);
    min-height:98px;
  }
  .mh-suggest__thumb{ height:72px; }
  .mh-suggest__footer{ padding:0 14px 14px; }
}

/* ═══════════════════════════════════════
   Step 0030 – desktop mega menu / stable mobile drawer
   ═══════════════════════════════════════ */
.mh-mega[hidden]{display:none!important}
.mh-mega{
  position:fixed;
  inset:0;
  z-index:9999;
}
.mh-mega__backdrop{
  display:none;
}
.mh-mega__shell{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding:40px 0 0 10px;
  background:rgba(15,23,42,.42);
  cursor:pointer;
  animation:mh-fade-in .25s ease;
}
@keyframes mh-fade-in{
  from{opacity:0}
  to{opacity:1}
}
.mh-mega__panel{
  cursor:default;
  position:relative;
  width:340px;
  min-height:min(500px, calc(100vh - 88px));
  max-height:calc(100vh - 88px);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(2,6,23,.26);
  display:flex;
  flex-direction:column;
  transition:width .45s cubic-bezier(.22,1,.36,1);
  animation:mh-panel-in .3s cubic-bezier(.22,1,.36,1);
}
@keyframes mh-panel-in{
  from{opacity:0;transform:translateY(-10px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.mh-mega__panel.has-l2{
  width:min(700px, calc(100vw - 70px));
}
.mh-mega__panel.has-l3{
  width:min(1100px, calc(100vw - 70px));
}
.mh-mega__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 28px;
  border-bottom:1px solid rgba(17,24,39,.06);
}
.mh-mega__close{
  appearance:none;
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  color:#111827;
  border-radius:10px;
  cursor:pointer;
  transition:background .16s ease, transform .16s ease;
}
.mh-mega__close:hover{background:rgba(17,24,39,.04);transform:translateY(-1px)}
.mh-mega__brand img{display:block;height:34px;width:auto}
.mh-mega__body{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:row;
  background:#fff;
  overflow:hidden;
}
.mh-mega__col{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:16px 0;
  flex-shrink:0;
}
.mh-mega__col--l1{
  width:320px;
  border-right:1px solid rgba(17,24,39,.06);
}
.mh-mega__col--l2{
  width:0;
  opacity:0;
  padding:0;
  border-right:1px solid rgba(17,24,39,.06);
  transition:width .4s cubic-bezier(.22,1,.36,1), opacity .3s ease .1s, padding .3s ease;
}
.mh-mega__col--l3{
  width:0;
  opacity:0;
  padding:0;
  flex:0;
  transition:width .4s cubic-bezier(.22,1,.36,1), opacity .3s ease .15s, padding .3s ease, flex .4s cubic-bezier(.22,1,.36,1);
}
/* When L2 is visible */
.mh-mega__panel.has-l2 .mh-mega__col--l2{
  width:340px;
  opacity:1;
  padding:16px 0;
}
/* When L3 is visible */
.mh-mega__panel.has-l3 .mh-mega__col--l3{
  width:auto;
  flex:1;
  opacity:1;
  padding:16px 0;
  min-width:200px;
}
.mh-mega__col--l1,
.mh-mega__col--l2{border-right:1px solid rgba(17,24,39,.06)}
.mh-mega__col-head{
  padding:6px 28px 14px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#98a2b3;
}
.mh-mega__item{
  appearance:none;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 28px;
  color:#111827;
  font:inherit;
  font-size:17px;
  font-weight:500;
  cursor:pointer;
  transition:background .16s ease, color .16s ease;
}
.mh-mega__item svg{color:#98a2b3;flex-shrink:0}
.mh-mega__item:hover{background:#f7f7f8}
.mh-mega__item.is-active{background:#f5f5f6;color:#111827;font-weight:700}
.mh-mega__item.is-active svg{color:#111827}
.mh-mega__item--l2{font-size:16px;color:#344054;padding-top:15px;padding-bottom:15px}
.mh-mega__links{display:grid;gap:0;padding-bottom:10px}
.mh-mega__link{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:0 28px;
  color:#4b5563;
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  border-top:1px solid rgba(17,24,39,.05);
  transition:background .16s ease, color .16s ease;
}
.mh-mega__link:first-child{border-top:0}
.mh-mega__link:hover{background:#f8fafc;color:#111827}
.mh-mega__footer{
  display:flex;
  align-items:center;
  gap:8px;
  padding:16px 20px;
  border-top:1px solid rgba(17,24,39,.06);
  background:#fff;
  flex-wrap:wrap;
}
.mh-mega__footer-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#111827;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  padding:6px 10px;
  border-radius:8px;
  transition:background .15s ease;
}
.mh-mega__footer-link:hover{background:rgba(17,24,39,.04)}
.mh-mega__footer-link svg{flex-shrink:0;width:15px;height:15px}

.mh-drawer__subgroup-title{
  padding:14px 12px 6px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#98a2b3;
}

@media(min-width:981px){
  .mh-drawer{display:none!important}
}
@media(max-width:980px){
  .mh-mega{display:none!important}
}

/* ═══ MOBILE SEARCH POPUP ═══ */
.mh-search-popup[hidden]{display:none!important}
.mh-search-popup{
  position:fixed;top:0;left:0;right:0;bottom:0;
  width:100vw;height:100vh;height:100dvh;
  z-index:9999;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:56px 16px 0;
  background:rgba(0,0,0,.45);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  animation:mh-sp-bg .2s ease;
}
@keyframes mh-sp-bg{from{opacity:0}to{opacity:1}}
.mh-search-popup__card{
  width:100%;max-width:480px;
  background:#fff;border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  overflow:hidden;display:flex;flex-direction:column;
  max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);
  animation:mh-sp-card .3s cubic-bezier(.22,1,.36,1);
}
@keyframes mh-sp-card{from{opacity:0;transform:translateY(-14px) scale(.97)}to{opacity:1;transform:none}}
.mh-search-popup__head{padding:14px 14px 10px;border-bottom:1px solid rgba(0,0,0,.06)}
.mh-search-popup__form{display:flex;align-items:center;gap:10px;height:44px;background:#f5f5f5;border-radius:12px;padding:0 14px}
.mh-search-popup__form input[type="search"]{
  flex:1;min-width:0;border:none!important;outline:none!important;background:transparent!important;
  font:inherit;font-size:16px;color:#1a1a1a;padding:0!important;height:auto!important;min-height:auto!important;box-shadow:none!important;
}
.mh-search-popup__form input::placeholder{color:#aaa}
.mh-search-popup__form input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.mh-search-popup__cancel{appearance:none;border:none;background:transparent;font:inherit;font-size:14px;font-weight:600;color:#666;cursor:pointer;white-space:nowrap}
.mh-search-popup__body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px}
.mh-search-popup__label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9ca3af;margin-bottom:10px}
.mh-search-popup__quick{display:flex;flex-wrap:wrap;gap:8px}
.mh-search-popup__chip{display:inline-flex;align-items:center;padding:8px 16px;border:1px solid rgba(0,0,0,.1);border-radius:999px;background:#fff;color:#1a1a1a!important;font-size:13px;font-weight:500;text-decoration:none;transition:all .15s ease}
.mh-search-popup__chip:hover{border-color:rgba(0,0,0,.2);background:#f5f5f5}
.mh-search-popup__results:empty{display:none}
.mh-search-popup__result{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid rgba(0,0,0,.04);text-decoration:none;color:#1a1a1a!important;border-radius:8px;transition:background .12s ease}
.mh-search-popup__result:last-child{border-bottom:none}
.mh-search-popup__result:hover{background:rgba(0,0,0,.02)}
.mh-search-popup__result-img{width:52px;height:52px;border-radius:10px;background:#f5f5f5;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.mh-search-popup__result-img img{width:100%;height:100%;object-fit:contain;padding:4px}
.mh-search-popup__result-info{flex:1;min-width:0}
.mh-search-popup__result-title{font-size:14px;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mh-search-popup__result-meta{font-size:12px;color:#9ca3af;margin-top:1px}
.mh-search-popup__result-price{font-size:14px;font-weight:700;color:#1a1a1a;flex-shrink:0}
.mh-search-popup__result-price.is-sale{color:#b42318}
.mh-search-popup__all-link{display:flex;align-items:center;justify-content:center;margin-top:12px;padding:12px;border-radius:12px;background:#1a1a1a;color:#fff!important;font-size:14px;font-weight:600;text-decoration:none;transition:background .15s ease}
.mh-search-popup__all-link:hover{background:#333;opacity:1!important}
.mh-search-popup__empty{text-align:center;padding:20px 0;color:#9ca3af;font-size:14px}
@media(min-width:769px){.mh-search-popup{display:none!important}}

/* ── L2 item row: clickable label + expand chevron ── */
.mh-mega__item-row{
  display:flex;
  align-items:stretch;
}
.mh-mega__item--link{
  flex:1;
  text-decoration:none;
  cursor:pointer;
}
.mh-mega__item--link:hover{
  background:#f7f7f8;
}
.mh-mega__expand{
  appearance:none;
  border:none;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  cursor:pointer;
  color:#98a2b3;
  border-radius:0 12px 12px 0;
  transition:background .12s ease, color .12s ease;
  flex-shrink:0;
}
.mh-mega__expand:hover{
  background:#f0f0f1;
  color:#111827;
}
.mh-mega__item-row.is-active .mh-mega__item--link{
  background:#f5f5f6;
  color:#111827;
  font-weight:700;
}
.mh-mega__item-row.is-active .mh-mega__expand{
  color:#111827;
}

/* ── Column slide-in animations ── */
.mh-mega__col--l2:not([hidden]){
  animation:mh-col-in .25s cubic-bezier(.22,1,.36,1);
}
.mh-mega__col--l3:not([hidden]){
  animation:mh-col-in .25s cubic-bezier(.22,1,.36,1);
}
@keyframes mh-col-in{
  from{opacity:0;transform:translateX(12px)}
  to{opacity:1;transform:translateX(0)}
}

/* ── Close animations ── */
@keyframes mh-fade-out{
  from{opacity:1}
  to{opacity:0}
}
@keyframes mh-panel-out{
  from{opacity:1;transform:translateY(0) scale(1)}
  to{opacity:0;transform:translateY(-8px) scale(.98)}
}
@keyframes mh-drawer-out{
  from{transform:translateX(0)}
  to{transform:translateX(-100%)}
}
