/* =====================================================
   Single Product Recommended Carousel - Real Slider
   ===================================================== */

.dkt-tab-carousel {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-product .dkt-tab-carousel.recommended-products {
    width: 100% !important;
    max-width: 100% !important;
    margin: 48px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Header: title trái, counter/nav phải */
.single-product .recommended-products .dkt-tab-carousel__header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 24px !important;
}

.single-product .recommended-products .dkt-tab-carousel__header-left {
    min-width: 0 !important;
}

.single-product .recommended-products .dkt-tab-carousel__header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.single-product .recommended-products .dkt-tab-carousel__heading {
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #191c1e !important;
    margin: 0 !important;
}

/* Wrapper giữ đúng 2 lề container */
.single-product .recommended-products .dkt-tab-carousel__panel,
.single-product .recommended-products .dkt-tc-track-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Track slide thật */
.single-product .recommended-products .dkt-tc-track {
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    transition: transform 0.4s ease-in-out !important;
    will-change: transform !important;
    box-sizing: border-box !important;
    transform: translateX(0);
}

/* 4 card / viewport */
.single-product .recommended-products .dkt-tc-card {
    width: calc((100% - 48px) / 4) !important;
    min-width: calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
    flex: 0 0 calc((100% - 48px) / 4) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #EAF6FA !important;
    border: 1px solid #d0f0fd !important;
    border-radius: 12px !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

/* Bo góc ảnh sản phẩm bên trong card */
.single-product .recommended-products .dkt-tc-card__thumb {
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    aspect-ratio: 1/1 !important;
}

.single-product .recommended-products .dkt-tc-card__thumb img:not(.dkt-tc-card__logo) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Ghi đè body của card */
.single-product .recommended-products .dkt-tc-card__body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 10px 4px 0 4px !important;
}

.single-product .recommended-products .dkt-tc-card__sale-label {
    color: #e53935 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 4px 0 !important;
    text-align: left !important;
}

/* Tiêu đề sản phẩm */
.single-product .recommended-products .dkt-tc-card__title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin: 4px 0 8px 0 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 42px !important; /* Đảm bảo chiều cao đồng đều */
}

.single-product .recommended-products .dkt-tc-card__title a {
    color: #111111 !important;
    text-decoration: none !important;
}

.single-product .recommended-products .dkt-tc-card__title a:hover {
    color: #007ba7 !important;
}

/* Giá bán */
.single-product .recommended-products .dkt-tc-card__price {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

.single-product .recommended-products .dkt-tc-card__price .current-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

.single-product .recommended-products .dkt-tc-card__price .old-price {
    font-size: 13px !important;
    color: #888888 !important;
    text-decoration: line-through !important;
}

/* Phím bấm hành động */
.dkt-tc-card__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    border-top: none !important;
}

.dkt-tc-card__btn-detail {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: underline 1.5px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
}

.dkt-tc-card__btn-detail:hover {
    color: #007ba7 !important;
}

.dkt-tc-card__btn-buy {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    background: #007ba7 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: normal !important;
    padding: 5px 15px !important;
    border-radius: 15px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.dkt-tc-card__btn-buy:hover {
    background: #005f82 !important;
    color: #ffffff !important;
}

/* Hide default inline WooCommerce "View cart" link to prevent layout shifting */
.dkt-tc-card .added_to_cart.wc-forward {
    display: none !important;
}

/* Navigation buttons */
.single-product .recommended-products .dkt-tab-carousel__nav-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1px solid #c3c7ca !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.single-product .recommended-products .dkt-tab-carousel__nav-btn:hover {
    border-color: #191c1e !important;
}

/* Tablet: 2 card / viewport */
@media (max-width: 1024px) {
    .single-product .recommended-products .dkt-tc-card {
        width: calc((100% - 16px) / 2) !important;
        min-width: calc((100% - 16px) / 2) !important;
        max-width: calc((100% - 16px) / 2) !important;
        flex-basis: calc((100% - 16px) / 2) !important;
    }
}

/* Mobile: 1 card / viewport */
@media (max-width: 575px) {
    .single-product .recommended-products .dkt-tab-carousel__header {
        align-items: flex-start !important;
    }

    .single-product .recommended-products .dkt-tc-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
}

/* 3 products per row on desktop for DKT Product List grid */
@media (min-width: 769px) {
    .dkt-product-list .dkt-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}









