/* === HOME / NON-CRITICAL CSS (async) === */

/* Banda clienți – animație pornită DOAR după load */
.logo-marquee {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 14px 0;
    min-height: 84px;
}

.logo-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: st-logo-scroll 24s linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

.logo-track.play {
    animation-play-state: running;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

@keyframes st-logo-scroll {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.logo-track img {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
}

@media (max-width:575.98px) {
    .logo-marquee img {
        height: 50px !important;
    }
}

/* Cookie banner – fără CLS, design simplu */
#cookie-banner {
    position: fixed !important;
    left: 50% !important;
    bottom: 12px !important;
    transform: translate(-50%, 120%) !important;
    width: min(560px, 92vw) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    z-index: 99999 !important;
    will-change: transform;
}

#cookie-banner>* {
    background: #fff !important;
    border: 1px solid #e6eef5 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    box-shadow: none !important;
}

#cookie-banner p,
#cookie-banner .cm-text,
#cookie-banner .text {
    margin: 0 0 10px;
    color: #344054;
    line-height: 1.45;
    font-size: 14px;
}

#cookie-banner .cm-buttons,
#cookie-banner .buttons,
#cookie-banner .btns,
#cookie-banner .cc-compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#cookie-banner button,
#cookie-banner .btn,
#cookie-banner a[role="button"] {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
    height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #0a2a43;
    font-weight: 600;
    text-align: center;
}

#cookie-banner .btn-primary,
#cookie-banner .accept,
#cookie-banner [data-action="accept"] {
    background: #2cb67d;
    border-color: #2cb67d;
    color: #fff;
}

#cookie-banner.is-visible {
    transform: translate(-50%, 0) !important;
    transition: transform .25s ease;
}

@media (max-width:480px) {
    #cookie-banner>* {
        padding: 12px !important;
    }

    #cookie-banner .cm-buttons,
    #cookie-banner .buttons,
    #cookie-banner .btns,
    #cookie-banner .cc-compliance {
        flex-direction: column;
        gap: 8px;
    }

    #cookie-banner button,
    #cookie-banner .btn,
    #cookie-banner a[role="button"] {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 44px;
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    #cookie-banner {
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

/* UI global secundar (non-critic): hamburger, close, mobile menu */
.mobile-nav-toggler {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
}

.mobile-nav-toggler .icon {
    display: none !important;
}

.mobile-nav-toggler::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #0a2a43;
    border-radius: 2px;
    box-shadow: 0 6px 0 #0a2a43, 0 -6px 0 #0a2a43;
}

.close-btn,
.search-popup .close,
.category-close,
.filter-close {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    cursor: pointer;
}

.close-btn span,
.close-btn .icon {
    display: none !important;
}

.close-btn::before,
.search-popup .close::before,
.category-close::before,
.filter-close::before {
    content: "×";
    font-size: 18px;
    line-height: 1;
    color: #475467;
    font-family: inherit;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #fff;
    z-index: 99999;
    overflow: auto;
    transform: translateX(110%);
    transition: transform .25s ease;
}

body.mobile-menu-visible .mobile-menu {
    transform: translateX(0);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 99998;
}

body.mobile-menu-visible .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-visible {
    overflow: hidden;
}

/* === ASIDE stack + carduri === */
.aside-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 992px) {
    .aside-stack {
        position: sticky;
        top: 96px;
    }
}

.st-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
}

/* ---- CARD TELEFON (centrat) ---- */
.st-phone-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.st-phone {
    display: inline-block;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .2px;
    color: #0a2a43;
    text-decoration: none;
}

.st-phone:hover {
    text-decoration: underline;
}

/* badge + sub – forțează centrul doar în cardul de telefon */
.st-phone-card .st-status,
.st-phone-card .st-sub {
    align-self: center;
    text-align: center;
}

/* status: ok/urgențe (default) */
.st-status {
    display: inline-block;
    align-self: flex-start;
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
}

.st-status--ok {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.st-status--danger {
    background: #fff1f2;
    color: #b42318;
    border-color: #fecdd3;
}

/* subtext */
.st-sub {
    font-size: 14px;
    margin-top: 2px;
}

.st-sub--muted {
    color: #475467;
    font-weight: 500;
}

.st-sub--strong {
    color: #0a2a43;
    font-weight: 700;
}

/* ---- CARDURI STATISTICI ---- */
.stat-card {
    text-align: center;
    padding: 18px 12px;
}

.stat-card .count {
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    color: #0a2a43;
}

.stat-card .count-text {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.stat-card .count-suffix {
    margin-left: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #0a2a43;
}

.stat-card .label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475467;
}

/* ---- WhatsApp ---- */
.st-wa-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-wa-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.st-wa-ico {
    display: block;
}

.st-wa-text {
    font-weight: 600;
    color: #0a2a43;
}

.st-wa-link:hover .st-wa-text {
    text-decoration: underline;
}

/* === HOME: fundal secțiune + card conținut + linie verde sub titlu === */
.welcome-section {
    background: #f7fafc;
    padding: 24px 0;
}

.home-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
}

.home-title {
    margin: 0 0 4px;
    font-weight: 800;
    color: #0a2a43;
}

/* linia verde sub titlu */
.home-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: #2cb67d;
}

.home-sub {
    color: #475467;
    font-weight: 600;
    margin-bottom: 10px;
}
/* Taie orice overlay/color wash peste slider */
.banner-carousel .swiper-slide::before,
.main-slider::before,
.main-slider .image-layer::before,
.main-slider .overlay-layer,
.main-slider .overlay-box::before{
  content:none !important;
  background:transparent !important;
  opacity:0 !important;
}
