/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

[data-footer*="type-1"] .ct-footer [data-row*="middle"] > div {
    --container-spacing: 50px;
    --columns-gap: 10px;
    --theme-border: none;
    --theme-border-top: none;
    --theme-border-bottom: none;
    --grid-template-columns: 1.6fr .9fr .6fr 1fr !important
}

#footer h3 {
    font-size: 20px !important;
    color: var(--e-global-color-blocksy_palette_2) !important;
}

/*sanphamnoibat*/



/* Container chính */
.custom-featured-products-slider-wrapper {
    margin: 0 auto;
    position: relative;
    overflow: visible !important;
}
.slider-title {
    text-align: center;
    margin-bottom: 30px;
}
.slider-item h3.product-title {
    font-size: 20px;
    font-weight: 600;
}

.slider-item:hover .product-title,
.slider-item:hover .product-sku,
.slider-item:hover .uudai-text {
    color: #ffffff; /* Chữ màu trắng khi hover/nổi bật */
}

/* Nội dung bên trong sản phẩm */
.product-content-box {
    padding: 20px;
    text-align: center;
}

.product-image-container {
    max-width: 150px;
    margin: 10px auto;
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nút Mua Ngay */
.mua-ngay-btn {
    background-color: #ffffff;
    color: #4b6a4a;
    border: 1px solid #4b6a4a;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.2s;
}

/* Đảm bảo nút "Mua Ngay" vẫn trắng khi hover/active */
.slider-item:hover .mua-ngay-btn,
.slider-item.is-featured-style .mua-ngay-btn {
    background-color: #ffffff;
    color: #4b6a4a;
}

/* Nhãn Bán chạy/Mới/Khuyến mãi */
.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    z-index: 5;
}

.item-badge.hot-sale {
    background-color: #e74c3c; /* Đỏ cho Bán chạy */
}

.item-badge.new {
    background-color: #2ecc71; /* Xanh lá cho Mới */
}

/* ------------------------------------------- */
/* --- Căn chỉnh Owl Carousel NAV --- */
/* ------------------------------------------- */

/* Vị trí các nút điều hướng */
.custom-featured-products-slider.owl-theme .owl-nav {
    margin-top: 0;
}

.custom-featured-products-slider.owl-theme .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003418 !important; /* Màu nền của nút */
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 0 10px !important;
    height: 40px;
    width: 40px;
    border-radius: 50% !important;
    transition: all 0.3s;
    opacity: 0.8;
}

.custom-featured-products-slider.owl-theme .owl-nav button:hover {
    opacity: 1;
}

.custom-featured-products-slider.owl-theme .owl-nav .owl-prev {
    left: -60px; /* Di chuyển sang trái ngoài container */
}

.custom-featured-products-slider.owl-theme .owl-nav .owl-next {
    right: -60px; /* Di chuyển sang phải ngoài container */
}
.slider-item {
    background-color: #FFFDF3;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
}
.slider-item .product-title,
.slider-item .product-sku,
.slider-item .uudai-text {
    color: #333333;
    transition: color 0.3s ease-in-out;
}
.slider-item.is-active-style {
    background-color: #4b6a4a;
    transform: scaleX(1) scaleY(1.1) translateY(0);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

/* Thay đổi màu chữ và nút khi active */
.slider-item.is-active-style .product-title,
.slider-item.is-active-style .product-sku,
.slider-item.is-active-style .uudai-text {
    color: #ffffff; /* Chữ màu trắng khi active */
}

.slider-item.is-active-style .mua-ngay-btn {
    background-color: #ffffff;
    color: #4b6a4a;
    border-color: #ffffff;
}
@keyframes spin-horizontal {
    0% {
        /* Bắt đầu: Không xoay */
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}
.product-image-container img {
    transition: none;
}

.slider-item.is-active-style .product-image-container img {
    animation: spin-horizontal 3.5s linear infinite;
}
.slider-item:not(.is-active-style) .product-image-container img {
    animation: none;
    transform: rotateY(0deg);
}
.custom-featured-products-slider .owl-stage-outer {
    padding: 60px 0;
}

/*hanh-trinh-song-xanh*/
/* ====================================
   1. ĐẨY SLIDER RA NGOÀI CONTAINER (FULL-WIDTH SWIPER)
   ==================================== */

/* Container bao bọc toàn bộ khối (Tiêu đề và Slider) */
.kigen-video-section-wrapper {
    position: relative;

}


/* Tiêu đề và Mũi tên (Nằm trong container nội dung chính) */
.kigen-slider-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.video-content-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 100%;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-poster {
    height: 0;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.kigen-slider-arrows {
    display: flex;
    gap: 10px;
}

.kigen-slider-arrows .swiper-button-prev,
.kigen-slider-arrows .swiper-button-next {
    position: static;
    margin-top: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #3b5346;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kigen-slider-arrows .swiper-button-prev:hover,
.kigen-slider-arrows .swiper-button-next:hover {
    background-color: #004d40;
}

.kigen-slider-arrows .swiper-button-prev:after {
    content: 'prev';
    font-size: 18px;
}
.kigen-slider-arrows .swiper-button-next:after {
    content: 'next';
    font-size: 18px;
}

.swiper-container-full-width .swiper-slide {
    background-color: #2e6043;
    border-radius: 20px;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.8;
    transform: scale(0.9) !important
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1) !important;
}

@media (max-width: 767px) {
    .swiper-container-full-width .swiper-slide {
        width: 90% !important;
    }
}

.kigen-slider-arrows {
    display: flex;
    gap: 10px;
}

.kigen-swiper-prev,
.kigen-swiper-next {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #003418;
    border: 1px solid var(--kigen-green-dark);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kigen-swiper-prev:hover,
.kigen-swiper-next:hover {
    background-color: var(--kigen-green-dark);
    color: var(--kigen-white);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
}

.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}