/* Ascunde modal-ul implicit Blazor — folosim overlay-ul custom alma-rc-* */
#components-reconnect-modal,
components-reconnect-modal {
    display: none !important;
}

/* ── Overlay reconectare custom ─────────────────────────────────────────── */
.alma-rc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 25, 30, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.alma-rc-overlay.alma-rc-hide {
    opacity: 0;
    pointer-events: none;
}

.alma-rc-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 40px;
    max-width: 340px;
    width: calc(100vw - 40px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.alma-rc-spinner {
    width: 48px;
    height: 48px;
    position: relative;
}

.alma-rc-ring {
    width: 48px;
    height: 48px;
    border: 3px solid #f0ece8;
    border-top-color: #b59a8a;
    border-radius: 50%;
    animation: alma-rc-spin 0.9s linear infinite;
}

@keyframes alma-rc-spin {
    to { transform: rotate(360deg); }
}

.alma-rc-msg {
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3a3530;
    margin: 0;
    line-height: 1.5;
}

.alma-rc-btn {
    font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #b59a8a;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.alma-rc-btn:hover {
    background: #a08272;
}

.alma-rc-btn:active {
    transform: scale(0.97);
}


html, body {
     font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
     color: #006bb7;
}

.btn-primary {
     color: #fff;
     background-color: #1b6ec2;
     border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
     box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
     padding-top: 1.1rem;
}

h1:focus {
     outline: none;
}

.valid.modified:not([type=checkbox]) {
     outline: 1px solid #26b050;
}

.invalid {
     outline: 1px solid #e50000;
}

.validation-message {
     color: #e50000;
}

.blazor-error-boundary {
     background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
     padding: 1rem 1rem 1rem 3.7rem;
     color: white;
}

     .blazor-error-boundary::after {
          content: "An error has occurred."
     }

.treatment-card {
     position: relative;
     overflow: hidden;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), rgb(170, 170, 170) 0px 0px 8px 2px;
     width: 100%;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: transparent;
}

     .treatment-card:hover {
          opacity: 0.9;
     }

.treatment-image {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
/*     border-radius: 12px;*/
}

.treatment-label {
     position: absolute;
     bottom: 15px;
     right: 15px;
     background: rgba(255, 255, 255, 0.85);
     padding: 10px 14px;
     border-radius: 10px;
     font-weight: bold;
     font-size: 1rem;
}
.treatments-container {
     text-align: center;
     padding: 20px 0;
}

.treatment-item {
     display: flex;
     justify-content: center;
     align-items: center;
     min-height: 80px; /* Aliniere verticală mai bună */
}

.treatment-link {
     cursor: pointer;
     transition: color 0.3s ease-in-out;
}

     .treatment-link:hover {
          color: #8a6b5c; /* O nuanță elegantă */
     }

.image-container {
     position: relative;
     width: 100%;
     padding-top: 100%; /* Creates a 1:1 aspect ratio (square) */
     overflow: hidden;
}

.product-image {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover; /* This maintains aspect ratio while filling the container */
}

.blog-card {
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     border-radius: 12px;
     overflow: hidden;
}

     .blog-card:hover {
          transform: translateY(-4px);
          box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
     }

.blog-image {
     transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
     transform: scale(1.05);
}

.products-per-page {
    display:flex;
    padding-bottom:5px;
}

.services-details-one__massages-img {
    height: 400px; /* ajustează după preferință */
    width: 100%;
}

    .services-details-one__massages-img img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* păstrează proporțiile; nu taie */
        display: block;
        background-color: #f8f9fa; /* opțional, umple spațiul gol */
    }

/* Opțional: înălțime mai mică pe ecrane mici */
@media (max-width: 576px) {
    .services-details-one__massages-img {
        height: 260px;
    }
}

















@media (max-width: 960px) {
     .blog-card .mud-grid .mud-grid-item:first-child {
          order: 1;
     }

     .blog-card .mud-grid .mud-grid-item:last-child {
          order: 2;
     }
     
     .treatment-card {
         height: 200px;
     }

     .products-per-page{
         display:none;

     }
}

/* Override: slide mobile nav from the right */
.mobile-nav__wrapper {
     left: 0;
     right: 0;
     -webkit-transform: translateX(100%) !important;
     transform: translateX(100%) !important;
     -webkit-transform-origin: left center !important;
     transform-origin: left center !important;
}

.mobile-nav__wrapper.expanded {
     -webkit-transform: translateX(0) !important;
     transform: translateX(0) !important;
}

.mobile-nav__content {
     margin-left: auto;
     -webkit-transform: translateX(100%) !important;
     transform: translateX(100%) !important;
}

.mobile-nav__wrapper.expanded .mobile-nav__content {
     -webkit-transform: translateX(0) !important;
     transform: translateX(0) !important;
}

/*
 * Bara fixă Home / Favorite / Coș (AppNavBar): NU în CSS scoped — după Interactive Server,
 * regulile din *.razor.css pot să nu se mai aplice la element (strip în flux deasupra header pe desktop).
 */
.mobile-quick-actions {
    display: none;
}

/* Buton apel mobil: afișat doar sub breakpoint-ul de mai jos */
.mobile-call-fab {
    display: none;
}

@media (min-width: 992px) {
    .mobile-quick-actions {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .mobile-quick-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 990;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        gap: 8px;
        padding: 10px 12px;
        background: #ffffff;
        border-top: 1px solid #ececec;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    }

    .mobile-quick-actions__item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 10px;
        color: #1f1f1f;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        border-radius: 8px;
        background: #f8f8f8;
    }

    .mobile-quick-actions__icon-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
    }

    .mobile-quick-actions__item:hover {
        color: #007bff;
    }

    .mobile-quick-actions__label {
        line-height: 1;
    }

    /* Buton apel cu text + scroll sus: deasupra barei Home / Favorite / Coș */
    .mobile-call-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        z-index: 991;
        min-height: 48px;
        padding: 10px 16px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        right: calc(16px + 50px + 12px);
        max-width: calc(100vw - 16px - 50px - 12px - 16px);
        border-radius: 999px;
        background: #fff;
        color: #000;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-call-fab i {
        font-size: 16px;
        line-height: 1;
        flex-shrink: 0;
    }

    .mobile-call-fab__text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-call-fab:active {
        filter: brightness(0.92);
    }

    .scroll-to-top {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        z-index: 991 !important;
    }
}

/* Hero video (Home) — un singur ecran înălțime; responsive
   Mellis (.main-slider-two .container) pune padding-top 318px + bottom 220px și se încarcă DUPĂ app.css.
   Suprascriem cu specificitate mai mare: .main-slider-two.main-slider-two--video ... */
.main-slider-two.main-slider-two--video {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.main-slider-two.main-slider-two--video .hero-video-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    /* Exact o înălțime de viewport (svh = fără scroll fals pe desktop/mobil) */
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    min-height: 0;
    padding: 0;
    background-color: #27252a;
}

.main-slider-two.main-slider-two--video .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.main-slider-two.main-slider-two--video .hero-video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(39, 37, 42, 0.55);
    z-index: 2;
}

/* Înlocuiește padding-urile mari din mellis.css pentru slider — conținut centrat în viewport */
.main-slider-two.main-slider-two--video .hero-video-wrap > .container {
    position: relative;
    z-index: 3;
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    /* Padding simetric (safe-area + spațiu sub header-ul absolute) — păstrează centrul vizual */
    padding-block: max(
        env(safe-area-inset-top, 0px),
        env(safe-area-inset-bottom, 0px),
        clamp(72px, 10vmin, 100px)
    );
    padding-inline: max(15px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    text-align: center;
}

.main-slider-two.main-slider-two--video .hero-video-wrap > .container .row {
    width: 100%;
    justify-content: center;
}

.main-slider-two.main-slider-two--video .hero-video-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Fără Swiper: conținutul trebuie vizibil (tema ascundea până la .swiper-slide-active) */
.main-slider-two.main-slider-two--video .main-slider-two__sub-title,
.main-slider-two.main-slider-two--video .main-slider-two__title,
.main-slider-two.main-slider-two--video .main-slider-two__btn-box,
.main-slider-two.main-slider-two--video .spa-center__btn-box {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

@media only screen and (max-width: 767px) {
    .main-slider-two.main-slider-two--video .hero-video-wrap > .container {
        padding-block: max(
            env(safe-area-inset-top, 0px),
            env(safe-area-inset-bottom, 0px),
            clamp(64px, 12vmin, 88px)
        );
    }

    .main-slider-two.main-slider-two--video .main-slider-two__title {
        font-size: clamp(28px, 9vw, 40px);
        line-height: 1.15;
    }
}
