/* ==========================================================================
   BỐ CỤC CHUNG BỘ SƯU TẬP CÀ PHÊ (TABS & COLUMNS LAYOUT)
   ========================================================================== */
.cafe-collection-wrapper {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start !important;
    font-family: 'Roboto', sans-serif !important;
}

.cafe-collection-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 310px;
    width: 100%;
    padding: 40px 0 !important;
}

.cafe-collection-title {
    font-weight: 700;
    color: #111827;
    margin: 0 !important;
}

.cafe-collection-tabs {
    display: flex;
    flex-direction: column;
}

.cafe-collection-tab {
    border-bottom: 1px solid #D6DBE1;
    border-top: 1px solid #D6DBE1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-top: 16px;
    padding-bottom: 16px;
}

.cafe-collection-tab .tab-title {
    font-family: 'Roboto', sans-serif !important;
    font-size: 20px;
    font-weight: 400 !important; /* Chưa chọn: font weight 400 */
    color: #111;
    margin: 0;
    transition: all 0.3s ease;
}

.cafe-collection-tab.active .tab-title {
    font-weight: 600 !important; /* Được chọn: font weight 600 */
}

.cafe-collection-tab .tab-desc {
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin-top: 12px;
    display: none;
}

.cafe-collection-tab.active .tab-desc {
    display: block;
    animation: cafeFadeIn 0.4s ease forwards;
}

/* Cột chứa nội dung bên phải */
.cafe-collection-content {
    flex: 1 !important;
    min-width: 0 !important;
    /* Ngăn flex item bị giãn rộng quá đà do chứa overflow cuộn ngang */
}

/* Các tab hiển thị sản phẩm */
.cafe-collection-tab-content {
    display: none;
}

.cafe-collection-tab-content.active {
    display: block;
    animation: cafeFadeIn 0.5s ease forwards;
}

@keyframes cafeFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .cafe-collection-wrapper {
        flex-direction: row !important;
        /* Giữ nguyên hàng ngang (side-by-side) trên tablet */
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .cafe-collection-sidebar {
        max-width: 240px !important;
        /* Giảm độ rộng sidebar trên tablet */
        width: 100% !important;
        padding: 20px 0 !important;
        flex-shrink: 0 !important;
    }

    .cafe-collection-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
    .cafe-collection-wrapper {
        flex-direction: column !important;
        /* Xếp chồng dọc trên mobile (< 768px) */
        gap: 10px !important;
    }

    .cafe-collection-sidebar {
        max-width: 100% !important;
        width: 100% !important;
    }
}