/* ==========================================================================
   Actualizarea 19 (25.09.2026) — antetul de pe calculator din poza ei (macheta MG 2.0):
   cautarea mare cu butonul verde, butonul de comenzi cu telefonul si cosul inchis la
   culoare. Se incarca doar cand e aprins din Theme MG › Header. Culorile vin din
   Theme MG: --mg-verde, --mg-buton (bleumarinul butoanelor).
   ========================================================================== */

.mg2-antet-fundal { background: #fff; border-bottom: 1px solid #E2E4E1; }
.mg2-antet {
    max-width: 1350px; box-sizing: border-box; margin: 0 auto; padding: 0 15px;
    height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px;
}
.mg2-antet-logo img { height: 50px; width: auto; display: block; }

.mg2-cautare {
    width: 100%; max-width: 640px; justify-self: center; box-sizing: border-box;
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 5px 0 22px;
    background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #d9d6cc;
    transition: box-shadow .25s;
}
.mg2-cautare:focus-within { box-shadow: inset 0 0 0 2px var(--mg-verde), 0 0 0 5px rgba(0, 135, 65, .12); }
.mg2-cautare input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font-family: inherit; font-size: 16px; color: #1a2c40;
}
.mg2-cautare input::placeholder { color: #8a978f; }
.mg2-cautare-buton {
    flex: none; height: 40px; padding: 0 20px; border: 0; border-radius: 999px;
    background: var(--mg-verde); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .25s, transform .2s;
}
.mg2-cautare-buton:hover { background: var(--mg-buton); }
.mg2-cautare-buton:active { transform: scale(.97); }

.mg2-dreapta { display: flex; align-items: center; gap: 10px; margin-right: 0 !important; }
.mg2-comenzi, .mg2-cos {
    display: inline-flex; align-items: center; gap: 11px; height: 50px; padding: 0 14px;
    border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s;
}
.mg2-comenzi { color: #1a2c40 !important; }
.mg2-comenzi:hover { background: rgba(19, 36, 27, .06); }
.mg2-comenzi .mg2-ico { color: var(--mg-verde); }
.mg2-comenzi small, .mg2-cos small { display: block; font-size: 12px; line-height: 1.1; opacity: .75; }
.mg2-comenzi strong, .mg2-cos strong { display: block; font-size: 15px; line-height: 1.25; font-weight: 700; }
.mg2-cos { background: var(--mg-buton); color: #fff !important; height: 46px; gap: 10px; padding: 0 18px 0 14px; }
.mg2-cos small { font-size: 11.5px; }
.mg2-cos strong { font-size: 14px; }
.mg2-cos:hover { background: var(--mg-verde); color: #fff !important; }
.mg2-cos-iconita { position: relative; display: block; }
.mg2-cos-iconita img { width: 26px; height: 21px; object-fit: contain; display: block; filter: brightness(0) invert(1); transform: scaleX(-1); }
.mg2-cos-numar {
    position: absolute; top: -9px; right: -10px; min-width: 19px; height: 19px; box-sizing: border-box; padding: 0 5px;
    border-radius: 999px; background: #3ccf7d; color: #0c2f20; font-size: 12px; font-weight: 700;
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--mg-buton);
}
.mg2-cos-numar[hidden] { display: none; }
.mg2-salt { animation: mg2-salt .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mg2-salt { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }

@media (max-width: 1023px) {
    .mg2-antet { grid-template-columns: auto 1fr !important; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
    .mg2-antet .mg2-cautare { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .mg2-dreapta { justify-self: end; }
}
