/* ============ BIJUTERIA FILIPE — HEADER CART BUBBLE OVERRIDE ============ */
/* Iconita cos identica + bubble cu numar produse vizibil pe toate ecranele */

/* Linkul cosului — aliniat identic cu Favorite/Cont */
.fm-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

/* Iconitele lipite mai aproape de text in tot header-ul */
html body #pageHeader .phWrapper .phActionsList li a i.mbr,
html body #pageHeader .phWrapper .phActionsList li a i {
    margin-right: 4px !important;
}
html body #pageHeader .phWrapper .phActionsList li a {
    gap: 0 !important;
}

/* Spațiu UNIFORM între iconițele din header (toate paginile) */
html body #pageHeader .phWrapper .phActionsList {
    gap: 18px !important;
}
@media (min-width: 768px) {
    html body #pageHeader .phWrapper .phActionsList { gap: 22px !important; }
}

/* Ascunde textele din header pe TOATE ecranele — doar iconițe */
#pageHeader .phActionsList .txt { display: none !important; }

/* Iconițe UNIFORME și mai mici, peste tot — specificitate maximă */
html body #pageHeader .phWrapper .phActionsList li a i,
html body #pageHeader .phWrapper .phActionsList li a i.mbr,
html body #pageHeader .phWrapper .phActionsList .fm-cart-link i.icomoon-cart,
html body #pageHeader .phWrapper .phActionsList .fm-cart-link i.icomoon-cart.mbr {
    font-size: 19px !important;
    line-height: 1 !important;
    color: #1c1713 !important;
}
@media (min-width: 768px) {
    html body #pageHeader .phWrapper .phActionsList li a i,
    html body #pageHeader .phWrapper .phActionsList li a i.mbr,
    html body #pageHeader .phWrapper .phActionsList .fm-cart-link i.icomoon-cart,
    html body #pageHeader .phWrapper .phActionsList .fm-cart-link i.icomoon-cart.mbr {
        font-size: 22px !important;
    }
    html body #pageHeader .phWrapper .phActionsList li a { padding: 4px 6px !important; }
}

/* Bula cu numarul de produse din cos */
.fm-cart-bubble {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #b8894a;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    pointer-events: none;
    animation: fmCartBubblePop 0.25s ease-out;
}
@keyframes fmCartBubblePop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ascunde bula când coșul e gol */
.fm-cart-bubble[data-cart-count="0"],
.fm-cart-bubble:empty { display: none !important; }

/* Cart link trebuie poziționat pentru a ține bula */
.fm-cart-link {
    position: relative;
}

/* Container-ul de pe dreapta (col cu actions) — putin mai la dreapta */
.phActionsList {
    justify-content: flex-end !important;
}

/* Pe mobil sa nu mai aibe text dupa iconita */
@media (max-width: 767.98px) {
    .fm-cart-link .txt { display: none !important; }
    #pageHeader .phWrapper .row { align-items: center; }
    #pageHeader .phWrapper .phActionsList { justify-content: flex-end !important; align-items: center; min-height: 48px; }
    #pageHeader .phWrapper .phActionsList li { display: flex; align-items: center; }
    #pageHeader .phWrapper > .container > .row > div:last-child .phActionsList { padding-right: 16px !important; }
    #pageHeader .fm-cart-link { margin-right: -6px; transform: translate(4px, 4px); }
    #pageHeader .mainNavigationToggle { top: 60%; left: 18px; transform: translateY(-50%); }
}

@media (min-width: 768px) {
    #pageHeader .phWrapper > .container > .row > div:last-child .phActionsList { padding-right: 16px !important; }
    #pageHeader .fm-cart-link { margin-right: 0; transform: none; }
}
