/* ============================================================
   Pill Navigation — 32f470f1
   Structură:
   1. Stiluri de bază (desktop)
   2. Scroll-lock (independent de breakpoint)
   3. Neutralizare clonă Elementor Sticky
   4. Bloc responsive MOBIL   (max-width: 768px)  — toate instanțele
   5. Bloc responsive TABLETĂ (max-width: 1024px) — doar .pill-nav-bp-tablet
   ============================================================ */

.pill-nav-container-32f470f1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.pill-nav-left-32f470f1 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pill-nav-logo-32f470f1 {
    max-height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.pill-nav-center-32f470f1 {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.pill-nav-ul-32f470f1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.pill-nav-menu-item-32f470f1 {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: inline-block;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.pill-nav-text-32f470f1 {
    display: block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.pill-nav-text-32f470f1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(0);
    width: 100%;
}

.pill-nav-right-32f470f1 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pill-nav-cta-32f470f1 {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Cart */
.pill-nav-cart-32f470f1 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 5px;
}

.pill-nav-cart-icon-32f470f1 {
    font-size: 18px;
    color: #333;
}

.pill-nav-cart-icon-32f470f1 svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.pill-nav-cart-count-32f470f1 {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Badge randat mereu (pt. WooCommerce cart fragments), ascuns când e gol */
.pill-nav-cart-count-32f470f1.is-empty {
    display: none;
}

.pill-nav-shortcode-32f470f1 {
    display: inline-flex;
    align-items: center;
}

/* ------------------------------------------------------------
   Hamburger.
   Selector scop-uit sub container (specificitate 0,2,0) ca să
   bată reset-urile de temă gen `[type="button"] { display:
   inline-block }` (0,1,0) sau `.elementor-kit-6 button` (0,1,1),
   care se încarcă DUPĂ acest fișier și altfel ar face burgerul
   vizibil pe desktop.
   ------------------------------------------------------------ */
.pill-nav-container-32f470f1 .pill-nav-mobile-toggle-32f470f1 {
    display: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    width: 24px !important;
    height: 14px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    position: relative;
    /* Sub overlay (99998): când meniul e deschis, hamburgerul e
       acoperit; închiderea se face din X-ul aflat ÎN overlay. */
    z-index: 99997;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.pill-nav-mobile-toggle-32f470f1 span {
    display: block;
    height: 2px !important;
    width: 100% !important;
    background: #333;
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav-mobile-toggle-32f470f1 span:nth-child(1) { top: 0; }
.pill-nav-mobile-toggle-32f470f1 span:nth-child(2) { bottom: 0; }

.pill-nav-mobile-toggle-32f470f1.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.pill-nav-mobile-toggle-32f470f1.active span:nth-child(2) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ------------------------------------------------------------
   Butonul X din overlay.
   Aceleași resetări hard ca hamburgerul: fără ele, stilurile
   globale de butoane din kitul Elementor / temă (padding,
   background, umbre) îl deformează.
   ------------------------------------------------------------ */
.pill-nav-container-32f470f1 .pill-nav-mobile-close-32f470f1 {
    display: none;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    width: 24px !important;
    height: 24px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    opacity: 0;
    transform: rotate(-135deg) scale(0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.pill-nav-center-32f470f1.active .pill-nav-mobile-close-32f470f1 {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition-delay: 0.1s;
}

.pill-nav-mobile-close-32f470f1 span {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.pill-nav-mobile-close-32f470f1 span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.pill-nav-mobile-close-32f470f1 span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); }

/* Fără outline la tap/click; inel discret DOAR la tastatură */
.pill-nav-mobile-toggle-32f470f1:focus,
.pill-nav-mobile-close-32f470f1:focus {
    outline: none;
}
.pill-nav-mobile-toggle-32f470f1:focus-visible,
.pill-nav-mobile-close-32f470f1:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 5px;
    border-radius: 4px;
}

/* Fără tap highlight pe link-uri */
.pill-nav-menu-item-32f470f1,
.wp-menu-32f470f1 li a,
.pill-nav-cta-32f470f1,
.pill-nav-cart-32f470f1 {
    -webkit-tap-highlight-color: transparent;
}

/* WP Menu — baza pentru efectul de rolling */
.wp-menu-32f470f1 li a {
    display: inline-block;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.wp-menu-32f470f1 li a span.roll-text {
    display: block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.wp-menu-32f470f1 li a span.roll-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
}

/* ------------------------------------------------------------
   Efectele de hover DOAR pe dispozitive cu hover real.
   Pe touch (iOS mai ales), :hover cu transformări poate consuma
   primul tap și face butoanele/link-urile să pară moarte.
   ------------------------------------------------------------ */
@media (hover: hover) {
    .pill-nav-menu-item-32f470f1:hover .pill-nav-text-32f470f1 {
        transform: translateY(-100%);
    }
    .wp-menu-32f470f1 li a:hover span.roll-text {
        transform: translateY(-100%);
    }
    .pill-nav-center-32f470f1.active .pill-nav-mobile-close-32f470f1:hover {
        transform: rotate(90deg) scale(1);
        transition-delay: 0s;
    }
}
.pill-nav-center-32f470f1.active .pill-nav-mobile-close-32f470f1:active {
    transform: rotate(90deg) scale(0.85);
    transition-delay: 0s;
}

/* Top bar-ul mobil e ascuns implicit (vizibil doar în overlay) */
.pill-nav-mobile-top-bar-32f470f1 {
    display: none;
}

/* ------------------------------------------------------------
   2. SCROLL LOCK — tehnica body-fixed.
   Vechea variantă (height:100% pe html/body) colapsa documentul
   și arunca scroll-ul la 0, ceea ce declanșa Elementor Sticky în
   lanț și pierdea poziția utilizatorului. Varianta fixed menține
   vizual poziția (JS setează body.style.top = -scrollY) și
   blochează REAL scroll-ul pe iOS. La închidere JS restaurează
   scroll-ul exact unde era.
   În afara media query-urilor: clasa e adăugată de JS doar când
   overlay-ul e deschis, indiferent de breakpoint (mobil/tabletă).
   ------------------------------------------------------------ */
html.pill-nav-active-32f470f1 {
    overflow: hidden !important;
}
body.pill-nav-active-32f470f1 {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* ------------------------------------------------------------
   3. NEUTRALIZARE CLONĂ ELEMENTOR STICKY.
   La scroll, Elementor Sticky clonează headerul într-un
   .elementor-sticky__spacer ca să păstreze spațiul în layout.
   Clona nu are event handlers; dacă e clonată cât timp meniul e
   deschis, conține un overlay .active MORT care acoperă ecranul
   și blochează orice tap (=> meniul nu se mai poate închide).
   Aici o facem inertă: păstrează spațiul, dar nu se vede și nu
   interceptează nimic.
   ------------------------------------------------------------ */
.elementor-sticky__spacer .pill-nav-container-32f470f1,
.elementor-sticky__spacer .pill-nav-container-32f470f1 * {
    pointer-events: none !important;
}
.elementor-sticky__spacer .pill-nav-center-32f470f1 {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important;
}
.elementor-sticky__spacer .pill-nav-mobile-toggle-32f470f1 {
    visibility: hidden !important;
}

/* ============================================================
   4. BLOC RESPONSIVE — MOBIL (≤768px), toate instanțele.
   Toate regulile sunt scop-uite sub .pill-nav-container-32f470f1
   pentru specificitate (0,2,0)+, ca să nu poată fi răsturnate de
   reset-urile temei încărcate după noi.
   ============================================================ */
@media (max-width: 768px) {
    .pill-nav-container-32f470f1 .pill-nav-mobile-toggle-32f470f1 {
        display: block;
        order: 3;
    }

    .pill-nav-container-32f470f1 .pill-nav-left-32f470f1 {
        order: 1;
    }

    .pill-nav-container-32f470f1 .pill-nav-right-32f470f1 {
        display: none !important;
    }

    /* Overlay-ul full-screen se aplică direct pe clasa de bază din
       CSS (nu depinde de clasa .mobile-dropdown pusă de JS), deci
       nu există flash de meniu desktop înainte să ruleze scriptul.
       .mobile-dropdown rămâne doar ca hook pentru controalele de
       stil din Elementor. */
    .pill-nav-container-32f470f1 .pill-nav-center-32f470f1 {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* fix bară de adrese iOS */
        background: rgba(255, 255, 255, 0.98);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.95) !important;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99998 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding-top: 100px !important;
    }

    .pill-nav-container-32f470f1 .pill-nav-center-32f470f1.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
    }

    .pill-nav-container-32f470f1 .pill-nav-mobile-top-bar-32f470f1 {
        position: absolute !important;
        top: 35px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 24px !important;
        box-sizing: border-box !important;
        height: 24px !important;
    }

    .pill-nav-container-32f470f1 .pill-nav-mobile-left-col-32f470f1,
    .pill-nav-container-32f470f1 .pill-nav-mobile-center-col-32f470f1,
    .pill-nav-container-32f470f1 .pill-nav-mobile-right-col-32f470f1 {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .pill-nav-container-32f470f1 .pill-nav-mobile-left-col-32f470f1 {
        justify-content: flex-start;
    }

    .pill-nav-container-32f470f1 .pill-nav-mobile-right-col-32f470f1 {
        justify-content: flex-end;
    }

    .pill-nav-container-32f470f1 .pill-nav-mobile-close-32f470f1 {
        display: block;
    }

    .pill-nav-container-32f470f1 .pill-nav-ul-32f470f1 {
        flex-direction: column;
        gap: 20px;
    }

    .pill-nav-container-32f470f1 .pill-nav-center-32f470f1 .pill-nav-menu-item-32f470f1,
    .pill-nav-container-32f470f1 .pill-nav-center-32f470f1 .wp-menu-32f470f1 li a {
        font-size: 22px;
    }
}

/* ============================================================
   5. BLOC RESPONSIVE — TABLETĂ (≤1024px).
   Se aplică DOAR instanțelor cu clasa .pill-nav-bp-tablet-32f470f1
   (opțiunea "Tablet & Mobile" din panoul widget-ului). Reguli
   identice cu blocul mobil; la ≤768px se suprapun fără conflict.
   ============================================================ */
@media (max-width: 1024px) {
    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-toggle-32f470f1 {
        display: block;
        order: 3;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-left-32f470f1 {
        order: 1;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-right-32f470f1 {
        display: none !important;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-center-32f470f1 {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(255, 255, 255, 0.98);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.95) !important;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99998 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding-top: 100px !important;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-center-32f470f1.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) !important;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-top-bar-32f470f1 {
        position: absolute !important;
        top: 35px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 24px !important;
        box-sizing: border-box !important;
        height: 24px !important;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-left-col-32f470f1,
    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-center-col-32f470f1,
    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-right-col-32f470f1 {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-left-col-32f470f1 {
        justify-content: flex-start;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-right-col-32f470f1 {
        justify-content: flex-end;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-mobile-close-32f470f1 {
        display: block;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-ul-32f470f1 {
        flex-direction: column;
        gap: 20px;
    }

    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-center-32f470f1 .pill-nav-menu-item-32f470f1,
    .pill-nav-container-32f470f1.pill-nav-bp-tablet-32f470f1 .pill-nav-center-32f470f1 .wp-menu-32f470f1 li a {
        font-size: 22px;
    }
}

/* Mișcare redusă la preferința utilizatorului */
@media (prefers-reduced-motion: reduce) {
    .pill-nav-mobile-toggle-32f470f1 span,
    .pill-nav-mobile-close-32f470f1,
    .pill-nav-center-32f470f1,
    .pill-nav-text-32f470f1,
    .wp-menu-32f470f1 li a span.roll-text {
        transition-duration: 0.01s !important;
        transition-delay: 0s !important;
    }
}