/**
 * TvcmsFeaturedProductsText - Front Styles
 *
 * @author ThemeVolty
 * @copyright 2007-2025 PrestaShop SA
 */

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

.tvcmsfeaturedproductstext {
    position: relative;
    width: 100%;
    padding: 60px 0;
    overflow: hidden;
}

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

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

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

.tvcmsfeaturedproductstext__content {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px 0;
}

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

@media (min-width: 1200px) {
    .tvcmsfeaturedproductstext__content {
        flex: 0 0 538px;
        max-width: 538px;
        padding-right: 132px;
    }
}

.tvcmsfeaturedproductstext__subtitle {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF0000;
    margin-bottom: 12px;
}

.tvcmsfeaturedproductstext__title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: #111;
    margin: 0 0 20px 0;
}

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

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

.tvcmsfeaturedproductstext__button {
    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;
}
.tvcmsfeaturedproductstext__button:before {
    content: url("../img/chevron-right.svg");
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease;
}
.tvcmsfeaturedproductstext__button:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}
.tvcmsfeaturedproductstext__button:hover:before {
    animation: chevronBounce 0.6s ease infinite;
}

@keyframes chevronBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* ========================================
   NAVIGATION ARROWS
   ======================================== */

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

.tvcmsfeaturedproductstext__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);
}

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

.tvcmsfeaturedproductstext__nav-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RIGHT COLUMN - PRODUCT SLIDER
   ======================================== */

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

@media (min-width: 992px) {
    .tvcmsfeaturedproductstext__slider {
        /* Allow carousel to extend to right edge */
        margin-right: calc(-50vw + 50%);
        padding-right: calc(50vw - 50%);
    }
}

.tvcmsfeaturedproductstext__carousel {
    overflow: visible;
}

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

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

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

.tvcmsfeaturedproductstext__carousel .product-miniature {
    width: 100%;
    background: #F7F7F7;
    border-radius: 0;
    box-shadow: none;
}

/* Product card styling within this module */
.tvcmsfeaturedproductstext__carousel .product-miniature .thumbnail-container {
    background: #F7F7F7;
}
.tvcmsfeaturedproductstext__carousel .tvproduct-wrapper {
    background: #F7F7F7;
}
.tvcmsfeaturedproductstext__carousel .product-miniature .product-description {
    padding: 16px 20px;
}

.tvcmsfeaturedproductstext__carousel .product-miniature .product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tvcmsfeaturedproductstext__carousel .product-miniature .product-title a {
    color: #1a1a1a;
}

.tvcmsfeaturedproductstext__carousel .product-miniature .product-price-and-shipping {
    margin-bottom: 12px;
}

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

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

    .tvcmsfeaturedproductstext__content {
        text-align: center;
    }

    .tvcmsfeaturedproductstext__nav {
        justify-content: center;
    }

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

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

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

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