/* ============================================
   MARKETPLACE PAGE (CHỢ AN TOÀN)
   ============================================ */

/* Marketplace Section */
.ce-shop-section {
    padding: 60px 0;
    min-height: 50vh;
}

/* Shop Grid - Static grid layout (not slider like homepage) */
.ce-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Product images - make them fill the container */
.ce-shop-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Hot Badge for Category Tab */
.hot-badge {
    position: absolute;
    top: -1px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    animation: pulse-hot 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hot-badge i {
    font-size: 9px;
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes pulse-hot {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Note: .product-card styles are already defined in home.css */
/* We only need grid-specific responsive styles here */

/* ============================================
   RESPONSIVE - MARKETPLACE
   ============================================ */

/* Desktop lớn: 1500-1900px */
@media (min-width: 1500px) and (max-width: 1900px) {
    .ce-shop-grid {
        gap: 24px;
    }
}

/* Desktop: 1200-1499px */
@media (min-width: 1200px) and (max-width: 1499px) {
    .ce-shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Laptop nhỏ: 992-1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .ce-shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .ce-shop-grid .product-info {
        padding: 16px;
    }
}

/* Tablet: 768-991px */
@media (min-width: 768px) and (max-width: 991px) {
    .ce-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .ce-shop-section {
        padding: 40px 0;
    }
}

/* Mobile lớn: 576-767px */
@media (min-width: 576px) and (max-width: 767px) {
    .ce-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ce-shop-grid .product-info {
        padding: 16px;
    }
}

/* Mobile nhỏ: ≤575px */
@media (max-width: 575px) {
    .ce-shop-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


}

/* ============================================
   END MARKETPLACE PAGE
   ============================================ */

/* ============================================
   TRANG CHI TIẾT SẢN PHẨM (PRODUCT DETAIL PAGE)
   ============================================ */

/* --- 1. Layout Chung --- */
/* Header background fix for Detail Page */
.header-prdDetail-page {
    background-color: var(--primary-color);
}

.wp-bigCt-prdDetail {
    padding: 40px 0 60px;
    background: #f8fbff;
    /* Light gray background */
}

/* Grid layout 2 columns */
.prd-detail-grid {
    display: flex;
    /* Left column takes remaining space, Right fixed 340px */
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 2. Cột Bên Trái (Left Column) --- */
.prd-detail-left {
    background: #fff;
    flex: 1;
    max-width: 1000px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    z-index: 1;
}

.prd-detail-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
}

.prd-zoom-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #e8f0fe;
    color: #2D8CFF;
    padding: 0px 8px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 140, 255, 0.2);
    min-height: 44px;
}

.prd-zoom-tag .zoom-logo {
    width: 72px;
    object-fit: contain;
}

.prd-zoom-tag .line {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: #2D8CFF;
}

.prd-zoom-tag .zoom-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Meta Row: Avatar, Rating, Stock, Share */
.prd-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0px;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 15px;
}

.prd-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Avatar Group */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-text {
    font-size: 15px;
    margin-left: 10px;
    color: var(--text-color);
}

/* Separate Line */
.separate-line {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

/* Rating */
.prod-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.rating-score {
    font-weight: 700;
    color: var(--text-color);
    font-size: 16px;
    /* Optional: highlight score */
    line-height: 1;
}

.rating-stars {
    color: #ffb400;
    display: flex;
    gap: 2px;
}

.rating-link {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: underline;
    margin-left: 2px;
    transition: color 0.2s;
}

.rating-link:hover {
    color: var(--primary-color-text);
}

/* Stock Status */
.stock-status {
    color: #27ae60;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-status i {
    font-size: 12px;
}


/* Share Buttons overridden by .post-share from news.css */

/* Mô tả sản phẩm (Description) */
.prd-desc-content {
    position: relative;
    overflow: hidden;
    max-height: 400px;
    /* Chiều cao mặc định ban đầu */
    transition: max-height 0.5s ease;
    margin-bottom: 20px;
}

/* Override .inner-article-detailPost max-width inside product description */
.prd-desc-content .inner-article-detailPost {
    max-width: none !important;
}

.prd-desc-content.expanded {
    max-height: none;
    /* Mở rộng full khi click */
}


.prd-desc-content.expanded .desc-overlay {
    background: none;
    height: 0;
}

/* Gradient Overlay for collapsed text */
.desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-toggle-desc {
    display: block;
    margin: 0 auto 40px;
    padding: 10px 30px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-toggle-desc:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 3. Review Section (Ported from Halotour) --- */
/* Cấu trúc đánh giá người dùng */
.review {
    margin-top: 20px;
}


.review__summary {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
    background: #f5f9ff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e6efff;
}

/* Cột điểm số tổng quan */
.review__score {
    text-align: center;
    min-width: 150px;
}

.review__score .review__stars {
    justify-content: center;
}

.review__number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color-text);
    line-height: 1;
    margin-bottom: 5px;
}

.review__label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}


.review__note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.review__write {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.review__write:hover {
    background: #faa90b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

/* Cột thống kê progress bar */
.review__stats {
    flex: 1;
}

.review__stat {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.review__stat-name {
    width: 88px;
    color: var(--text-color);
    font-weight: 700;
}

.review__stat-bar {
    flex: 1;
    height: 8px;
    background: #e0e5ef;
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.review__progress {
    height: 100%;
    background: #444db0;
    border-radius: 4px;
}

.review__stat-count {
    width: 30px;
    text-align: right;
    color: var(--text-light);
}

/* List Comment */

.review__comment {
    display: flex;
    gap: 20px;
    padding: 16px 0px;
    border-bottom: 1px solid #dddddd;
}

.review__comment:last-child {
    border-bottom: none;
}

.review__avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.review__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.review__content {
    flex: 1;
}

.review__name {
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2px;
    font-size: 16px;
}


.review__stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    color: #ffb400;
    font-size: 14px;
}

.review__text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 4px;
}

.review__date {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
    /* Removed italic if desired, or keep */
    margin-left: 10px;
    position: relative;
    padding-left: 10px;
}

.review__date::before {
    content: '';
    position: absolute;
    height: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    background-color: #d6d6d6;
    left: 0;
}

.btn__icon {
    text-align: center;
    margin-top: 15px;
}

/* Load More Reviews Button - Styled like .btn-view-more-categories */
.btn-load-more-reviews {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 18px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* width: 100%; Removed width 100% to keep it centered if parent aligns center, or keep it if needed. 
       User said "lấy lại style" so I'll keep the properties but maybe adjust width if needed.
       .btn-view-more-categories has width: 100%. Let's check context. 
       .btn__icon parent has text-align: center. 
       If I use inline-flex, width 100% might stretch it too wide if not block. 
       But user wants consistent style. Let's stick to the key properties. 
    */
    /* width: 100%; */
}

.btn-load-more-reviews:hover {
    color: #ff9800;
}

.btn-load-more-reviews i {
    transition: transform 0.3s ease;
}


/* --- 4. Cột Bên Phải (Right Column) --- */
/* Sticky Wrapper */
.prd-detail-right {
    position: relative;
    height: 100%;
    width: 320px;
}

/* Khi header sticky (nếu có), cần adjust top. Giả sử header cao 80-90px */
/* .sticky-sidebar {} */

/* Box Mua Hàng */
.buy-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    /* Larger shadow */
    margin-bottom: 25px;
    border: 1px solid #eee;
    position: relative;
    z-index: 1;
}

.frame-buy-now {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    z-index: -1;
}

.buy-box-thumb {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    z-index: -2;
}

.buy-box-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.buy-box-thumb:hover img {
    transform: scale(1.05);
}

.buy-box-title {
    font-size: 17px;
    /* From requirements */
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Thông số phụ */
.buy-box-features {
    list-style: none;
    padding: 0;
    margin-bottom: 8px;
}

.buy-box-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.5;
}

.icon-shield-mini {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: #e3f2fd;
    color: #2c68c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Giá tiền */
.buy-box-price {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.buy-box-price-table {
    width: 100%;
    margin-bottom: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.buy-box-price-head,
.buy-box-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.buy-box-price-head {
    padding-top: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.buy-box-price-head span:last-child,
.buy-box-price-amount {
    text-align: right;
}

.buy-box-price-audience {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.buy-box-price-audience i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    background: #eef2ff;
    color: #4f46e5;
}

.buy-box-price-row:last-child .buy-box-price-audience i {
    background: #fff7ed;
    color: #c2410c;
}

.buy-box-price-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
}

.price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

.price-new {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
    line-height: 1.2;
}

/* Tag khuyến mãi */
.promo-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff3e3;
    color: #d98128;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid #ffd28f;
    animation: pulse-promo 2s infinite;
    margin-top: -10px;
    text-align: center;
}

@keyframes pulse-promo {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Buttons Action */
.buy-actions {
    display: flex;
    grid-template-columns: 1fr 56px;
    /* Button Mua vs Icon Cart */
    gap: 8px;
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: 100%;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 36, 169, 0.4);
    background: linear-gradient(135deg, var(--primary-color), #4a4fc4);
}

.btn-add-cart {
    background: #ff9900;
    border: none;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 18px;
    width: 64px;
}

.btn-add-cart:hover {
    background: #ee8201;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}


/* --- 5. Sản Phẩm Cùng Danh Mục (Related Products) --- */
.related-products-box {
    background: #fff;
    padding: 20px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.related-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--text-color);
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item {
    display: flex;
    gap: 12px;
    /* height: 80px; */
    /* Flexible height */
    align-items: center;
    transition: 0.2s;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
}

.related-item:hover {
    background: #f4f6fa;
}

.related-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.related-name-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.2s;
}

.related-item:hover .related-name-link {
    color: var(--primary-color-text);
}

.related-price-box {
    display: flex;
    align-items: baseline;
    /* Align by text baseline */
    gap: 8px;
    flex-wrap: wrap;
}

.related-price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.related-price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
}

/* =========================================
   Course Curriculum Styles
   ========================================= */
.course-curriculum {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Chapter Item */
.course-chapter {
    border: 1px solid #d8d8d8;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.course-chapter.expanded .chapter-header {
    background-color: #f5f7fa;
}

.chapter-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
}

.chapter-header:hover {
    background-color: #f5f7fa;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.chapter-meta {
    font-size: 14px;
    color: #888;
}

/* Chapter Content */
.chapter-content {
    display: none;
    border-top: 1px solid #eee;
    padding: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 12px 48px;
    /* Indent to align with text above */
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: #f5f7fa;
}

.lesson-icon {
    width: 24px;
    text-align: center;
    color: #5588da;
    margin-right: 12px;
}

.lesson-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-name {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.35;
    flex: 1;
    margin-right: 6px;
}

.lesson-time {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* Zoom lesson tag */
.lesson-zoom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4ff;
    color: #0b5cad;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #b3d4f5;
    white-space: nowrap;
    flex-shrink: 0;
}

.lesson-zoom-tag img {
    width: 48px;
    object-fit: contain;
}


.lesson-meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

/* Try Learn Button */
.btn-try-learn {
    background: transparent;
    border: none;
    background: #32b787;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 28px;
    min-width: 68px;
}

/* Price Save Tag */
.price-save-tag {
    background: #ffe3e3;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
    /* Push to right if flex */
}

/* Combo Box */
.combo-box {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.prd-detail-left .combo-box {
    display: none;
}


.combo-header {
    padding: 4px;
    text-align: center;
    color: white;
    background-image: url('/web/img/bg-combo-prd.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-arrow {
    position: absolute;
    right: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    background: white;
    color: #d43b4f;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-box:hover .combo-arrow {
    transform: translateX(4px);
}

.combo-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
}

.combo-body {
    padding: 6px 10px;
    background: #fff5f6;
    border: solid 1px #fad1d7;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
}

.combo-content-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.combo-left {
    display: flex;
    flex-direction: column;
}

.combo-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    position: relative;
}

.combo-price-new {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
}

.combo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.combo-price-old {
    font-size: 15px;
    text-decoration: line-through;
}

.combo-save-tag {
    position: absolute;
    bottom: 8px;
    right: 7px;
    background: #27ae60;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;

}

.combo-save-tag::before {
    content: '\f02b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
}

/* Combo Course List */
.combo-course-list {
    margin-top: 48px;
    padding: 16px;
    background: linear-gradient(180deg, #ececf1, #f8fafc);
    border-radius: 14px;
    margin-bottom: 40px;
    padding-bottom: 8px;
    position: relative;
}

.combo-course-title {
    position: absolute;
    top: -29px;
    left: 0;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    padding: 3px 20px;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding-bottom: 20px;
    z-index: -1;
}

.course-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px;
    background: white;
    border-radius: 8px;
    transition: all 0.5s;
    border: solid 1px white;
    cursor: pointer;
    position: relative;
}

.course-item:hover {
    border-color: #8184d4;
    padding-right: 56px;
}

.course-item:hover .course-item-name,
.course-item:hover .course-item-meta {
    color: var(--primary-color-text);
}

.course-item.hidden-course {
    display: none;
}

.course-item.hidden-course.show {
    display: flex;
}

.course-item-thumb {
    width: 62px;
    flex-shrink: 0;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.course-item-thumb img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}


.course-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.course-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    line-height: 1.35;
}

.course-item-meta {
    font-size: 13px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    width: 200px;
    text-align: right;
}

.course-item-arrow {
    position: absolute;
    right: -20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color-text);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0;
    transition: all 0.5s;
}

.course-item:hover .course-item-arrow {
    right: 12px;
    opacity: 1;
}

.btn-expand-wrapper {
    margin-top: 8px;
    text-align: center;
}

.btn-expand-courses {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-expand-courses:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-expand-courses i {
    transition: transform 0.3s;
}

.btn-expand-courses.expanded i {
    transform: rotate(180deg);
}


/*responsive trang chi tiết sản phẩm */
/*thanh bar bottom*/
@media (max-width: 991px) {
    .buy-box {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        margin-bottom: 0;
        border-radius: 0px;
        display: flex;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .frame-buy-now {

        display: none;
    }

    .buy-box-thumb {
        display: none;
    }

    .buy-box-title {
        display: none;
    }

    .wp-buy-box-scroll {
        overflow-x: auto;
        width: 100%;
    }

    .buy-box-features {
        display: flex;
        gap: 12px;
        width: 1200px;
    }

    .buy-box-features li {
        margin-bottom: 0;
        max-width: 280px;
    }

    .promo-tag {
        display: none;
    }

    .buy-actions {
        width: 100%;
    }

    .buy-box-price {
        margin-bottom: 0;
        align-self: center;
        align-items: center;
    }

    .buy-box-price-table {
        flex: 1;
        margin-bottom: 0;
        min-width: 0;
        border-top: 0;
    }

    .buy-box-price-head {
        display: none;
    }

    .buy-box-price-row {
        padding: 4px 0;
        border-bottom: 0;
    }

    .buy-box-price-audience {
        font-size: 13px;
    }

    .buy-box-price-amount .price-old {
        display: none;
    }

    .price-new {
        font-size: 22px;
    }
}

@media (min-width: 470px) and (max-width: 575px) {
    .promo-tag {
        display: flex;
        align-self: center;
        margin-bottom: -4px;
        height: 26px;
        padding: 0px 12px;
        transform: none !important;
        margin-left: auto;
    }
}

@media (min-width: 576px) and (max-width: 991px) {

    .buy-actions {
        width: 260px;
        margin-left: auto;
    }

    .buy-box {
        gap: 6px;
    }

    .price-new {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .promo-tag {
        display: flex;
        align-self: center;
        margin-bottom: -8px;
        height: 26px;
        padding: 0px 12px;
        transform: none !important;
        margin-right: auto;
        margin-left: 8px;
    }

    .buy-actions {
        width: 240px;
    }
}

/*end thanh bar bottom*/


/*responsive các thành phần khác*/
@media(max-width:575px) {
    .prd-detail-left {
        flex: none;
        width: 100%;
        padding: 12px;
    }

    .prd-detail-title {
        font-size: 22px;
    }

    .wp-bigCt-prdDetail {
        padding: 20px 0 40px;
    }

    .avatar-group {
        width: 100%;
    }

    .prd-meta-left {
        gap: 0;
        row-gap: 4px;

    }

    .separate-line {
        display: none;
    }

    .stock-status {
        margin-left: auto;
    }

    .prd-meta-row .post-share .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .review__summary {
        margin-bottom: 0px;
        padding: 12px;
        gap: 8px;
    }

    .review__avatar {
        width: 44px;
        height: 44px;
    }

    .review__comment {
        gap: 8px;
    }

    .review__text {
        font-size: 15px;
    }

    .review__stars {
        font-size: 13px;
    }

    .review__stat-name {
        width: 100%;
        margin-bottom: -4px;
    }

    .review__stat-bar {
        margin-left: 0;
        margin-right: 4px;
    }

    .review__stat {
        margin-bottom: 0;
    }

    .review__note {
        margin-bottom: 8px;
    }

    .prd-detail-right {
        width: 100%;
    }

    .prd-detail-grid {
        gap: 20px;
    }

    .combo-box {
        display: none;
    }

    .prd-detail-left .combo-box {
        margin-bottom: 12px;
        display: block;
    }

    .chapter-header {
        padding: 8px;
        gap: 8px;
    }

    .chapter-title {
        font-size: 15px;
    }

    .chapter-meta {
        font-size: 13px;
    }

    .course-chapter {
        margin-bottom: 10px;
    }

    .lesson-item {
        padding: 8px;
    }

    .lesson-icon {
        margin-right: 8px;
    }

    .lesson-name {
        font-size: 14px;
        margin-right: 4px;
    }

    .lesson-meta-right {
        gap: 4px;
    }

    .course-item-thumb {
        height: 48px;
    }

    .course-item-info {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }

    .course-item-meta {
        text-align: left;
    }

    .course-item {
        gap: 8px;
    }

    .course-item-name {
        font-size: 15px;
    }

    .btn-expand-courses {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-toggle-desc {
        padding: 8px 16px;
        font-size: 13px;
    }

    .combo-course-list {
        padding: 12px;
        margin-bottom: 20px;
    }

    .course-items {
        gap: 8px;
    }

}


@media(min-width:576px) and (max-width:767px) {
    .prd-detail-left {
        padding: 24px;
    }

    .prd-detail-title {
        font-size: 24px;
    }

    .prd-meta-row {
        flex-wrap: nowrap;
    }

    .prd-meta-left .separate-line {
        display: none;
    }

    .prd-meta-row .post-share .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .review__summary {
        padding: 20px;
        gap: 28px;
        margin-bottom: 0;
    }

    .review__avatar {
        width: 52px;
        height: 52px;
    }

    .review__text {
        font-size: 15px;
    }

    .review__stars {
        font-size: 12px;
    }

    .prd-detail-right {
        width: 100%;
    }

    .avatar-group {
        width: 100%;
    }

    .stock-status {
        margin-left: 12px;
    }

    .combo-box {
        display: none;
    }

    .prd-detail-left .combo-box {
        margin-bottom: 12px;
        display: block;
    }

    .prd-detail-left .combo-content-row {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .prd-detail-left .combo-left {
        flex-direction: row-reverse;
        align-items: center;
        gap: 20px;
    }

    .prd-detail-left .combo-price-new {
        font-size: 18px;
    }

    .prd-detail-left .combo-name {
        font-size: 15px;
    }

    .prd-detail-left .combo-name::before {
        content: "";
        position: absolute;
        left: -9px;
        width: 1px;
        height: 16px;
        background: #b5828b;
        top: 50%;
        transform: translateY(-50%);
    }

    .prd-detail-left .combo-save-tag {
        bottom: 6px;
    }

    .chapter-header {
        padding: 10px;
    }

    .course-chapter {
        margin-bottom: 12px;
    }

    .lesson-item {
        padding: 10px;
    }

    .lesson-meta-right {
        gap: 8px;
    }

    .lesson-icon {
        margin-right: 8px;
    }

    .chapter-title {
        font-size: 15px;
    }

    .course-item-thumb {
        height: 48px;
    }

    .course-item-info {
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }

    .course-item-meta {
        text-align: left;
    }

    .course-item {
        gap: 8px;
    }


    .btn-expand-courses {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-toggle-desc {
        padding: 8px 16px;
        font-size: 13px;
    }

    .combo-course-list {
        padding: 12px;
        margin-bottom: 20px;
    }

    .course-items {
        gap: 8px;
    }
}

@media(min-width:768px) and (max-width:991px) {
    .prd-detail-title {
        font-size: 28px;

    }

    .prd-detail-left {
        padding: 28px;
        width: 100%;
        flex: none;
    }

    .review__summary {
        margin-bottom: 12px;
    }

    .review__avatar {
        width: 52px;
        height: 52px;
    }

    .review__text {
        font-size: 15px;
    }

    .review__stars {
        font-size: 12px;
    }

    .prd-detail-right {
        width: 100%;
    }

    .related-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-products-box {
        padding: 32px;
    }

    .combo-box {
        display: none;
    }

    .prd-detail-left .combo-box {
        margin-bottom: 12px;
        display: block;
    }

    .prd-detail-left .combo-content-row {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .prd-detail-left .combo-left {
        flex-direction: row-reverse;
        align-items: center;
        gap: 20px;
    }

    .prd-detail-left .combo-price-new {
        font-size: 18px;
    }

    .prd-detail-left .combo-name {
        font-size: 15px;
    }

    .prd-detail-left .combo-name::before {
        content: "";
        position: absolute;
        left: -9px;
        width: 1px;
        height: 16px;
        background: #b5828b;
        top: 50%;
        transform: translateY(-50%);
    }

    .prd-detail-left .combo-save-tag {
        bottom: 6px;
    }





}


@media(min-width:992px) and (max-width:1199px) {
    .prd-detail-grid {
        gap: 20px;
    }

    .prd-detail-left {
        padding: 24px;
    }

    .prd-detail-title {
        font-size: 28px;
    }

    .prd-detail-right {
        width: 290px;
    }

    .buy-box {
        margin-bottom: 20px;
        padding: 16px;
    }

    .related-products-box {
        padding: 12px;
    }

    .related-list {
        gap: 8px;
    }

    .prd-meta-row {
        flex-wrap: nowrap;
    }

    .avatar-group {
        width: 100%;
    }

    .separate-line {
        display: none;
    }

    .stock-status {
        margin-left: 12px;
    }

    .prd-meta-row .post-share .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .review__summary {
        padding: 20px;
        gap: 28px;
        margin-bottom: 12px;
    }

    .review__avatar {
        width: 52px;
        height: 52px;
    }

    .review__text {
        font-size: 15px;
    }

    .review__stars {
        font-size: 12px;
    }

    .combo-name {
        font-size: 15px;
    }

    .chapter-header {
        padding: 10px;
    }

    .course-chapter {
        margin-bottom: 12px;
    }

    .lesson-item {
        padding: 10px;
    }

    .lesson-meta-right {
        gap: 8px;
    }

    .lesson-icon {
        margin-right: 8px;
    }

    .combo-course-list {
        padding: 12px;
    }
}


@media(min-width:1200px) and (max-width:1499px) {
    .prd-detail-grid {
        gap: 20px;
    }

    .prd-detail-left {
        padding: 24px;
    }

    .prd-detail-title {
        font-size: 28px;
    }

    .prd-detail-right {
        width: 290px;
    }

    .buy-box {
        margin-bottom: 20px;
        padding: 16px;
    }

    .related-products-box {
        padding: 12px;
    }

    .related-list {
        gap: 8px;
    }

    .separate-line {
        margin: 0;
    }

    .prd-meta-row .post-share {
        gap: 8px;
    }

    .prd-meta-row .post-share .share-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .combo-name {
        font-size: 15px;
    }


}

/*end responsive các thành phần khác*/

/* ============================================================================
   MARKETPLACE LISTING – migrated from pages/cho-an-toan/index.vue <style scoped>
   Scoped with .ce-shop-section so it cannot affect News or other 3-column pages.
   ============================================================================ */

/* ---- Core 3-column layout ---- */
.ce-shop-section .page-layout-3col {
    display: flex;
    gap: 30px;
}

.ce-shop-section .page-layout-sidebar {
    width: 280px;
    flex: 0 0 280px;
}

.ce-shop-section .page-layout-main {
    flex: 1 1 auto;
    min-width: 0;
}

.ce-shop-section .page-layout-right {
    width: 300px;
    flex: 0 0 300px;
}

.ce-shop-section .sticky-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.ce-shop-section .left-sidebar-gap,
.ce-shop-section .right-sidebar-gap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ce-shop-section .banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---- Category sidebar ---- */
.ce-shop-section .category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.ce-shop-section .category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 11px 16px;
    appearance: none;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.ce-shop-section .category-item .category-name {
    display: flex;
    align-items: center;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.ce-shop-section .category-item:hover {
    background: #f1f5f9;
    border-color: transparent;
}

.ce-shop-section .category-item.active {
    display: flex !important;
    background: #eff6ff !important;
}

.ce-shop-section .category-item.active .category-name {
    color: #0f67bf !important;
    font-weight: 700 !important;
}

.ce-shop-section .category-name i {
    width: 16px;
    margin-right: 10px;
    color: #64748b;
    flex-shrink: 0;
    text-align: center;
}

.ce-shop-section .category-item.active .category-name i {
    color: #0f67bf !important;
}

/* Reset the older marketplace .hot-badge pill style: this template only renders
   a fire icon next to the "khoa-hoc" category. */
.ce-shop-section .hot-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #ef4444;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    animation: none;
}

.ce-shop-section .hot-badge i {
    font-size: 12px;
    animation: none;
}

.ce-shop-section .btn-toggle-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.ce-shop-section .btn-toggle-categories:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ---- Product grid ---- */
.ce-shop-section .ce-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* ---- Responsive layout ---- */
@media (max-width: 1199px) {
    .ce-shop-section .page-layout-right {
        display: none;
    }
}

@media (max-width: 991px) {
    .ce-shop-section .page-layout-3col {
        flex-direction: column;
        gap: 20px;
    }

    .ce-shop-section .page-layout-sidebar,
    .ce-shop-section .page-layout-main {
        width: 100%;
        flex-basis: auto;
    }

    .ce-shop-section .sticky-sidebar {
        position: static;
        top: auto;
        height: auto;
    }

    .ce-shop-section .category-list {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        white-space: nowrap;
    }

    .ce-shop-section .category-list::-webkit-scrollbar {
        display: none;
    }

    .ce-shop-section .category-item {
        width: auto;
        flex-shrink: 0;
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
    }

    .ce-shop-section .category-item.active {
        border-color: #0f67bf;
    }

    .ce-shop-section .btn-toggle-categories {
        display: none;
    }
}
/* ======================== END MIGRATED MARKETPLACE LISTING ================= */

