/**
 * Styles for: CÓ THỂ BẠN QUAN TÂM - SLIDER VERSION
 */

.sec-ctbqt {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.sec-ctbqt__title {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #222;
    letter-spacing: 1px;
}

.sec-ctbqt__slider-wrapper {
    position: relative;
    /* Removed large horizontal padding to let products fill the container */
}

.sec-ctbqt__swiper {
    padding: 15px 15px 60px;
    margin: -15px -15px;
}

.swiper-slide {
    height: auto;
}

.sec-ctbqt__card {
    background: #fff;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* border: 1.5px solid #e8d44d; */
    box-shadow: 0 0 0 1.5px #e8d44d; /* Use shadow as border to prevent clipping */
    position: relative;
}

.sec-ctbqt__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 1.5px #000, 0 15px 35px rgba(0,0,0,0.1);
}

.sec-ctbqt__image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0; /* Match card top corners */
}

.sec-ctbqt__image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.6s ease;
}

.sec-ctbqt__card:hover .sec-ctbqt__image img {
    transform: scale(1.1);
}

.sec-ctbqt__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0; /* Match card radius for top */
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.sec-ctbqt__card:hover .sec-ctbqt__overlay {
    opacity: 1;
}

.sec-ctbqt__btn-view {
    padding: 12px 28px;
    background: #e8d44d;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.sec-ctbqt__card:hover .sec-ctbqt__btn-view {
    transform: translateY(0);
}

.sec-ctbqt__btn-view:hover {
    background: #000;
    color: #e8d44d;
}

.sec-ctbqt__info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.sec-ctbqt__product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.sec-ctbqt__card:hover .sec-ctbqt__product-name {
    color: #e8d44d;
}

.sec-ctbqt__product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SLIDER CONTROLS - TOP RIGHT PATTERN */
.sec-ctbqt__prev,
.sec-ctbqt__next {
    position: absolute;
    top: -85px; /* Above the slider */
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    border: 1.5px solid #e8d44d;
}

.sec-ctbqt__prev { right: 46px; left: auto; }
.sec-ctbqt__next { right: 0; }

.sec-ctbqt__prev:hover,
.sec-ctbqt__next:hover {
    background: #000;
    border-color: #000;
}

.sec-ctbqt__prev:hover svg,
.sec-ctbqt__next:hover svg {
    fill: #e8d44d;
}

.sec-ctbqt__prev svg,
.sec-ctbqt__next svg {
    width: 20px;
    height: 20px;
    fill: #222;
}

.sec-ctbqt__pagination {
    bottom: 0 !important;
}

.sec-ctbqt__pagination .swiper-pagination-bullet {
    background: #e8d44d;
    opacity: 0.3;
}

.sec-ctbqt__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Response for Mobile & Tablet */
@media (max-width: 991px) {
    .sec-ctbqt { padding: 80px 0; }
    .sec-ctbqt__slider-wrapper { padding: 0; }
    .sec-ctbqt__prev, .sec-ctbqt__next { display: none; }
}

@media (max-width: 549px) {
    .sec-ctbqt { padding: 50px 0; }
    
    .sec-ctbqt__title {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: left;
    }

    .sec-ctbqt__card { 
        border-radius: 12px;
    }
    .sec-ctbqt__image {
        border-radius: 12px 12px 0 0;
    }
    .sec-ctbqt__info { padding: 15px; }

    .sec-ctbqt__product-name {
        font-size: 15px;
        margin-bottom: 8px;
        min-height: auto;
    }

    .sec-ctbqt__product-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .sec-ctbqt__overlay { display: none; }
    .sec-ctbqt__link-mobile {
        display: inline-block;
        margin-top: 10px;
        font-size: 12px;
        font-weight: 700;
        color: #e8d44d;
        text-decoration: underline;
    }
}
