/**
 * TvcmsCategoryCarousel - Front Styles
 *
 * @author WBP
 * @copyright 2007-2025 PrestaShop SA
 */

/* ========================================
   MAIN CONTAINER
   ======================================== */

.tvcmscategorycarousel {
    position: relative;
    width: 100%;
    padding: 140px 0 72px 0;
    overflow: hidden;
}

.tvcmscategorycarousel__wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 992px) {
    .tvcmscategorycarousel__wrapper {
        flex-direction: row;
        align-items: stretch;
        padding-left: 60px;
        padding-right: 0;
        gap: 130px;
    }
}

/* ========================================
   LEFT COLUMN - TEXT CONTENT
   ======================================== */

.tvcmscategorycarousel__content {
    flex: 0 0 100%;
    max-width: 100%;

}

@media (min-width: 992px) {
    .tvcmscategorycarousel__content {
        flex: 0 0 320px;
        max-width: 320px;
        padding-right: 40px;
    }
}

@media (min-width: 1200px) {
    .tvcmscategorycarousel__content {
        flex: 0 0 538px;
        max-width: 538px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.tvcmscategorycarousel__subtitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #FF0000;
    margin-bottom: 12px;
}

.tvcmscategorycarousel__title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #111;
    margin: 0 0 22px 0;
}

@media (min-width: 992px) {
    .tvcmscategorycarousel__title {
        font-size: 48px;
    }
}

.tvcmscategorycarousel__description {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.8);
    margin: 0 0 28px 0;
}

.tvcmscategorycarousel__button--main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12.5px 16px 12.5px 23px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: #fff;
    background: #FF0000;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 40px;
}

.tvcmscategorycarousel__button--main:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}


.tvcmscategorycarousel__button--main:before {
    content: url("../img/chevron-right.svg");
    display: inline-block;
    margin-right: 9px;
    transition: transform 0.3s ease;
}

.tvcmscategorycarousel__button--main:hover:before {
    animation: chevronBounce 0.6s ease infinite;
}

@keyframes chevronBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}
/* ========================================
   NAVIGATION ARROWS
   ======================================== */

.tvcmscategorycarousel__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tvcmscategorycarousel__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.5);
}

.tvcmscategorycarousel__nav-btn:hover {
    border-color: rgba(0, 0, 0, 1);
    background: white;
    color: rgba(0, 0, 0, 1);
}

.tvcmscategorycarousel__nav-btn svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   RIGHT COLUMN - CATEGORY SLIDER
   ======================================== */

.tvcmscategorycarousel__slider {
    flex: 1;
    min-width: 0;
    overflow: visible;
    clip-path: inset(0 -100vw 0 0);
}

@media (min-width: 992px) {
    .tvcmscategorycarousel__slider {
        margin-right: calc(-50vw + 50%);
        padding-right: calc(50vw - 50%);
    }
}

.tvcmscategorycarousel__carousel {
    overflow: visible;
}

.tvcmscategorycarousel__carousel .owl-stage-outer {
    overflow: visible;
}

.tvcmscategorycarousel__carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.tvcmscategorycarousel__carousel .owl-item {
    display: flex;
}

/* ========================================
   SLIDE CARD
   ======================================== */

.tvcmscategorycarousel__slide {
    width: 100%;
    background: #F7F7F7;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tvcmscategorycarousel__image {
    position: relative;
    overflow: hidden;
    background: #F7F7F7;
}

.tvcmscategorycarousel__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tvcmscategorycarousel__slide:hover .tvcmscategorycarousel__image img {
    transform: scale(1.03);
}

.tvcmscategorycarousel__slide-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tvcmscategorycarousel__parent {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(0,0,0,0.8);
    margin-bottom: 8px;
}

.tvcmscategorycarousel__slide-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #111;
    margin: 0 0 10px 0;
}

.tvcmscategorycarousel__slide-title a {
    color: inherit;
    text-decoration: none;
}

.tvcmscategorycarousel__slide-title a:hover {
    text-decoration: none;
}

.tvcmscategorycarousel__slide-description {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.8);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.tvcmscategorycarousel__slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12.5px 23px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.tvcmscategorycarousel__slide-button:hover {
    background: #000000;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   MOBILE STYLES
   ======================================== */

@media (max-width: 991px) {
    .tvcmscategorycarousel {
        padding: 40px 0 72px 0;
    }

    .tvcmscategorycarousel__content {
        text-align: center;
    }

    .tvcmscategorycarousel__button--main {
        margin-left: auto;
        margin-right: auto;
    }

    .tvcmscategorycarousel__nav {
        justify-content: center;
    }

    .tvcmscategorycarousel__slider {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .tvcmscategorycarousel__title {
        font-size: 32px;
    }

    .tvcmscategorycarousel__slide-title {
        font-size: 20px;
    }
}

/* ========================================
   OWL CAROUSEL OVERRIDES
   ======================================== */

.tvcmscategorycarousel__carousel.owl-carousel .owl-nav {
    display: none;
}

.tvcmscategorycarousel__carousel.owl-carousel .owl-dots {
    display: none;
}
