/*
 * Visual skin for the featured products carousel on the homepage.
 * Owl Carousel and the existing OpenCart product markup keep their original logic.
 */

body.common-home #content .kvetku-featured__heading {
    margin: 0 0 12px;
    padding: 0;
    border-bottom: 0 !important;
    font-size: 22px;
    line-height: 1.3;
}

body.common-home #content .kvetku-featured__carousel {
    margin: 0 0 48px;
}

body.common-home #content .kvetku-featured__carousel .owl-wrapper-outer {
    padding: 10px 0 16px;
}

body.common-home #content .kvetku-featured__carousel .owl-item {
    box-sizing: border-box;
    padding: 0 12px;
}

body.common-home #content .kvetku-featured__carousel .product-thumb,
body.common-home #content .kvetku-featured__carousel .product-thumb:hover {
    margin: 0;
    padding: 8px 4px 10px;
    border: 0 !important;
    background: transparent;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .image {
    width: 280px;
    max-width: 100%;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 24px;
    background: #eee9eb;
    box-shadow: 0 4px 24px rgba(35, 24, 30, 0.18);
    transform: translateY(0);
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 500ms ease;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .image a {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: inherit;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .image a:focus-visible {
    outline: 3px solid rgba(125, 88, 107, 0.42);
    outline-offset: -3px;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.common-home #content .kvetku-featured__carousel .product-thumb:hover .image,
body.common-home #content .kvetku-featured__carousel .product-thumb:focus-within .image {
    box-shadow: 0 8px 40px rgba(35, 24, 30, 0.27);
    transform: translateY(-3px);
}

body.common-home #content .kvetku-featured__carousel .product-thumb:hover .image img,
body.common-home #content .kvetku-featured__carousel .product-thumb:focus-within .image img {
    transform: scale(1.05);
}

body.common-home #content .kvetku-featured__carousel .product-thumb .caption {
    min-height: 76px;
    padding: 0 4px;
}

body.common-home #content .kvetku-featured__carousel .product-thumb h4 {
    min-height: 36px;
    margin: 0 0 8px;
    line-height: 1.35;
}

body.common-home #content .kvetku-featured__carousel .product-thumb h4 a {
    color: #332d31;
    text-decoration: none;
}

body.common-home #content .kvetku-featured__carousel .product-thumb h4 a:hover,
body.common-home #content .kvetku-featured__carousel .product-thumb h4 a:focus {
    color: #7d586b;
    text-decoration: none;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .price {
    margin: 0 0 13px;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .button-group .btn-primary {
    min-width: 112px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #3a3136;
    box-shadow: none;
    transition: background-color 220ms ease, transform 220ms ease;
}

body.common-home #content .kvetku-featured__carousel .product-thumb .button-group .btn-primary:hover,
body.common-home #content .kvetku-featured__carousel .product-thumb .button-group .btn-primary:focus {
    background: #7d586b;
    transform: translateY(-1px);
}

body.common-home #content .kvetku-featured__carousel .owl-buttons {
    display: block !important;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div {
    top: 144px;
    bottom: auto;
    display: flex;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: #9b9799;
    background: transparent !important;
    box-shadow: none;
    filter: none;
    opacity: 0.86;
    transform: translateX(0);
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div .fa {
    font-size: 18px;
    line-height: 1;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-prev {
    right: auto;
    left: 16px;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-next {
    right: 16px;
    left: auto;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div:hover {
    color: #3a3136;
    background: transparent !important;
    opacity: 1;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-prev:hover {
    transform: translateX(-2px);
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-next:hover {
    transform: translateX(2px);
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls {
    margin-top: 4px;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-page span {
    width: 8px;
    height: 8px;
    margin: 5px 4px;
    border-radius: 999px;
    background: rgba(125, 88, 107, 0.28);
    opacity: 1;
    transition: width 240ms ease, background-color 240ms ease, transform 180ms ease;
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-page:hover span,
body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-page:focus span {
    background: rgba(125, 88, 107, 0.58);
    transform: scale(1.12);
}

body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-page.active span {
    width: 32px;
    background: #7d586b;
    transform: none;
}

@media (max-width: 767px) {
    body.common-home #content .kvetku-featured__heading {
        margin-bottom: 8px;
        font-size: 20px;
    }

    body.common-home #content .kvetku-featured__carousel {
        margin-bottom: 36px;
    }

    body.common-home #content .kvetku-featured__carousel .owl-item {
        padding: 0 8px;
    }

    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-prev {
        left: 8px;
    }

    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons .owl-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    body.common-home #content .kvetku-featured__carousel .product-thumb .image {
        width: 260px;
        border-radius: 18px;
    }

    body.common-home #content .kvetku-featured__carousel .product-thumb .caption {
        min-height: 68px;
    }

    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div {
        top: 135px;
        width: 28px;
        height: 26px;
    }

    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div .fa {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.common-home #content .kvetku-featured__carousel .product-thumb .image,
    body.common-home #content .kvetku-featured__carousel .product-thumb .image img,
    body.common-home #content .kvetku-featured__carousel .product-thumb .button-group .btn-primary,
    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-buttons div,
    body.common-home #content .kvetku-featured__carousel.owl-theme .owl-controls .owl-page span {
        transition: none;
    }
}
