/* --- Flooren / HCFP --- */
.hcfp-slider {
    position: relative;
    margin-top: 40px;
    margin-bottom: 60px;
}

.hcfp-swiper {
    overflow: hidden;

}

.hcfp-slider .swiper-slide {
    max-width: 385px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 8px 10px #0000000F;
}

.hcfp-card {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: #eee;
}

.hcfp-card-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--bg);
    margin: 0px;
    transition: all 0.2s;
}

.hcfp-card:hover .hcfp-card-media {
    transform: scale(1.1);
}


.hcfp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
}

.hcfp-card-cta {

    gap: 10px;
    background: #fff;
    border: 0;
    padding: 9px 20px;

    font-weight: 600;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    font-size: 14px;
    line-height: 18px;
    box-shadow: 0px 10px 15px #00000026;
    border-radius: 30px;
    box-sizing: border-box;
}

.hcfp-card-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #000;
    stroke-width: 2;
    transform: rotate(-45deg);
}



.hcfp-card-badge {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 12px 20px;
    border-radius: 10px;
    max-width: 80%;

    box-shadow: 0px 5px 10px #00000014;
}

.hcfp-badge-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: white;
    margin: 0px;
    margin-bottom: 3px;

}

.hcfp-badge-sub {
    opacity: .9;
    font-size: 13px;
    margin-top: 2px;
    display: none;
}

.hcfp-badge-price {
    margin-top: 3px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: white;
}

.hcfp-price-cross {
    text-decoration: line-through;
    opacity: .7;
}


@media (max-width: 768px) {

    .hcfp-slider .swiper-slide {
        max-width: 304px;
    }

    .hcfp-card {
        min-height: 447px;
    }

    .hcfp-card-cta {
        left: 50%;
        transform: translate(-50%, 0px);
        right: initial;
        width: 170px;
    }
    .hcfp-card-badge{
    left: 20px;
    right: 20px;
}
}



/* ---------- MODAL ---------- */
.hcfp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;

}

.hcfp-modal.is-open {
    display: flex;
}

.hcfp-modal__dialog {
    width: min(1100px, 95vw);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;

    position: relative;
    max-height: 90vh;
    overflow: auto;
}

@media (max-width: 900px) {
    .hcfp-modal__dialog {
        grid-template-columns: 1fr;
    }
}

.hcfp-modal__left {
    padding: 24px 28px;
    border-right: 1px solid #D6D2CD;
    display: flex;
    flex-direction: column;
}

.hcfp-modal__left-figure {
    width: 260px;
    height: 160px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    margin-bottom: 14px;
    width: 100%;


}

.hcfp-modal__left-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: black;
}

.hcfp-modal__left-sub {
    opacity: .8;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 19px;
      color: black;
}

.hcfp-modal__left-price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    color: black;
}

.hcfp-modal__left-info {
    font-size: 12px;
     color: black;
    line-height: 1.5;
    margin-top: auto;
}

.hcfp-modal__right {
    padding: 24px 28px;
}

.hcfp-modal__right h2{
margin: 0px;
    padding-right: 30px;
    font-size: 20px;
    margin-bottom: 25px;
    color: black;
    font-weight: 500;
}

.hcfp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f2f2f2;
    border: 0;
    cursor: pointer;
}

.hcfp-close:before,
.hcfp-close:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #111;
    transform-origin: center;
}

.hcfp-close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hcfp-close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}





/* Kafelek klikalny */
.hcfp-card {
    cursor: pointer;
}

.hcfp-card:focus-visible {
    outline: 2px solid #ff8a00;
    outline-offset: 3px;
}

/* Przycisk dekoracyjny – nie przechwytuje kliknięć */
.hcfp-card-cta {
    pointer-events: none;
}