/* Header menu: «فروشگاه» dropdown (قطعات، دستگاه) + «وبلاگ». hover / focus / keyboard on desktop, tap-to-expand on mobile. */
.mdrop{position:relative;display:inline-flex;align-items:center;gap:2px}
.mdrop-btn{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.mdrop-btn svg{width:14px;height:14px;transition:transform .25s}
.mdrop-btn:focus-visible{outline:3px solid #4F86C6;outline-offset:2px}
.mdrop-sub{position:absolute;top:calc(100% + 6px);inset-inline-start:-12px;min-width:190px;display:flex;flex-direction:column;gap:2px;padding:8px;background:#fff;border:1px solid #D9E1EC;border-radius:14px;box-shadow:0 18px 40px rgba(15,16,62,.12);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s,visibility .2s;z-index:80}
.mdrop-sub::before{content:"";position:absolute;inset:-10px 0 auto;height:10px}
.mdrop-sub a{display:block;padding:9px 12px!important;border-radius:10px;text-decoration:none;color:#16253A;font-weight:500;white-space:nowrap}
.mdrop-sub a::after{display:none!important}
.mdrop-sub a:hover,.mdrop-sub a:focus-visible{background:#E9EFF6;color:#0F103E}
@media (hover:hover) and (min-width:961px){.mdrop:hover .mdrop-sub{opacity:1;visibility:visible;transform:none}.mdrop:hover .mdrop-btn svg{transform:rotate(180deg)}}
.mdrop:focus-within .mdrop-sub,.mdrop.open .mdrop-sub{opacity:1;visibility:visible;transform:none}
.mdrop.open .mdrop-btn svg{transform:rotate(180deg)}
.mdrop.closed .mdrop-sub{opacity:0!important;visibility:hidden!important}
/* mobile: r10 drawer (≤960) and inner-page header nav (≤900) — inline expand */
.drawer .mdrop,.vh-nav .mdrop{display:flex;flex-wrap:wrap;justify-content:space-between}
.drawer .mdrop>a:first-child{flex:1}
.drawer .mdrop-btn,.vh-nav .mdrop-btn{width:44px;height:44px}
.drawer .mdrop-sub{position:static;flex-basis:100%;min-width:0;box-shadow:none;border:0;background:#F3F5F8;transform:none;display:none;opacity:1;visibility:visible;margin:4px 0 8px}
.drawer .mdrop.open .mdrop-sub{display:flex}
@media (max-width:900px){
  .vh-nav .mdrop>a:first-child{flex:1}
  .vh-nav .mdrop-sub{position:static;flex-basis:100%;min-width:0;box-shadow:none;border:0;background:#F3F5F8;transform:none;display:none;opacity:1;visibility:visible;margin:4px 0 8px}
  .vh-nav .mdrop.open .mdrop-sub{display:flex}
}
@media (prefers-reduced-motion:reduce){.mdrop-sub,.mdrop-btn svg{transition:none}}
.drawer.open{max-height:640px}.drawer .mdrop>a{padding:10px 0;text-decoration:none;font-weight:500}.drawer .mdrop{border-bottom:1px solid #E9EFF6}.drawer .mdrop-sub a{border:0}
/* shop header (template-parts/shop/head.php): keep shop look; dark header → white top links, readable dropdown */
header.main nav.menu a.is-current{border-bottom:2px solid var(--g,#69B646)}
header.main .mdrop-btn{color:inherit}
header.main .mdrop-sub a{color:#16253A!important;font-weight:500}
header.main .mdrop-sub a.is-current{border:0;background:#E9EFF6}
@media (max-width:960px){header.main .mdrop-sub{inset-inline-start:auto;inset-inline-end:-40px}}
@media (max-width:820px){
  header.main nav.menu{overflow:visible;flex-wrap:wrap;row-gap:4px}
  header.main .mdrop{flex-wrap:wrap}
  header.main .mdrop-sub{position:static;display:none;flex-direction:row;min-width:0;flex-basis:100%;padding:6px;margin-top:4px;opacity:1;visibility:visible;transform:none}
  header.main .mdrop.open .mdrop-sub{display:flex}
}
