/* ==========================================================
   LOZEA.CZ - VLASTNI STYLY
   ========================================================== */

/* ----------------------------------------------------------
   SWIPE HLAVNIHO BANNEROVEHO CAROUSELU
   ---------------------------------------------------------- */

#carousel {
    touch-action: pan-y;
}

#carousel .carousel-inner,
#carousel .item,
#carousel .item > a,
#carousel img {
    -webkit-user-select: none;
    user-select: none;
}

#carousel img {
    -webkit-user-drag: none;
}

/* ----------------------------------------------------------
   SLIDER DOPORUCENYCH PRODUKTU NA HOMEPAGE
   ---------------------------------------------------------- */

.lozea-recommended-heading {
    margin: 44px 0 20px !important;
    text-align: center;
    font-size: 27px !important;
    line-height: 1.2;
    font-weight: 600;
    color: #222;
}

.lozea-product-slider {
    position: relative;
    margin: 0 0 44px;
    padding: 0 46px;
}

.lozea-products-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 20px;
    margin: 0 !important;
    padding: 2px 2px 10px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lozea-products-track::-webkit-scrollbar {
    display: none;
}

.lozea-products-track::before,
.lozea-products-track::after {
    content: none !important;
    display: none !important;
}

.lozea-products-track > .product {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 40px) / 3) !important;
    width: calc((100% - 40px) / 3) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 6px !important;
    float: none !important;
    border: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.lozea-products-track .p {
    height: 100%;
    padding-bottom: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.lozea-products-track .image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 230px !important;
    margin-bottom: 11px !important;
}

.lozea-products-track .p > a.image::before,
.lozea-products-track .p > a.image::after {
    content: none !important;
    display: none !important;
}

.lozea-products-track .image img {
    display: block;
    width: auto !important;
    max-width: 100%;
    max-height: 230px;
    margin: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lozea-products-track .product:hover .image img {
    transform: scale(1.025);
}

.lozea-products-track .name {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    height: auto !important;
    min-height: 42px;
    margin-bottom: 7px !important;
    text-align: center;
    font-size: 16px !important;
    line-height: 1.35;
    color: #303030 !important;
}

.lozea-products-track .name:hover {
    color: #424347 !important;
    text-decoration: underline;
}

.lozea-products-track .ratings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding-bottom: 6px;
    text-align: center;
}

.lozea-products-track .ratings-wrapper .stars-wrapper,
.lozea-products-track .ratings-wrapper .stars-placeholder,
.lozea-products-track .ratings-wrapper .availability {
    flex: 0 0 auto;
    width: 100%;
    text-align: center !important;
}

.lozea-products-track .availability {
    margin-top: 3px;
}

.lozea-products-track .p-bottom > div {
    display: block !important;
}

.lozea-products-track .p-bottom .prices,
.lozea-products-track .price-final {
    width: 100%;
    text-align: center !important;
}

.lozea-products-track .price-final strong {
    font-size: 20px !important;
}

/* Disco tyto prvky v danem slideru nezobrazuje. */
.lozea-products-track .p-tools,
.lozea-products-track .p-desc,
.lozea-products-track .p-code {
    display: none !important;
}

.lozea-slider-arrow {
    position: absolute;
    z-index: 5;
    top: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #424347;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    font: 27px/1 Arial, sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease,
        opacity 0.2s ease, box-shadow 0.2s ease;
}

.lozea-slider-arrow:hover {
    background: #424347;
    color: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.17);
}

.lozea-slider-arrow:focus-visible {
    outline: 2px solid #424347;
    outline-offset: 3px;
}

.lozea-slider-arrow:disabled {
    opacity: 0.22;
    cursor: default;
    pointer-events: none;
}

.lozea-slider-arrow--prev {
    left: 0;
}

.lozea-slider-arrow--next {
    right: 0;
}

.lozea-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 20px;
    margin-top: 6px;
}

.lozea-slider-dot {
    display: block;
    width: 30px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #dedede;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.lozea-slider-dot:hover {
    background: #999;
}

.lozea-slider-dot.is-active {
    width: 36px;
    background: #424347;
}

@media (max-width: 991px) {
    .lozea-product-slider {
        padding: 0 42px;
    }

    .lozea-products-track {
        gap: 18px;
    }

    .lozea-products-track > .product {
        flex-basis: calc((100% - 18px) / 2) !important;
        width: calc((100% - 18px) / 2) !important;
    }

    .lozea-products-track .image {
        height: 210px !important;
    }

    .lozea-products-track .image img {
        max-height: 210px;
    }

    .lozea-slider-arrow {
        top: 105px;
    }
}

@media (max-width: 599px) {
    .lozea-recommended-heading {
        margin-top: 34px !important;
        margin-bottom: 16px !important;
        font-size: 24px !important;
    }

    .lozea-product-slider {
        margin-bottom: 34px;
        padding: 0 34px;
    }

    .lozea-products-track {
        gap: 12px;
        padding-bottom: 8px !important;
    }

    .lozea-products-track > .product {
        flex-basis: 100% !important;
        width: 100% !important;
        padding: 0 4px !important;
    }

    .lozea-slider-arrow {
        top: 105px;
        width: 34px;
        height: 34px;
        font-size: 22px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .lozea-products-track .image {
        height: 210px !important;
    }

    .lozea-products-track .image img {
        max-height: 210px;
    }

    .lozea-slider-dot {
        width: 20px;
    }

    .lozea-slider-dot.is-active {
        width: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lozea-products-track {
        scroll-behavior: auto;
    }

    .lozea-products-track .image img {
        transition: none;
    }
}
