/* minimecraft.ro — header compact pe 2 rânduri (impeccable, 15.11.2026)
   Șablon: porto-child/header/header-mmc.php · încărcat din inc-mmc-header.php (doar când mmc_header_v2 e pornit).
   Rândul 1 = .mmc-bar (transport, telefon, social) · Rândul 2 = .header-main (logo · meniu · căutare/cont/coș).
   Submeniurile rămân în assets-mmc/meniu.css. */

body.mmc-hd2 .porto-block-html-top{display:none!important}
html #header.mmc-hd{background:#fff!important;border:0!important}
html #header.mmc-hd ::selection{background:var(--mm-g2);color:#fff}

/* ---------- rândul 1: bara verde ---------- */
html #header.mmc-hd .mmc-bar{background:var(--mm-g);color:#fff}
html #header.mmc-hd .mmc-bar>.container{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:38px}
html #header.mmc-hd .mmc-bar__msg{display:flex;align-items:center;gap:9px;margin:0;padding:0;
  font:600 13px/1.25 "Open Sans",system-ui,sans-serif;letter-spacing:.01em;color:#fff}
html #header.mmc-hd .mmc-bar__msg svg{flex:none;width:19px;height:19px}
html #header.mmc-hd .mmc-bar__side{display:flex;align-items:center;gap:16px}
html #header.mmc-hd .mmc-bar__tel{display:flex;align-items:baseline;gap:7px;padding:6px 0;color:#fff!important;text-decoration:none!important;
  font:400 13px/1.25 "Open Sans",system-ui,sans-serif}
html #header.mmc-hd .mmc-bar__tel strong{font:600 14px/1.25 Poppins,system-ui,sans-serif;letter-spacing:.01em;color:#fff;
  text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .2s}
html #header.mmc-hd .mmc-bar__tel:hover strong{text-decoration-color:currentColor}
html #header.mmc-hd .mmc-bar__soc{display:flex;align-items:center;gap:2px;padding-left:14px;border-left:1px solid rgba(255,255,255,.3)}
html #header.mmc-hd .mmc-bar__soc a{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#fff!important;
  transition:background-color .2s}
html #header.mmc-hd .mmc-bar__soc a:hover{background:rgba(255,255,255,.18)}
html #header.mmc-hd .mmc-bar__soc svg{display:block;width:13px;height:13px;fill:currentColor;stroke:none}
html #header.mmc-hd .mmc-bar a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:6px}

/* ---------- rândul 2: logo · meniu · acțiuni ---------- */
html #header.mmc-hd .header-main{background:#fff!important;border-bottom:1px solid var(--mm-line);padding:0!important}
html #header.mmc-hd .header-main>.container{display:flex!important;align-items:center;gap:16px;min-height:78px;padding-top:0!important;padding-bottom:0!important}
html #header.mmc-hd .mmc-hd-logo{flex:none}
html #header.mmc-hd .mmc-hd-logo .logo{margin:0!important;padding:0!important;max-width:none!important;line-height:0}
html #header.mmc-hd .mmc-hd-logo .logo a{display:block}
html #header.mmc-hd .mmc-hd-logo .logo img{display:block;width:160px!important;max-width:160px!important;height:auto!important;transform:none!important}
html #header.mmc-hd .mmc-hd-logo a:focus-visible{outline:2px solid var(--mm-g2);outline-offset:6px;border-radius:8px}

html #header.mmc-hd .mmc-hd-nav{flex:1 1 auto;min-width:0;display:flex;justify-content:center}
html #header.mmc-hd .mmc-hd-nav .mega-menu{display:flex!important;flex-wrap:nowrap;align-items:stretch;margin:0!important;padding:0!important;float:none!important}
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item{margin:0!important;float:none!important;flex:none}
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a{position:relative;display:block;padding:29px 10px!important;white-space:nowrap;
  font:500 14.5px/20px Poppins,system-ui,sans-serif!important;letter-spacing:-.01em!important;text-transform:none!important;
  color:var(--mm-ink)!important;background:transparent!important;border:0!important;transition:color .2s}
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:before{content:""!important;position:absolute!important;top:auto!important;bottom:21px!important;
  left:10px!important;right:10px!important;width:auto!important;height:2px!important;margin:0!important;border:0!important;border-radius:2px;background:var(--mm-g2)!important;
  opacity:1!important;transform:scaleX(0);transform-origin:left center;transition:transform .35s var(--mm-ease)!important}
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item:hover>a,
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:focus-visible,
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item.active>a{color:var(--mm-g)!important}
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item:hover>a:before,
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:focus-visible:before,
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item.active>a:before{transform:scaleX(1)}
html #header.mmc-hd .mmc-hd-nav .mega-menu.show-arrow>li.has-sub>a:after{display:inline-block;margin-left:6px;font-size:10px;line-height:1;
  color:var(--mm-mut);vertical-align:1px;transition:transform .3s var(--mm-ease),color .2s}
html #header.mmc-hd .mmc-hd-nav .mega-menu.show-arrow>li.has-sub:hover>a:after{transform:rotate(180deg);color:var(--mm-g)}
/* „Acasă” rămâne doar în meniul de pe mobil: pe desktop logo-ul duce acasă */
html #header.mmc-hd .mmc-hd-nav .mega-menu>li.mmc-doar-mobil{display:none!important}

html #header.mmc-hd .mmc-hd-act{flex:none;display:flex;align-items:center;gap:2px;margin-left:auto}
html #header.mmc-hd .mmc-hd-btn{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;
  background:transparent;color:var(--mm-ink)!important;font-size:21px;line-height:1;cursor:pointer;text-decoration:none!important;
  transition:background-color .2s,color .2s}
html #header.mmc-hd .mmc-hd-btn i{display:block;line-height:1}
html #header.mmc-hd .mmc-hd-btn i:before{margin:0}
html #header.mmc-hd .mmc-hd-btn:hover,
html #header.mmc-hd .mmc-hd-search.is-open .mmc-hd-search__btn{background:var(--mm-gl);color:var(--mm-g)!important}
html #header.mmc-hd .mmc-hd-btn:focus-visible{outline:2px solid var(--mm-g2);outline-offset:2px}
html #header.mmc-hd .mmc-hd-act #mini-cart{margin:0 0 0 6px!important}
html #header.mmc-hd .mmc-hd-act #mini-cart .minicart-icon{color:var(--mm-ink);font-size:25px}
html #header.mmc-hd .mmc-hd-act #mini-cart .cart-items{background:var(--mm-g)!important;color:#fff!important}
html #header.mmc-hd .mobile-toggle{display:none!important}

/* căutarea: iconiță care deschide un câmp sub bară */
html #header.mmc-hd .mmc-hd-search{position:relative}
html #header.mmc-hd .mmc-hd-search__panel{position:absolute;z-index:1002;right:-4px;top:calc(100% + 14px);width:400px;max-width:calc(100vw - 32px);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .3s var(--mm-ease),visibility 0s .3s}
html #header.mmc-hd .mmc-hd-search.is-open .mmc-hd-search__panel{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .3s var(--mm-ease),visibility 0s}
html #header.mmc-hd .mmc-hd-search__panel .searchform-popup{display:block!important;position:static!important;margin:0!important;padding:0!important;width:auto!important}
html #header.mmc-hd .mmc-hd-search__panel .search-toggle{display:none!important}
html #header.mmc-hd .mmc-hd-search__panel .searchform{display:block!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;
  width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html #header.mmc-hd .mmc-hd-search__panel .searchform:before{display:none!important}
html #header.mmc-hd .mmc-hd-search__panel .searchform-fields{display:flex!important;align-items:center;height:54px!important;background:#fff!important;
  border:1px solid var(--mm-line)!important;border-radius:999px!important;overflow:hidden;
  box-shadow:0 1px 2px rgba(29,36,22,.06),0 24px 48px -24px rgba(29,36,22,.4)!important}
html #header.mmc-hd .mmc-hd-search__panel .selectric-wrapper,
html #header.mmc-hd .mmc-hd-search__panel select{display:none!important}
html #header.mmc-hd .mmc-hd-search__panel span.text{flex:1 1 auto!important;width:auto!important;min-width:0}
html #header.mmc-hd .mmc-hd-search__panel input[type=text]{width:100%!important;height:52px!important;margin:0!important;padding:0 8px 0 24px!important;border:0!important;
  background:transparent!important;box-shadow:none!important;font:400 15px/52px "Open Sans",system-ui,sans-serif!important;color:var(--mm-ink)!important;caret-color:var(--mm-g)}
html #header.mmc-hd .mmc-hd-search__panel input[type=text]::placeholder{color:#6b7561;opacity:1}
html #header.mmc-hd .mmc-hd-search__panel .button-wrap{flex:none}
html #header.mmc-hd .mmc-hd-search__panel button{width:54px!important;height:52px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:var(--mm-g)!important;font-size:19px!important;box-shadow:none!important}
html #header.mmc-hd .mmc-hd-search__panel .searchform-fields:focus-within{border-color:var(--mm-g2)!important}

/* ---------- bara fixă la scroll ---------- */
html #header.mmc-hd.sticky-header .header-main{box-shadow:0 14px 30px -22px rgba(29,36,22,.45)}
html #header.mmc-hd.sticky-header .header-main>.container{min-height:64px}
html #header.mmc-hd.sticky-header .mmc-hd-nav .mega-menu>li.menu-item>a{padding-top:22px!important;padding-bottom:22px!important}
html #header.mmc-hd.sticky-header .mmc-hd-nav .mega-menu>li.menu-item>a:before{bottom:15px!important}
html #header.mmc-hd.sticky-header .mmc-hd-logo .logo img{width:166px!important;max-width:166px!important}

/* ---------- laptop (992–1199): 5 elemente, mai strânse ---------- */
@media (min-width:992px) and (max-width:1199px){
  html #header.mmc-hd .header-main>.container{gap:12px}
  html #header.mmc-hd .mmc-hd-logo .logo img{width:142px!important;max-width:142px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a{padding-left:9px!important;padding-right:9px!important;font-size:14px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:before{left:9px!important;right:9px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.mmc-ascuns-laptop{display:none!important}
}

/* ---------- tabletă + mobil: meniul trece în panoul lateral ---------- */
@media (max-width:991px){
  html #header.mmc-hd .mmc-hd-nav,html #header.mmc-hd .mmc-hd-search{display:none!important}
  html #header.mmc-hd .header-main>.container{display:grid!important;grid-template-columns:1fr auto 1fr;gap:8px;min-height:62px}
  html #header.mmc-hd .mobile-toggle{display:grid!important;place-items:center;justify-self:start;width:44px;height:44px;margin:0 0 0 -8px!important;padding:0!important;
    border-radius:50%;background:transparent!important;color:var(--mm-ink)!important;font-size:20px;line-height:1}
  html #header.mmc-hd .mobile-toggle:focus-visible{outline:2px solid var(--mm-g2);outline-offset:2px}
  html #header.mmc-hd .mmc-hd-logo .logo img{width:136px!important;max-width:136px!important}
  html #header.mmc-hd .mmc-hd-act{justify-self:end;margin-right:-6px}
  html #header.mmc-hd .mmc-bar>.container{min-height:34px;gap:12px}
  html #header.mmc-hd .mmc-bar__soc{display:none}
}
@media (max-width:575px){
  html #header.mmc-hd .mmc-bar__msg{font-size:12px;gap:7px}
  html #header.mmc-hd .mmc-bar__msg svg{width:17px;height:17px}
  html #header.mmc-hd .mmc-bar__tel span,html #header.mmc-hd .mmc-bar__lung{display:none}
  html #header.mmc-hd .mmc-bar__msg{white-space:nowrap}
  html #header.mmc-hd .mmc-bar__tel strong{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
  html #header.mmc-hd .mmc-hd-search__panel,html #header.mmc-hd .mmc-hd-nav a,html #header.mmc-hd .mmc-hd-nav a:before,html #header.mmc-hd .mmc-hd-nav a:after{transition:none!important}
}
/* ---------- 18.11.2026: logo mai mare, loc făcut din spațierea meniului (fără elemente scoase) ----------
   Porto folosește containerul de 1200px abia de la 1220px; între 992 și 1219px containerul are 960px. */
@media (min-width:1220px){
  html #header.mmc-hd .header-main>.container{gap:12px}
  html #header.mmc-hd .mmc-hd-logo .logo img{width:196px!important;max-width:196px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a{padding-left:8px!important;padding-right:8px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:before{left:8px!important;right:8px!important}
  html #header.mmc-hd.sticky-header .mmc-hd-logo .logo img{width:180px!important;max-width:180px!important}
}
@media (min-width:992px) and (max-width:1219px){
  html #header.mmc-hd .header-main>.container{gap:8px}
  html #header.mmc-hd .mmc-hd-logo .logo img,html #header.mmc-hd.sticky-header .mmc-hd-logo .logo img{width:146px!important;max-width:146px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a{padding-left:7px!important;padding-right:7px!important;font-size:13.5px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.menu-item>a:before{left:7px!important;right:7px!important}
  html #header.mmc-hd .mmc-hd-nav .mega-menu>li.mmc-ascuns-laptop{display:none!important}
}
@media (max-width:991px){
  html #header.mmc-hd .mmc-hd-logo .logo img{width:156px!important;max-width:156px!important}
}
@media (max-width:360px){
  html #header.mmc-hd .mmc-hd-logo .logo img{width:140px!important;max-width:140px!important}
}
